@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, createRequestFunction } from '../common.js';
|
|
4
3
|
import { BaseAPI, BASE_PATH } from '../base.js';
|
|
@@ -30,7 +29,7 @@ const RemoteImageApiAxiosParamCreator = function (configuration) {
|
|
|
30
29
|
* @param {*} [options] Override http request option.
|
|
31
30
|
* @throws {RequiredError}
|
|
32
31
|
*/
|
|
33
|
-
downloadRemoteImage:
|
|
32
|
+
downloadRemoteImage: async (itemId, type, imageUrl, options = {}) => {
|
|
34
33
|
// verify required parameter 'itemId' is not null or undefined
|
|
35
34
|
assertParamExists('downloadRemoteImage', 'itemId', itemId);
|
|
36
35
|
// verify required parameter 'type' is not null or undefined
|
|
@@ -43,11 +42,11 @@ const RemoteImageApiAxiosParamCreator = function (configuration) {
|
|
|
43
42
|
if (configuration) {
|
|
44
43
|
baseOptions = configuration.baseOptions;
|
|
45
44
|
}
|
|
46
|
-
const localVarRequestOptions =
|
|
45
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
47
46
|
const localVarHeaderParameter = {};
|
|
48
47
|
const localVarQueryParameter = {};
|
|
49
48
|
// authentication CustomAuthentication required
|
|
50
|
-
|
|
49
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
51
50
|
if (type !== undefined) {
|
|
52
51
|
localVarQueryParameter['type'] = type;
|
|
53
52
|
}
|
|
@@ -56,12 +55,12 @@ const RemoteImageApiAxiosParamCreator = function (configuration) {
|
|
|
56
55
|
}
|
|
57
56
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58
57
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
-
localVarRequestOptions.headers =
|
|
58
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
60
59
|
return {
|
|
61
60
|
url: toPathString(localVarUrlObj),
|
|
62
61
|
options: localVarRequestOptions,
|
|
63
62
|
};
|
|
64
|
-
}
|
|
63
|
+
},
|
|
65
64
|
/**
|
|
66
65
|
*
|
|
67
66
|
* @summary Gets available remote image providers for an item.
|
|
@@ -69,7 +68,7 @@ const RemoteImageApiAxiosParamCreator = function (configuration) {
|
|
|
69
68
|
* @param {*} [options] Override http request option.
|
|
70
69
|
* @throws {RequiredError}
|
|
71
70
|
*/
|
|
72
|
-
getRemoteImageProviders:
|
|
71
|
+
getRemoteImageProviders: async (itemId, options = {}) => {
|
|
73
72
|
// verify required parameter 'itemId' is not null or undefined
|
|
74
73
|
assertParamExists('getRemoteImageProviders', 'itemId', itemId);
|
|
75
74
|
const localVarPath = `/Items/{itemId}/RemoteImages/Providers`
|
|
@@ -80,19 +79,19 @@ const RemoteImageApiAxiosParamCreator = function (configuration) {
|
|
|
80
79
|
if (configuration) {
|
|
81
80
|
baseOptions = configuration.baseOptions;
|
|
82
81
|
}
|
|
83
|
-
const localVarRequestOptions =
|
|
82
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
84
83
|
const localVarHeaderParameter = {};
|
|
85
84
|
const localVarQueryParameter = {};
|
|
86
85
|
// authentication CustomAuthentication required
|
|
87
|
-
|
|
86
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
88
87
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
88
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
-
localVarRequestOptions.headers =
|
|
89
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
91
90
|
return {
|
|
92
91
|
url: toPathString(localVarUrlObj),
|
|
93
92
|
options: localVarRequestOptions,
|
|
94
93
|
};
|
|
95
|
-
}
|
|
94
|
+
},
|
|
96
95
|
/**
|
|
97
96
|
*
|
|
98
97
|
* @summary Gets available remote images for an item.
|
|
@@ -105,7 +104,7 @@ const RemoteImageApiAxiosParamCreator = function (configuration) {
|
|
|
105
104
|
* @param {*} [options] Override http request option.
|
|
106
105
|
* @throws {RequiredError}
|
|
107
106
|
*/
|
|
108
|
-
getRemoteImages:
|
|
107
|
+
getRemoteImages: async (itemId, type, startIndex, limit, providerName, includeAllLanguages, options = {}) => {
|
|
109
108
|
// verify required parameter 'itemId' is not null or undefined
|
|
110
109
|
assertParamExists('getRemoteImages', 'itemId', itemId);
|
|
111
110
|
const localVarPath = `/Items/{itemId}/RemoteImages`
|
|
@@ -116,11 +115,11 @@ const RemoteImageApiAxiosParamCreator = function (configuration) {
|
|
|
116
115
|
if (configuration) {
|
|
117
116
|
baseOptions = configuration.baseOptions;
|
|
118
117
|
}
|
|
119
|
-
const localVarRequestOptions =
|
|
118
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
120
119
|
const localVarHeaderParameter = {};
|
|
121
120
|
const localVarQueryParameter = {};
|
|
122
121
|
// authentication CustomAuthentication required
|
|
123
|
-
|
|
122
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
124
123
|
if (type !== undefined) {
|
|
125
124
|
localVarQueryParameter['type'] = type;
|
|
126
125
|
}
|
|
@@ -138,12 +137,12 @@ const RemoteImageApiAxiosParamCreator = function (configuration) {
|
|
|
138
137
|
}
|
|
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
|
/**
|
|
@@ -162,11 +161,9 @@ const RemoteImageApiFp = function (configuration) {
|
|
|
162
161
|
* @param {*} [options] Override http request option.
|
|
163
162
|
* @throws {RequiredError}
|
|
164
163
|
*/
|
|
165
|
-
downloadRemoteImage(itemId, type, imageUrl, options) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
169
|
-
});
|
|
164
|
+
async downloadRemoteImage(itemId, type, imageUrl, options) {
|
|
165
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadRemoteImage(itemId, type, imageUrl, options);
|
|
166
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
170
167
|
},
|
|
171
168
|
/**
|
|
172
169
|
*
|
|
@@ -175,11 +172,9 @@ const RemoteImageApiFp = function (configuration) {
|
|
|
175
172
|
* @param {*} [options] Override http request option.
|
|
176
173
|
* @throws {RequiredError}
|
|
177
174
|
*/
|
|
178
|
-
getRemoteImageProviders(itemId, options) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
182
|
-
});
|
|
175
|
+
async getRemoteImageProviders(itemId, options) {
|
|
176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRemoteImageProviders(itemId, options);
|
|
177
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
183
178
|
},
|
|
184
179
|
/**
|
|
185
180
|
*
|
|
@@ -193,11 +188,9 @@ const RemoteImageApiFp = function (configuration) {
|
|
|
193
188
|
* @param {*} [options] Override http request option.
|
|
194
189
|
* @throws {RequiredError}
|
|
195
190
|
*/
|
|
196
|
-
getRemoteImages(itemId, type, startIndex, limit, providerName, includeAllLanguages, options) {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
200
|
-
});
|
|
191
|
+
async getRemoteImages(itemId, type, startIndex, limit, providerName, includeAllLanguages, options) {
|
|
192
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRemoteImages(itemId, type, startIndex, limit, providerName, includeAllLanguages, options);
|
|
193
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
201
194
|
},
|
|
202
195
|
};
|
|
203
196
|
};
|
|
@@ -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 ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
28
27
|
* @param {*} [options] Override http request option.
|
|
29
28
|
* @throws {RequiredError}
|
|
30
29
|
*/
|
|
31
|
-
getTask:
|
|
30
|
+
getTask: async (taskId, options = {}) => {
|
|
32
31
|
// verify required parameter 'taskId' is not null or undefined
|
|
33
32
|
assertParamExists('getTask', 'taskId', taskId);
|
|
34
33
|
const localVarPath = `/ScheduledTasks/{taskId}`
|
|
@@ -39,19 +38,19 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
39
38
|
if (configuration) {
|
|
40
39
|
baseOptions = configuration.baseOptions;
|
|
41
40
|
}
|
|
42
|
-
const localVarRequestOptions =
|
|
41
|
+
const localVarRequestOptions = { method: 'GET', ...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 Get tasks.
|
|
@@ -60,7 +59,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
60
59
|
* @param {*} [options] Override http request option.
|
|
61
60
|
* @throws {RequiredError}
|
|
62
61
|
*/
|
|
63
|
-
getTasks:
|
|
62
|
+
getTasks: async (isHidden, isEnabled, options = {}) => {
|
|
64
63
|
const localVarPath = `/ScheduledTasks`;
|
|
65
64
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
65
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -68,11 +67,11 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
68
67
|
if (configuration) {
|
|
69
68
|
baseOptions = configuration.baseOptions;
|
|
70
69
|
}
|
|
71
|
-
const localVarRequestOptions =
|
|
70
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
72
71
|
const localVarHeaderParameter = {};
|
|
73
72
|
const localVarQueryParameter = {};
|
|
74
73
|
// authentication CustomAuthentication required
|
|
75
|
-
|
|
74
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
76
75
|
if (isHidden !== undefined) {
|
|
77
76
|
localVarQueryParameter['isHidden'] = isHidden;
|
|
78
77
|
}
|
|
@@ -81,12 +80,12 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
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 Start specified task.
|
|
@@ -94,7 +93,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
94
93
|
* @param {*} [options] Override http request option.
|
|
95
94
|
* @throws {RequiredError}
|
|
96
95
|
*/
|
|
97
|
-
startTask:
|
|
96
|
+
startTask: async (taskId, options = {}) => {
|
|
98
97
|
// verify required parameter 'taskId' is not null or undefined
|
|
99
98
|
assertParamExists('startTask', 'taskId', taskId);
|
|
100
99
|
const localVarPath = `/ScheduledTasks/Running/{taskId}`
|
|
@@ -105,19 +104,19 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
105
104
|
if (configuration) {
|
|
106
105
|
baseOptions = configuration.baseOptions;
|
|
107
106
|
}
|
|
108
|
-
const localVarRequestOptions =
|
|
107
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
109
108
|
const localVarHeaderParameter = {};
|
|
110
109
|
const localVarQueryParameter = {};
|
|
111
110
|
// authentication CustomAuthentication required
|
|
112
|
-
|
|
111
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
113
112
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
114
113
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
-
localVarRequestOptions.headers =
|
|
114
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
116
115
|
return {
|
|
117
116
|
url: toPathString(localVarUrlObj),
|
|
118
117
|
options: localVarRequestOptions,
|
|
119
118
|
};
|
|
120
|
-
}
|
|
119
|
+
},
|
|
121
120
|
/**
|
|
122
121
|
*
|
|
123
122
|
* @summary Stop specified task.
|
|
@@ -125,7 +124,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
125
124
|
* @param {*} [options] Override http request option.
|
|
126
125
|
* @throws {RequiredError}
|
|
127
126
|
*/
|
|
128
|
-
stopTask:
|
|
127
|
+
stopTask: async (taskId, options = {}) => {
|
|
129
128
|
// verify required parameter 'taskId' is not null or undefined
|
|
130
129
|
assertParamExists('stopTask', 'taskId', taskId);
|
|
131
130
|
const localVarPath = `/ScheduledTasks/Running/{taskId}`
|
|
@@ -136,19 +135,19 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
136
135
|
if (configuration) {
|
|
137
136
|
baseOptions = configuration.baseOptions;
|
|
138
137
|
}
|
|
139
|
-
const localVarRequestOptions =
|
|
138
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
140
139
|
const localVarHeaderParameter = {};
|
|
141
140
|
const localVarQueryParameter = {};
|
|
142
141
|
// authentication CustomAuthentication required
|
|
143
|
-
|
|
142
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
144
143
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
144
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
-
localVarRequestOptions.headers =
|
|
145
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
147
146
|
return {
|
|
148
147
|
url: toPathString(localVarUrlObj),
|
|
149
148
|
options: localVarRequestOptions,
|
|
150
149
|
};
|
|
151
|
-
}
|
|
150
|
+
},
|
|
152
151
|
/**
|
|
153
152
|
*
|
|
154
153
|
* @summary Update specified task triggers.
|
|
@@ -157,7 +156,7 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
157
156
|
* @param {*} [options] Override http request option.
|
|
158
157
|
* @throws {RequiredError}
|
|
159
158
|
*/
|
|
160
|
-
updateTask:
|
|
159
|
+
updateTask: async (taskId, taskTriggerInfo, options = {}) => {
|
|
161
160
|
// verify required parameter 'taskId' is not null or undefined
|
|
162
161
|
assertParamExists('updateTask', 'taskId', taskId);
|
|
163
162
|
// verify required parameter 'taskTriggerInfo' is not null or undefined
|
|
@@ -170,21 +169,21 @@ const ScheduledTasksApiAxiosParamCreator = function (configuration) {
|
|
|
170
169
|
if (configuration) {
|
|
171
170
|
baseOptions = configuration.baseOptions;
|
|
172
171
|
}
|
|
173
|
-
const localVarRequestOptions =
|
|
172
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
174
173
|
const localVarHeaderParameter = {};
|
|
175
174
|
const localVarQueryParameter = {};
|
|
176
175
|
// authentication CustomAuthentication required
|
|
177
|
-
|
|
176
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
178
177
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
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
|
localVarRequestOptions.data = serializeDataIfNeeded(taskTriggerInfo, localVarRequestOptions, configuration);
|
|
183
182
|
return {
|
|
184
183
|
url: toPathString(localVarUrlObj),
|
|
185
184
|
options: localVarRequestOptions,
|
|
186
185
|
};
|
|
187
|
-
}
|
|
186
|
+
},
|
|
188
187
|
};
|
|
189
188
|
};
|
|
190
189
|
/**
|
|
@@ -201,11 +200,9 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
201
200
|
* @param {*} [options] Override http request option.
|
|
202
201
|
* @throws {RequiredError}
|
|
203
202
|
*/
|
|
204
|
-
getTask(taskId, options) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
208
|
-
});
|
|
203
|
+
async getTask(taskId, options) {
|
|
204
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(taskId, options);
|
|
205
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
209
206
|
},
|
|
210
207
|
/**
|
|
211
208
|
*
|
|
@@ -215,11 +212,9 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
215
212
|
* @param {*} [options] Override http request option.
|
|
216
213
|
* @throws {RequiredError}
|
|
217
214
|
*/
|
|
218
|
-
getTasks(isHidden, isEnabled, options) {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
222
|
-
});
|
|
215
|
+
async getTasks(isHidden, isEnabled, options) {
|
|
216
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTasks(isHidden, isEnabled, options);
|
|
217
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
223
218
|
},
|
|
224
219
|
/**
|
|
225
220
|
*
|
|
@@ -228,11 +223,9 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
228
223
|
* @param {*} [options] Override http request option.
|
|
229
224
|
* @throws {RequiredError}
|
|
230
225
|
*/
|
|
231
|
-
startTask(taskId, options) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
235
|
-
});
|
|
226
|
+
async startTask(taskId, options) {
|
|
227
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startTask(taskId, options);
|
|
228
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
236
229
|
},
|
|
237
230
|
/**
|
|
238
231
|
*
|
|
@@ -241,11 +234,9 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
241
234
|
* @param {*} [options] Override http request option.
|
|
242
235
|
* @throws {RequiredError}
|
|
243
236
|
*/
|
|
244
|
-
stopTask(taskId, options) {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
248
|
-
});
|
|
237
|
+
async stopTask(taskId, options) {
|
|
238
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stopTask(taskId, options);
|
|
239
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
249
240
|
},
|
|
250
241
|
/**
|
|
251
242
|
*
|
|
@@ -255,11 +246,9 @@ const ScheduledTasksApiFp = function (configuration) {
|
|
|
255
246
|
* @param {*} [options] Override http request option.
|
|
256
247
|
* @throws {RequiredError}
|
|
257
248
|
*/
|
|
258
|
-
updateTask(taskId, taskTriggerInfo, options) {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
262
|
-
});
|
|
249
|
+
async updateTask(taskId, taskTriggerInfo, options) {
|
|
250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTask(taskId, taskTriggerInfo, options);
|
|
251
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
263
252
|
},
|
|
264
253
|
};
|
|
265
254
|
};
|
|
@@ -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';
|
|
@@ -45,7 +44,7 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
45
44
|
* @param {*} [options] Override http request option.
|
|
46
45
|
* @throws {RequiredError}
|
|
47
46
|
*/
|
|
48
|
-
getSearchHints:
|
|
47
|
+
getSearchHints: async (searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options = {}) => {
|
|
49
48
|
// verify required parameter 'searchTerm' is not null or undefined
|
|
50
49
|
assertParamExists('getSearchHints', 'searchTerm', searchTerm);
|
|
51
50
|
const localVarPath = `/Search/Hints`;
|
|
@@ -55,11 +54,11 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
55
54
|
if (configuration) {
|
|
56
55
|
baseOptions = configuration.baseOptions;
|
|
57
56
|
}
|
|
58
|
-
const localVarRequestOptions =
|
|
57
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
59
58
|
const localVarHeaderParameter = {};
|
|
60
59
|
const localVarQueryParameter = {};
|
|
61
60
|
// authentication CustomAuthentication required
|
|
62
|
-
|
|
61
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
63
62
|
if (startIndex !== undefined) {
|
|
64
63
|
localVarQueryParameter['startIndex'] = startIndex;
|
|
65
64
|
}
|
|
@@ -116,12 +115,12 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
116
115
|
}
|
|
117
116
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
118
117
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
-
localVarRequestOptions.headers =
|
|
118
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
120
119
|
return {
|
|
121
120
|
url: toPathString(localVarUrlObj),
|
|
122
121
|
options: localVarRequestOptions,
|
|
123
122
|
};
|
|
124
|
-
}
|
|
123
|
+
},
|
|
125
124
|
};
|
|
126
125
|
};
|
|
127
126
|
/**
|
|
@@ -155,11 +154,9 @@ const SearchApiFp = function (configuration) {
|
|
|
155
154
|
* @param {*} [options] Override http request option.
|
|
156
155
|
* @throws {RequiredError}
|
|
157
156
|
*/
|
|
158
|
-
getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
162
|
-
});
|
|
157
|
+
async getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options) {
|
|
158
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchHints(searchTerm, startIndex, limit, userId, includeItemTypes, excludeItemTypes, mediaTypes, parentId, isMovie, isSeries, isNews, isKids, isSports, includePeople, includeMedia, includeGenres, includeStudios, includeArtists, options);
|
|
159
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
163
160
|
},
|
|
164
161
|
};
|
|
165
162
|
};
|