@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, setApiKeyToObject, setSearchParams, toPathString, serializeDataIfNeeded, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -28,7 +27,7 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
cancelPackageInstallation:
|
|
30
|
+
cancelPackageInstallation: async (packageId, options = {}) => {
|
|
32
31
|
// verify required parameter 'packageId' is not null or undefined
|
|
33
32
|
assertParamExists('cancelPackageInstallation', 'packageId', packageId);
|
|
34
33
|
const localVarPath = `/Packages/Installing/{packageId}`
|
|
@@ -39,19 +38,19 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
43
42
|
const localVarHeaderParameter = {};
|
|
44
43
|
const localVarQueryParameter = {};
|
|
45
44
|
// authentication CustomAuthentication required
|
|
46
|
-
|
|
45
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
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 package by name or assembly GUID.
|
|
@@ -60,7 +59,7 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
60
59
|
* @param {*} [options] Override http request option.
|
|
61
60
|
* @throws {RequiredError}
|
|
62
61
|
*/
|
|
63
|
-
getPackageInfo:
|
|
62
|
+
getPackageInfo: async (name, assemblyGuid, options = {}) => {
|
|
64
63
|
// verify required parameter 'name' is not null or undefined
|
|
65
64
|
assertParamExists('getPackageInfo', 'name', name);
|
|
66
65
|
const localVarPath = `/Packages/{name}`
|
|
@@ -71,29 +70,29 @@ const PackageApiAxiosParamCreator = 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 (assemblyGuid !== undefined) {
|
|
80
79
|
localVarQueryParameter['assemblyGuid'] = assemblyGuid;
|
|
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 Gets available packages.
|
|
93
92
|
* @param {*} [options] Override http request option.
|
|
94
93
|
* @throws {RequiredError}
|
|
95
94
|
*/
|
|
96
|
-
getPackages:
|
|
95
|
+
getPackages: async (options = {}) => {
|
|
97
96
|
const localVarPath = `/Packages`;
|
|
98
97
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
98
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -101,26 +100,26 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
101
100
|
if (configuration) {
|
|
102
101
|
baseOptions = configuration.baseOptions;
|
|
103
102
|
}
|
|
104
|
-
const localVarRequestOptions =
|
|
103
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
105
104
|
const localVarHeaderParameter = {};
|
|
106
105
|
const localVarQueryParameter = {};
|
|
107
106
|
// authentication CustomAuthentication required
|
|
108
|
-
|
|
107
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
109
108
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
110
109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
-
localVarRequestOptions.headers =
|
|
110
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
112
111
|
return {
|
|
113
112
|
url: toPathString(localVarUrlObj),
|
|
114
113
|
options: localVarRequestOptions,
|
|
115
114
|
};
|
|
116
|
-
}
|
|
115
|
+
},
|
|
117
116
|
/**
|
|
118
117
|
*
|
|
119
118
|
* @summary Gets all package repositories.
|
|
120
119
|
* @param {*} [options] Override http request option.
|
|
121
120
|
* @throws {RequiredError}
|
|
122
121
|
*/
|
|
123
|
-
getRepositories:
|
|
122
|
+
getRepositories: async (options = {}) => {
|
|
124
123
|
const localVarPath = `/Repositories`;
|
|
125
124
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
125
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -128,19 +127,19 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
128
127
|
if (configuration) {
|
|
129
128
|
baseOptions = configuration.baseOptions;
|
|
130
129
|
}
|
|
131
|
-
const localVarRequestOptions =
|
|
130
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
132
131
|
const localVarHeaderParameter = {};
|
|
133
132
|
const localVarQueryParameter = {};
|
|
134
133
|
// authentication CustomAuthentication required
|
|
135
|
-
|
|
134
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
136
135
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
137
136
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
-
localVarRequestOptions.headers =
|
|
137
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
139
138
|
return {
|
|
140
139
|
url: toPathString(localVarUrlObj),
|
|
141
140
|
options: localVarRequestOptions,
|
|
142
141
|
};
|
|
143
|
-
}
|
|
142
|
+
},
|
|
144
143
|
/**
|
|
145
144
|
*
|
|
146
145
|
* @summary Installs a package.
|
|
@@ -151,7 +150,7 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
151
150
|
* @param {*} [options] Override http request option.
|
|
152
151
|
* @throws {RequiredError}
|
|
153
152
|
*/
|
|
154
|
-
installPackage:
|
|
153
|
+
installPackage: async (name, assemblyGuid, version, repositoryUrl, options = {}) => {
|
|
155
154
|
// verify required parameter 'name' is not null or undefined
|
|
156
155
|
assertParamExists('installPackage', 'name', name);
|
|
157
156
|
const localVarPath = `/Packages/Installed/{name}`
|
|
@@ -162,11 +161,11 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
162
161
|
if (configuration) {
|
|
163
162
|
baseOptions = configuration.baseOptions;
|
|
164
163
|
}
|
|
165
|
-
const localVarRequestOptions =
|
|
164
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
166
165
|
const localVarHeaderParameter = {};
|
|
167
166
|
const localVarQueryParameter = {};
|
|
168
167
|
// authentication CustomAuthentication required
|
|
169
|
-
|
|
168
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
170
169
|
if (assemblyGuid !== undefined) {
|
|
171
170
|
localVarQueryParameter['assemblyGuid'] = assemblyGuid;
|
|
172
171
|
}
|
|
@@ -178,12 +177,12 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
178
177
|
}
|
|
179
178
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
180
179
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
-
localVarRequestOptions.headers =
|
|
180
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
182
181
|
return {
|
|
183
182
|
url: toPathString(localVarUrlObj),
|
|
184
183
|
options: localVarRequestOptions,
|
|
185
184
|
};
|
|
186
|
-
}
|
|
185
|
+
},
|
|
187
186
|
/**
|
|
188
187
|
*
|
|
189
188
|
* @summary Sets the enabled and existing package repositories.
|
|
@@ -191,7 +190,7 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
191
190
|
* @param {*} [options] Override http request option.
|
|
192
191
|
* @throws {RequiredError}
|
|
193
192
|
*/
|
|
194
|
-
setRepositories:
|
|
193
|
+
setRepositories: async (repositoryInfo, options = {}) => {
|
|
195
194
|
// verify required parameter 'repositoryInfo' is not null or undefined
|
|
196
195
|
assertParamExists('setRepositories', 'repositoryInfo', repositoryInfo);
|
|
197
196
|
const localVarPath = `/Repositories`;
|
|
@@ -201,21 +200,21 @@ const PackageApiAxiosParamCreator = function (configuration) {
|
|
|
201
200
|
if (configuration) {
|
|
202
201
|
baseOptions = configuration.baseOptions;
|
|
203
202
|
}
|
|
204
|
-
const localVarRequestOptions =
|
|
203
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
205
204
|
const localVarHeaderParameter = {};
|
|
206
205
|
const localVarQueryParameter = {};
|
|
207
206
|
// authentication CustomAuthentication required
|
|
208
|
-
|
|
207
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
209
208
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
210
209
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
211
210
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
-
localVarRequestOptions.headers =
|
|
211
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
213
212
|
localVarRequestOptions.data = serializeDataIfNeeded(repositoryInfo, localVarRequestOptions, configuration);
|
|
214
213
|
return {
|
|
215
214
|
url: toPathString(localVarUrlObj),
|
|
216
215
|
options: localVarRequestOptions,
|
|
217
216
|
};
|
|
218
|
-
}
|
|
217
|
+
},
|
|
219
218
|
};
|
|
220
219
|
};
|
|
221
220
|
/**
|
|
@@ -232,11 +231,9 @@ const PackageApiFp = function (configuration) {
|
|
|
232
231
|
* @param {*} [options] Override http request option.
|
|
233
232
|
* @throws {RequiredError}
|
|
234
233
|
*/
|
|
235
|
-
cancelPackageInstallation(packageId, options) {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
239
|
-
});
|
|
234
|
+
async cancelPackageInstallation(packageId, options) {
|
|
235
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPackageInstallation(packageId, options);
|
|
236
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
240
237
|
},
|
|
241
238
|
/**
|
|
242
239
|
*
|
|
@@ -246,11 +243,9 @@ const PackageApiFp = function (configuration) {
|
|
|
246
243
|
* @param {*} [options] Override http request option.
|
|
247
244
|
* @throws {RequiredError}
|
|
248
245
|
*/
|
|
249
|
-
getPackageInfo(name, assemblyGuid, options) {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
253
|
-
});
|
|
246
|
+
async getPackageInfo(name, assemblyGuid, options) {
|
|
247
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPackageInfo(name, assemblyGuid, options);
|
|
248
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
254
249
|
},
|
|
255
250
|
/**
|
|
256
251
|
*
|
|
@@ -258,11 +253,9 @@ const PackageApiFp = function (configuration) {
|
|
|
258
253
|
* @param {*} [options] Override http request option.
|
|
259
254
|
* @throws {RequiredError}
|
|
260
255
|
*/
|
|
261
|
-
getPackages(options) {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
265
|
-
});
|
|
256
|
+
async getPackages(options) {
|
|
257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPackages(options);
|
|
258
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
266
259
|
},
|
|
267
260
|
/**
|
|
268
261
|
*
|
|
@@ -270,11 +263,9 @@ const PackageApiFp = function (configuration) {
|
|
|
270
263
|
* @param {*} [options] Override http request option.
|
|
271
264
|
* @throws {RequiredError}
|
|
272
265
|
*/
|
|
273
|
-
getRepositories(options) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
277
|
-
});
|
|
266
|
+
async getRepositories(options) {
|
|
267
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRepositories(options);
|
|
268
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
278
269
|
},
|
|
279
270
|
/**
|
|
280
271
|
*
|
|
@@ -286,11 +277,9 @@ const PackageApiFp = function (configuration) {
|
|
|
286
277
|
* @param {*} [options] Override http request option.
|
|
287
278
|
* @throws {RequiredError}
|
|
288
279
|
*/
|
|
289
|
-
installPackage(name, assemblyGuid, version, repositoryUrl, options) {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
293
|
-
});
|
|
280
|
+
async installPackage(name, assemblyGuid, version, repositoryUrl, options) {
|
|
281
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.installPackage(name, assemblyGuid, version, repositoryUrl, options);
|
|
282
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
294
283
|
},
|
|
295
284
|
/**
|
|
296
285
|
*
|
|
@@ -299,11 +288,9 @@ const PackageApiFp = function (configuration) {
|
|
|
299
288
|
* @param {*} [options] Override http request option.
|
|
300
289
|
* @throws {RequiredError}
|
|
301
290
|
*/
|
|
302
|
-
setRepositories(repositoryInfo, options) {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
306
|
-
});
|
|
291
|
+
async setRepositories(repositoryInfo, options) {
|
|
292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setRepositories(repositoryInfo, options);
|
|
293
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
294
|
},
|
|
308
295
|
};
|
|
309
296
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../node_modules/tslib/tslib.es6.js';
|
|
2
1
|
import globalAxios from 'axios';
|
|
3
2
|
import { assertParamExists, DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -29,7 +28,7 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
getPerson:
|
|
31
|
+
getPerson: async (name, userId, options = {}) => {
|
|
33
32
|
// verify required parameter 'name' is not null or undefined
|
|
34
33
|
assertParamExists('getPerson', 'name', name);
|
|
35
34
|
const localVarPath = `/Persons/{name}`
|
|
@@ -40,22 +39,22 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
40
39
|
if (configuration) {
|
|
41
40
|
baseOptions = configuration.baseOptions;
|
|
42
41
|
}
|
|
43
|
-
const localVarRequestOptions =
|
|
42
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
44
43
|
const localVarHeaderParameter = {};
|
|
45
44
|
const localVarQueryParameter = {};
|
|
46
45
|
// authentication CustomAuthentication required
|
|
47
|
-
|
|
46
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
48
47
|
if (userId !== undefined) {
|
|
49
48
|
localVarQueryParameter['userId'] = userId;
|
|
50
49
|
}
|
|
51
50
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
52
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
-
localVarRequestOptions.headers =
|
|
52
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
54
53
|
return {
|
|
55
54
|
url: toPathString(localVarUrlObj),
|
|
56
55
|
options: localVarRequestOptions,
|
|
57
56
|
};
|
|
58
|
-
}
|
|
57
|
+
},
|
|
59
58
|
/**
|
|
60
59
|
*
|
|
61
60
|
* @summary Gets all persons.
|
|
@@ -75,7 +74,7 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
75
74
|
* @param {*} [options] Override http request option.
|
|
76
75
|
* @throws {RequiredError}
|
|
77
76
|
*/
|
|
78
|
-
getPersons:
|
|
77
|
+
getPersons: async (limit, searchTerm, fields, filters, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, excludePersonTypes, personTypes, appearsInItemId, userId, enableImages, options = {}) => {
|
|
79
78
|
const localVarPath = `/Persons`;
|
|
80
79
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
80
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -83,11 +82,11 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
83
82
|
if (configuration) {
|
|
84
83
|
baseOptions = configuration.baseOptions;
|
|
85
84
|
}
|
|
86
|
-
const localVarRequestOptions =
|
|
85
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
87
86
|
const localVarHeaderParameter = {};
|
|
88
87
|
const localVarQueryParameter = {};
|
|
89
88
|
// authentication CustomAuthentication required
|
|
90
|
-
|
|
89
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
91
90
|
if (limit !== undefined) {
|
|
92
91
|
localVarQueryParameter['limit'] = limit;
|
|
93
92
|
}
|
|
@@ -129,12 +128,12 @@ const PersonsApiAxiosParamCreator = function (configuration) {
|
|
|
129
128
|
}
|
|
130
129
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
131
130
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
|
-
localVarRequestOptions.headers =
|
|
131
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
133
132
|
return {
|
|
134
133
|
url: toPathString(localVarUrlObj),
|
|
135
134
|
options: localVarRequestOptions,
|
|
136
135
|
};
|
|
137
|
-
}
|
|
136
|
+
},
|
|
138
137
|
};
|
|
139
138
|
};
|
|
140
139
|
/**
|
|
@@ -152,11 +151,9 @@ const PersonsApiFp = function (configuration) {
|
|
|
152
151
|
* @param {*} [options] Override http request option.
|
|
153
152
|
* @throws {RequiredError}
|
|
154
153
|
*/
|
|
155
|
-
getPerson(name, userId, options) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
159
|
-
});
|
|
154
|
+
async getPerson(name, userId, options) {
|
|
155
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(name, userId, options);
|
|
156
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
160
157
|
},
|
|
161
158
|
/**
|
|
162
159
|
*
|
|
@@ -177,11 +174,9 @@ const PersonsApiFp = function (configuration) {
|
|
|
177
174
|
* @param {*} [options] Override http request option.
|
|
178
175
|
* @throws {RequiredError}
|
|
179
176
|
*/
|
|
180
|
-
getPersons(limit, searchTerm, fields, filters, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, excludePersonTypes, personTypes, appearsInItemId, userId, enableImages, options) {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
184
|
-
});
|
|
177
|
+
async getPersons(limit, searchTerm, fields, filters, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, excludePersonTypes, personTypes, appearsInItemId, userId, enableImages, options) {
|
|
178
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPersons(limit, searchTerm, fields, filters, isFavorite, enableUserData, imageTypeLimit, enableImageTypes, excludePersonTypes, personTypes, appearsInItemId, userId, enableImages, options);
|
|
179
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
185
180
|
},
|
|
186
181
|
};
|
|
187
182
|
};
|