tsarr 2.9.0 → 2.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 +7 -5
- package/dist/cli/commands/bazarr.d.ts +2 -0
- package/dist/cli/commands/bazarr.d.ts.map +1 -1
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/lidarr.d.ts +2 -0
- package/dist/cli/commands/lidarr.d.ts.map +1 -1
- package/dist/cli/commands/radarr.d.ts.map +1 -1
- package/dist/cli/commands/readarr.d.ts +2 -0
- package/dist/cli/commands/readarr.d.ts.map +1 -1
- package/dist/cli/commands/sonarr.d.ts.map +1 -1
- package/dist/cli/index.js +2138 -2405
- package/dist/clients/base.d.ts +136 -0
- package/dist/clients/base.d.ts.map +1 -0
- package/dist/clients/bazarr.d.ts +1 -1
- package/dist/clients/bazarr.d.ts.map +1 -1
- package/dist/clients/bazarr.js +100 -3
- package/dist/clients/lidarr.d.ts +24 -681
- package/dist/clients/lidarr.d.ts.map +1 -1
- package/dist/clients/lidarr.js +323 -196
- package/dist/clients/prowlarr.d.ts +25 -638
- package/dist/clients/prowlarr.d.ts.map +1 -1
- package/dist/clients/prowlarr.js +331 -175
- package/dist/clients/qbittorrent.d.ts +1 -17
- package/dist/clients/qbittorrent.d.ts.map +1 -1
- package/dist/clients/qbittorrent.js +97 -2
- package/dist/clients/radarr.d.ts +4 -657
- package/dist/clients/radarr.d.ts.map +1 -1
- package/dist/clients/radarr.js +323 -164
- package/dist/clients/readarr.d.ts +4 -635
- package/dist/clients/readarr.d.ts.map +1 -1
- package/dist/clients/readarr.js +323 -164
- package/dist/clients/seerr.d.ts +1 -1
- package/dist/clients/seerr.d.ts.map +1 -1
- package/dist/clients/seerr.js +100 -3
- package/dist/clients/sonarr.d.ts +181 -772
- package/dist/clients/sonarr.d.ts.map +1 -1
- package/dist/clients/sonarr.js +346 -157
- package/dist/core/client.d.ts +3 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/fetch.d.ts +23 -0
- package/dist/core/fetch.d.ts.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/types.d.ts +7 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tsarr-2.10.0.tgz +0 -0
- package/package.json +2 -4
- package/dist/tsarr-2.9.0.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readarr.d.ts","sourceRoot":"","sources":["../../src/clients/readarr.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readarr.d.ts","sourceRoot":"","sources":["../../src/clients/readarr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC9B,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,gCAAgC,CAAC;AAExC;;;;;;;;;;;;GAYG;AACH,qBAAa,aAAc,SAAQ,iBAAiB;IAClD,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,UAAU,CAmEhC;gBAEU,MAAM,EAAE,mBAAmB;IAMvC;;OAEG;IACG,UAAU;;;;;;;;;;IAIV,SAAS,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;IAIpB,SAAS,CAAC,MAAM,EAAE,sBAAsB;;;;;;;;;;IAIxC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB;;;;;;;;;;IAIvD,YAAY,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;IAKvB,QAAQ;;;;;;;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;IAYrB;;OAEG;IACG,eAAe,CACnB,IAAI,CAAC,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,OAAO;;;;;;;;;;CAWtB;AAGD,cAAc,oBAAoB,CAAC"}
|
package/dist/clients/readarr.js
CHANGED
|
@@ -26,7 +26,95 @@ class ConnectionError extends TsarrError {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// src/core/fetch.ts
|
|
30
|
+
var DEFAULT_TIMEOUT = 30000;
|
|
31
|
+
var DEFAULT_MAX_RETRIES = 3;
|
|
32
|
+
var DEFAULT_INITIAL_DELAY = 1000;
|
|
33
|
+
var DEFAULT_MAX_DELAY = 1e4;
|
|
34
|
+
var RETRYABLE_STATUS_CODES = new Set([408, 429, 502, 503, 504]);
|
|
35
|
+
function isRetryable(error) {
|
|
36
|
+
if (error instanceof DOMException && error.name === "AbortError") {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (error instanceof TypeError) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
function getRetryDelay(attempt, initialDelayMs, maxDelayMs) {
|
|
45
|
+
const delay = initialDelayMs * 2 ** attempt;
|
|
46
|
+
const jitter = delay * 0.2 * Math.random();
|
|
47
|
+
return Math.min(delay + jitter, maxDelayMs);
|
|
48
|
+
}
|
|
49
|
+
function createResilientFetch(options = {}) {
|
|
50
|
+
const timeout = options.timeout ?? DEFAULT_TIMEOUT;
|
|
51
|
+
const maxRetries = options.retry ? options.retry.maxRetries ?? DEFAULT_MAX_RETRIES : 0;
|
|
52
|
+
const initialDelayMs = options.retry?.initialDelayMs ?? DEFAULT_INITIAL_DELAY;
|
|
53
|
+
const maxDelayMs = options.retry?.maxDelayMs ?? DEFAULT_MAX_DELAY;
|
|
54
|
+
const resilientFetch = async (input, init) => {
|
|
55
|
+
let lastError;
|
|
56
|
+
const template = createRequestTemplate(input, init);
|
|
57
|
+
for (let attempt = 0;attempt <= maxRetries; attempt++) {
|
|
58
|
+
const controller = new AbortController;
|
|
59
|
+
const timeoutId = setTimeout(() => controller.abort(), timeout);
|
|
60
|
+
const callerSignal = init?.signal;
|
|
61
|
+
if (callerSignal?.aborted) {
|
|
62
|
+
clearTimeout(timeoutId);
|
|
63
|
+
throw callerSignal.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
64
|
+
}
|
|
65
|
+
const onCallerAbort = () => controller.abort(callerSignal.reason);
|
|
66
|
+
callerSignal?.addEventListener("abort", onCallerAbort, { once: true });
|
|
67
|
+
try {
|
|
68
|
+
const response = await globalThis.fetch(new Request(template.clone(), { signal: controller.signal }));
|
|
69
|
+
clearTimeout(timeoutId);
|
|
70
|
+
callerSignal?.removeEventListener("abort", onCallerAbort);
|
|
71
|
+
if (RETRYABLE_STATUS_CODES.has(response.status) && attempt < maxRetries) {
|
|
72
|
+
lastError = new ConnectionError(`Request failed with status ${response.status}`);
|
|
73
|
+
const delay = getRetryDelay(attempt, initialDelayMs, maxDelayMs);
|
|
74
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
return response;
|
|
78
|
+
} catch (error) {
|
|
79
|
+
clearTimeout(timeoutId);
|
|
80
|
+
callerSignal?.removeEventListener("abort", onCallerAbort);
|
|
81
|
+
if (callerSignal?.aborted) {
|
|
82
|
+
throw callerSignal.reason ?? new DOMException("The operation was aborted.", "AbortError");
|
|
83
|
+
}
|
|
84
|
+
if (error instanceof DOMException && error.name === "AbortError") {
|
|
85
|
+
lastError = new ConnectionError(`Request timed out after ${timeout}ms`);
|
|
86
|
+
if (attempt < maxRetries) {
|
|
87
|
+
const delay = getRetryDelay(attempt, initialDelayMs, maxDelayMs);
|
|
88
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
throw lastError;
|
|
92
|
+
}
|
|
93
|
+
if (isRetryable(error) && attempt < maxRetries) {
|
|
94
|
+
lastError = error;
|
|
95
|
+
const delay = getRetryDelay(attempt, initialDelayMs, maxDelayMs);
|
|
96
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
throw error;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
throw lastError;
|
|
103
|
+
};
|
|
104
|
+
return Object.assign(resilientFetch, {
|
|
105
|
+
preconnect: globalThis.fetch.preconnect?.bind(globalThis.fetch)
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function createRequestTemplate(input, init) {
|
|
109
|
+
const { signal: _signal, ...requestInit } = init ?? {};
|
|
110
|
+
if (input instanceof Request) {
|
|
111
|
+
return init ? new Request(input.clone(), requestInit) : input.clone();
|
|
112
|
+
}
|
|
113
|
+
return new Request(input, requestInit);
|
|
114
|
+
}
|
|
115
|
+
|
|
29
116
|
// src/core/client.ts
|
|
117
|
+
var DEFAULT_TIMEOUT_MS = 30000;
|
|
30
118
|
function createServarrClient(config) {
|
|
31
119
|
if (!config.apiKey) {
|
|
32
120
|
throw new ApiKeyError;
|
|
@@ -38,6 +126,11 @@ function createServarrClient(config) {
|
|
|
38
126
|
...config,
|
|
39
127
|
baseUrl: config.baseUrl.replace(/\/$/, "")
|
|
40
128
|
};
|
|
129
|
+
const timeoutMs = validatedConfig.timeout ?? DEFAULT_TIMEOUT_MS;
|
|
130
|
+
const resilientFetch = createResilientFetch({
|
|
131
|
+
timeout: timeoutMs,
|
|
132
|
+
retry: validatedConfig.retry
|
|
133
|
+
});
|
|
41
134
|
return {
|
|
42
135
|
config: validatedConfig,
|
|
43
136
|
getHeaders: () => ({
|
|
@@ -45,10 +138,186 @@ function createServarrClient(config) {
|
|
|
45
138
|
"Content-Type": "application/json",
|
|
46
139
|
...validatedConfig.headers
|
|
47
140
|
}),
|
|
48
|
-
getBaseUrl: () => validatedConfig.baseUrl
|
|
141
|
+
getBaseUrl: () => validatedConfig.baseUrl,
|
|
142
|
+
getTimeout: () => timeoutMs,
|
|
143
|
+
getFetch: () => resilientFetch
|
|
49
144
|
};
|
|
50
145
|
}
|
|
51
146
|
|
|
147
|
+
// src/clients/base.ts
|
|
148
|
+
class ServarrBaseClient {
|
|
149
|
+
clientConfig;
|
|
150
|
+
rawClient;
|
|
151
|
+
constructor(config, rawClient) {
|
|
152
|
+
this.rawClient = rawClient;
|
|
153
|
+
this.clientConfig = createServarrClient(config);
|
|
154
|
+
this.configureRawClient();
|
|
155
|
+
}
|
|
156
|
+
configureRawClient() {
|
|
157
|
+
this.rawClient.setConfig(this.getClientConfig());
|
|
158
|
+
}
|
|
159
|
+
getClientConfig() {
|
|
160
|
+
return {
|
|
161
|
+
baseUrl: this.clientConfig.getBaseUrl(),
|
|
162
|
+
headers: this.clientConfig.getHeaders(),
|
|
163
|
+
fetch: this.clientConfig.getFetch()
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
async getSystemStatus() {
|
|
167
|
+
return this.ops.getSystemStatus();
|
|
168
|
+
}
|
|
169
|
+
async getHealth() {
|
|
170
|
+
return this.ops.getHealth();
|
|
171
|
+
}
|
|
172
|
+
async getTags() {
|
|
173
|
+
return this.ops.getTags();
|
|
174
|
+
}
|
|
175
|
+
async addTag(tag) {
|
|
176
|
+
return this.ops.createTag({ body: tag });
|
|
177
|
+
}
|
|
178
|
+
async getTag(id) {
|
|
179
|
+
return this.ops.getTagById({ path: { id } });
|
|
180
|
+
}
|
|
181
|
+
async updateTag(id, tag) {
|
|
182
|
+
return this.ops.updateTagById({ path: { id: String(id) }, body: tag });
|
|
183
|
+
}
|
|
184
|
+
async deleteTag(id) {
|
|
185
|
+
return this.ops.deleteTagById({ path: { id } });
|
|
186
|
+
}
|
|
187
|
+
async getTagDetails() {
|
|
188
|
+
return this.ops.getTagDetails();
|
|
189
|
+
}
|
|
190
|
+
async getTagDetailById(id) {
|
|
191
|
+
return this.ops.getTagDetailById({ path: { id } });
|
|
192
|
+
}
|
|
193
|
+
async getNotifications() {
|
|
194
|
+
return this.ops.getNotifications();
|
|
195
|
+
}
|
|
196
|
+
async getNotification(id) {
|
|
197
|
+
return this.ops.getNotificationById({ path: { id } });
|
|
198
|
+
}
|
|
199
|
+
async addNotification(notification) {
|
|
200
|
+
return this.ops.createNotification({ body: notification });
|
|
201
|
+
}
|
|
202
|
+
async updateNotification(id, notification) {
|
|
203
|
+
return this.ops.updateNotificationById({ path: { id: String(id) }, body: notification });
|
|
204
|
+
}
|
|
205
|
+
async deleteNotification(id) {
|
|
206
|
+
return this.ops.deleteNotificationById({ path: { id } });
|
|
207
|
+
}
|
|
208
|
+
async getNotificationSchema() {
|
|
209
|
+
return this.ops.getNotificationSchema();
|
|
210
|
+
}
|
|
211
|
+
async testNotification(notification) {
|
|
212
|
+
return this.ops.testNotification({ body: notification });
|
|
213
|
+
}
|
|
214
|
+
async testAllNotifications() {
|
|
215
|
+
return this.ops.testAllNotifications();
|
|
216
|
+
}
|
|
217
|
+
async getDownloadClients() {
|
|
218
|
+
return this.ops.getDownloadClients();
|
|
219
|
+
}
|
|
220
|
+
async getDownloadClient(id) {
|
|
221
|
+
return this.ops.getDownloadClientById({ path: { id } });
|
|
222
|
+
}
|
|
223
|
+
async addDownloadClient(client) {
|
|
224
|
+
return this.ops.createDownloadClient({ body: client });
|
|
225
|
+
}
|
|
226
|
+
async updateDownloadClient(id, client) {
|
|
227
|
+
return this.ops.updateDownloadClientById({ path: { id: String(id) }, body: client });
|
|
228
|
+
}
|
|
229
|
+
async deleteDownloadClient(id) {
|
|
230
|
+
return this.ops.deleteDownloadClientById({ path: { id } });
|
|
231
|
+
}
|
|
232
|
+
async getDownloadClientSchema() {
|
|
233
|
+
return this.ops.getDownloadClientSchema();
|
|
234
|
+
}
|
|
235
|
+
async testDownloadClient(client) {
|
|
236
|
+
return this.ops.testDownloadClient({ body: client });
|
|
237
|
+
}
|
|
238
|
+
async testAllDownloadClients() {
|
|
239
|
+
return this.ops.testAllDownloadClients();
|
|
240
|
+
}
|
|
241
|
+
async getIndexers() {
|
|
242
|
+
return this.ops.getIndexers();
|
|
243
|
+
}
|
|
244
|
+
async getIndexer(id) {
|
|
245
|
+
return this.ops.getIndexerById({ path: { id } });
|
|
246
|
+
}
|
|
247
|
+
async addIndexer(indexer) {
|
|
248
|
+
return this.ops.createIndexer({ body: indexer });
|
|
249
|
+
}
|
|
250
|
+
async updateIndexer(id, indexer) {
|
|
251
|
+
return this.ops.updateIndexerById({ path: { id: String(id) }, body: indexer });
|
|
252
|
+
}
|
|
253
|
+
async deleteIndexer(id) {
|
|
254
|
+
return this.ops.deleteIndexerById({ path: { id } });
|
|
255
|
+
}
|
|
256
|
+
async getIndexerSchema() {
|
|
257
|
+
return this.ops.getIndexerSchema();
|
|
258
|
+
}
|
|
259
|
+
async testIndexer(indexer) {
|
|
260
|
+
return this.ops.testIndexer({ body: indexer });
|
|
261
|
+
}
|
|
262
|
+
async testAllIndexers() {
|
|
263
|
+
return this.ops.testAllIndexers();
|
|
264
|
+
}
|
|
265
|
+
async restartSystem() {
|
|
266
|
+
return this.ops.restartSystem();
|
|
267
|
+
}
|
|
268
|
+
async shutdownSystem() {
|
|
269
|
+
return this.ops.shutdownSystem();
|
|
270
|
+
}
|
|
271
|
+
async getSystemBackups() {
|
|
272
|
+
return this.ops.getBackups();
|
|
273
|
+
}
|
|
274
|
+
async deleteSystemBackup(id) {
|
|
275
|
+
return this.ops.deleteBackup({ path: { id } });
|
|
276
|
+
}
|
|
277
|
+
async restoreSystemBackup(id) {
|
|
278
|
+
return this.ops.restoreBackup({ path: { id } });
|
|
279
|
+
}
|
|
280
|
+
async uploadSystemBackup() {
|
|
281
|
+
return this.ops.uploadBackup();
|
|
282
|
+
}
|
|
283
|
+
async getLogFiles() {
|
|
284
|
+
return this.ops.getLogFiles();
|
|
285
|
+
}
|
|
286
|
+
async getLogFileByName(filename) {
|
|
287
|
+
return this.ops.getLogFileByName({ path: { filename } });
|
|
288
|
+
}
|
|
289
|
+
async runCommand(command) {
|
|
290
|
+
return this.ops.runCommand({ body: command });
|
|
291
|
+
}
|
|
292
|
+
async getCommands() {
|
|
293
|
+
return this.ops.getCommands();
|
|
294
|
+
}
|
|
295
|
+
async getHostConfig() {
|
|
296
|
+
return this.ops.getHostConfig();
|
|
297
|
+
}
|
|
298
|
+
async getHostConfigById(id) {
|
|
299
|
+
return this.ops.getHostConfigById({ path: { id } });
|
|
300
|
+
}
|
|
301
|
+
async updateHostConfig(id, config) {
|
|
302
|
+
return this.ops.updateHostConfig({ path: { id: String(id) }, body: config });
|
|
303
|
+
}
|
|
304
|
+
async getUiConfig() {
|
|
305
|
+
return this.ops.getUiConfig();
|
|
306
|
+
}
|
|
307
|
+
async getUiConfigById(id) {
|
|
308
|
+
return this.ops.getUiConfigById({ path: { id } });
|
|
309
|
+
}
|
|
310
|
+
async updateUiConfig(id, config) {
|
|
311
|
+
return this.ops.updateUiConfig({ path: { id: String(id) }, body: config });
|
|
312
|
+
}
|
|
313
|
+
updateConfig(newConfig) {
|
|
314
|
+
const updatedConfig = { ...this.clientConfig.config, ...newConfig };
|
|
315
|
+
this.clientConfig = createServarrClient(updatedConfig);
|
|
316
|
+
this.configureRawClient();
|
|
317
|
+
return this.clientConfig.config;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
52
321
|
// src/generated/readarr/core/bodySerializer.gen.ts
|
|
53
322
|
var jsonBodySerializer = {
|
|
54
323
|
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
@@ -2093,20 +2362,60 @@ var getApiV1ConfigUi = (options) => (options?.client ?? client).get({
|
|
|
2093
2362
|
...options
|
|
2094
2363
|
});
|
|
2095
2364
|
// src/clients/readarr.ts
|
|
2096
|
-
class ReadarrClient {
|
|
2097
|
-
|
|
2365
|
+
class ReadarrClient extends ServarrBaseClient {
|
|
2366
|
+
ops = {
|
|
2367
|
+
getSystemStatus: getApiV1SystemStatus,
|
|
2368
|
+
getHealth: getApiV1Health,
|
|
2369
|
+
getTags: getApiV1Tag,
|
|
2370
|
+
createTag: postApiV1Tag,
|
|
2371
|
+
getTagById: getApiV1TagById,
|
|
2372
|
+
updateTagById: putApiV1TagById,
|
|
2373
|
+
deleteTagById: deleteApiV1TagById,
|
|
2374
|
+
getTagDetails: getApiV1TagDetail,
|
|
2375
|
+
getTagDetailById: getApiV1TagDetailById,
|
|
2376
|
+
getNotifications: getApiV1Notification,
|
|
2377
|
+
createNotification: postApiV1Notification,
|
|
2378
|
+
getNotificationById: getApiV1NotificationById,
|
|
2379
|
+
updateNotificationById: putApiV1NotificationById,
|
|
2380
|
+
deleteNotificationById: deleteApiV1NotificationById,
|
|
2381
|
+
getNotificationSchema: getApiV1NotificationSchema,
|
|
2382
|
+
testNotification: postApiV1NotificationTest,
|
|
2383
|
+
testAllNotifications: postApiV1NotificationTestall,
|
|
2384
|
+
getDownloadClients: getApiV1Downloadclient,
|
|
2385
|
+
createDownloadClient: postApiV1Downloadclient,
|
|
2386
|
+
getDownloadClientById: getApiV1DownloadclientById,
|
|
2387
|
+
updateDownloadClientById: putApiV1DownloadclientById,
|
|
2388
|
+
deleteDownloadClientById: deleteApiV1DownloadclientById,
|
|
2389
|
+
getDownloadClientSchema: getApiV1DownloadclientSchema,
|
|
2390
|
+
testDownloadClient: postApiV1DownloadclientTest,
|
|
2391
|
+
testAllDownloadClients: postApiV1DownloadclientTestall,
|
|
2392
|
+
getIndexers: getApiV1Indexer,
|
|
2393
|
+
createIndexer: postApiV1Indexer,
|
|
2394
|
+
getIndexerById: getApiV1IndexerById,
|
|
2395
|
+
updateIndexerById: putApiV1IndexerById,
|
|
2396
|
+
deleteIndexerById: deleteApiV1IndexerById,
|
|
2397
|
+
getIndexerSchema: getApiV1IndexerSchema,
|
|
2398
|
+
testIndexer: postApiV1IndexerTest,
|
|
2399
|
+
testAllIndexers: postApiV1IndexerTestall,
|
|
2400
|
+
restartSystem: postApiV1SystemRestart,
|
|
2401
|
+
shutdownSystem: postApiV1SystemShutdown,
|
|
2402
|
+
getBackups: getApiV1SystemBackup,
|
|
2403
|
+
deleteBackup: deleteApiV1SystemBackupById,
|
|
2404
|
+
restoreBackup: postApiV1SystemBackupRestoreById,
|
|
2405
|
+
uploadBackup: postApiV1SystemBackupRestoreUpload,
|
|
2406
|
+
getLogFiles: getApiV1LogFile,
|
|
2407
|
+
getLogFileByName: getApiV1LogFileByFilename,
|
|
2408
|
+
runCommand: postApiV1Command,
|
|
2409
|
+
getCommands: getApiV1Command,
|
|
2410
|
+
getHostConfig: getApiV1ConfigHost,
|
|
2411
|
+
getHostConfigById: getApiV1ConfigHostById,
|
|
2412
|
+
updateHostConfig: putApiV1ConfigHostById,
|
|
2413
|
+
getUiConfig: getApiV1ConfigUi,
|
|
2414
|
+
getUiConfigById: getApiV1ConfigUiById,
|
|
2415
|
+
updateUiConfig: putApiV1ConfigUiById
|
|
2416
|
+
};
|
|
2098
2417
|
constructor(config) {
|
|
2099
|
-
|
|
2100
|
-
client.setConfig({
|
|
2101
|
-
baseUrl: this.clientConfig.getBaseUrl(),
|
|
2102
|
-
headers: this.clientConfig.getHeaders()
|
|
2103
|
-
});
|
|
2104
|
-
}
|
|
2105
|
-
async getSystemStatus() {
|
|
2106
|
-
return getApiV1SystemStatus();
|
|
2107
|
-
}
|
|
2108
|
-
async getHealth() {
|
|
2109
|
-
return getApiV1Health();
|
|
2418
|
+
super(config, client);
|
|
2110
2419
|
}
|
|
2111
2420
|
async getAuthors() {
|
|
2112
2421
|
return getApiV1Author();
|
|
@@ -2132,12 +2441,6 @@ class ReadarrClient {
|
|
|
2132
2441
|
async searchAuthors(term) {
|
|
2133
2442
|
return getApiV1AuthorLookup({ query: { term } });
|
|
2134
2443
|
}
|
|
2135
|
-
async runCommand(command) {
|
|
2136
|
-
return postApiV1Command({ body: command });
|
|
2137
|
-
}
|
|
2138
|
-
async getCommands() {
|
|
2139
|
-
return getApiV1Command();
|
|
2140
|
-
}
|
|
2141
2444
|
async getRootFolders() {
|
|
2142
2445
|
return getApiV1Rootfolder();
|
|
2143
2446
|
}
|
|
@@ -2149,15 +2452,6 @@ class ReadarrClient {
|
|
|
2149
2452
|
async deleteRootFolder(id) {
|
|
2150
2453
|
return deleteApiV1RootfolderById({ path: { id } });
|
|
2151
2454
|
}
|
|
2152
|
-
async getHostConfig() {
|
|
2153
|
-
return getApiV1ConfigHost();
|
|
2154
|
-
}
|
|
2155
|
-
async getHostConfigById(id) {
|
|
2156
|
-
return getApiV1ConfigHostById({ path: { id } });
|
|
2157
|
-
}
|
|
2158
|
-
async updateHostConfig(id, config) {
|
|
2159
|
-
return putApiV1ConfigHostById({ path: { id: String(id) }, body: config });
|
|
2160
|
-
}
|
|
2161
2455
|
async getNamingConfig() {
|
|
2162
2456
|
return getApiV1ConfigNaming();
|
|
2163
2457
|
}
|
|
@@ -2179,15 +2473,6 @@ class ReadarrClient {
|
|
|
2179
2473
|
async updateMediaManagementConfig(id, config) {
|
|
2180
2474
|
return putApiV1ConfigMediamanagementById({ path: { id: String(id) }, body: config });
|
|
2181
2475
|
}
|
|
2182
|
-
async getUiConfig() {
|
|
2183
|
-
return getApiV1ConfigUi();
|
|
2184
|
-
}
|
|
2185
|
-
async getUiConfigById(id) {
|
|
2186
|
-
return getApiV1ConfigUiById({ path: { id } });
|
|
2187
|
-
}
|
|
2188
|
-
async updateUiConfig(id, config) {
|
|
2189
|
-
return putApiV1ConfigUiById({ path: { id: String(id) }, body: config });
|
|
2190
|
-
}
|
|
2191
2476
|
async getDevelopmentConfig() {
|
|
2192
2477
|
return getApiV1ConfigDevelopment();
|
|
2193
2478
|
}
|
|
@@ -2209,57 +2494,12 @@ class ReadarrClient {
|
|
|
2209
2494
|
body: config
|
|
2210
2495
|
});
|
|
2211
2496
|
}
|
|
2212
|
-
async restartSystem() {
|
|
2213
|
-
return postApiV1SystemRestart();
|
|
2214
|
-
}
|
|
2215
|
-
async shutdownSystem() {
|
|
2216
|
-
return postApiV1SystemShutdown();
|
|
2217
|
-
}
|
|
2218
|
-
async getSystemBackups() {
|
|
2219
|
-
return getApiV1SystemBackup();
|
|
2220
|
-
}
|
|
2221
|
-
async deleteSystemBackup(id) {
|
|
2222
|
-
return deleteApiV1SystemBackupById({ path: { id } });
|
|
2223
|
-
}
|
|
2224
|
-
async restoreSystemBackup(id) {
|
|
2225
|
-
return postApiV1SystemBackupRestoreById({ path: { id } });
|
|
2226
|
-
}
|
|
2227
|
-
async uploadSystemBackup() {
|
|
2228
|
-
return postApiV1SystemBackupRestoreUpload();
|
|
2229
|
-
}
|
|
2230
2497
|
async getSystemLogs() {
|
|
2231
2498
|
return getApiV1Log();
|
|
2232
2499
|
}
|
|
2233
|
-
async getLogFiles() {
|
|
2234
|
-
return getApiV1LogFile();
|
|
2235
|
-
}
|
|
2236
|
-
async getLogFileByName(filename) {
|
|
2237
|
-
return getApiV1LogFileByFilename({ path: { filename } });
|
|
2238
|
-
}
|
|
2239
2500
|
async getDiskSpace() {
|
|
2240
2501
|
return getApiV1Diskspace();
|
|
2241
2502
|
}
|
|
2242
|
-
async getTags() {
|
|
2243
|
-
return getApiV1Tag();
|
|
2244
|
-
}
|
|
2245
|
-
async addTag(tag) {
|
|
2246
|
-
return postApiV1Tag({ body: tag });
|
|
2247
|
-
}
|
|
2248
|
-
async getTag(id) {
|
|
2249
|
-
return getApiV1TagById({ path: { id } });
|
|
2250
|
-
}
|
|
2251
|
-
async updateTag(id, tag) {
|
|
2252
|
-
return putApiV1TagById({ path: { id: String(id) }, body: tag });
|
|
2253
|
-
}
|
|
2254
|
-
async deleteTag(id) {
|
|
2255
|
-
return deleteApiV1TagById({ path: { id } });
|
|
2256
|
-
}
|
|
2257
|
-
async getTagDetails() {
|
|
2258
|
-
return getApiV1TagDetail();
|
|
2259
|
-
}
|
|
2260
|
-
async getTagDetailById(id) {
|
|
2261
|
-
return getApiV1TagDetailById({ path: { id } });
|
|
2262
|
-
}
|
|
2263
2503
|
async addBook(book) {
|
|
2264
2504
|
return postApiV1Book({ body: book });
|
|
2265
2505
|
}
|
|
@@ -2355,54 +2595,6 @@ class ReadarrClient {
|
|
|
2355
2595
|
async getCustomFormatSchema() {
|
|
2356
2596
|
return getApiV1CustomformatSchema();
|
|
2357
2597
|
}
|
|
2358
|
-
async getDownloadClients() {
|
|
2359
|
-
return getApiV1Downloadclient();
|
|
2360
|
-
}
|
|
2361
|
-
async getDownloadClient(id) {
|
|
2362
|
-
return getApiV1DownloadclientById({ path: { id } });
|
|
2363
|
-
}
|
|
2364
|
-
async addDownloadClient(client2) {
|
|
2365
|
-
return postApiV1Downloadclient({ body: client2 });
|
|
2366
|
-
}
|
|
2367
|
-
async updateDownloadClient(id, client2) {
|
|
2368
|
-
return putApiV1DownloadclientById({ path: { id: String(id) }, body: client2 });
|
|
2369
|
-
}
|
|
2370
|
-
async deleteDownloadClient(id) {
|
|
2371
|
-
return deleteApiV1DownloadclientById({ path: { id } });
|
|
2372
|
-
}
|
|
2373
|
-
async getDownloadClientSchema() {
|
|
2374
|
-
return getApiV1DownloadclientSchema();
|
|
2375
|
-
}
|
|
2376
|
-
async testDownloadClient(client2) {
|
|
2377
|
-
return postApiV1DownloadclientTest({ body: client2 });
|
|
2378
|
-
}
|
|
2379
|
-
async testAllDownloadClients() {
|
|
2380
|
-
return postApiV1DownloadclientTestall();
|
|
2381
|
-
}
|
|
2382
|
-
async getIndexers() {
|
|
2383
|
-
return getApiV1Indexer();
|
|
2384
|
-
}
|
|
2385
|
-
async getIndexer(id) {
|
|
2386
|
-
return getApiV1IndexerById({ path: { id } });
|
|
2387
|
-
}
|
|
2388
|
-
async addIndexer(indexer) {
|
|
2389
|
-
return postApiV1Indexer({ body: indexer });
|
|
2390
|
-
}
|
|
2391
|
-
async updateIndexer(id, indexer) {
|
|
2392
|
-
return putApiV1IndexerById({ path: { id: String(id) }, body: indexer });
|
|
2393
|
-
}
|
|
2394
|
-
async deleteIndexer(id) {
|
|
2395
|
-
return deleteApiV1IndexerById({ path: { id } });
|
|
2396
|
-
}
|
|
2397
|
-
async getIndexerSchema() {
|
|
2398
|
-
return getApiV1IndexerSchema();
|
|
2399
|
-
}
|
|
2400
|
-
async testIndexer(indexer) {
|
|
2401
|
-
return postApiV1IndexerTest({ body: indexer });
|
|
2402
|
-
}
|
|
2403
|
-
async testAllIndexers() {
|
|
2404
|
-
return postApiV1IndexerTestall();
|
|
2405
|
-
}
|
|
2406
2598
|
async getImportLists() {
|
|
2407
2599
|
return getApiV1Importlist();
|
|
2408
2600
|
}
|
|
@@ -2427,30 +2619,6 @@ class ReadarrClient {
|
|
|
2427
2619
|
async testAllImportLists() {
|
|
2428
2620
|
return postApiV1ImportlistTestall();
|
|
2429
2621
|
}
|
|
2430
|
-
async getNotifications() {
|
|
2431
|
-
return getApiV1Notification();
|
|
2432
|
-
}
|
|
2433
|
-
async getNotification(id) {
|
|
2434
|
-
return getApiV1NotificationById({ path: { id } });
|
|
2435
|
-
}
|
|
2436
|
-
async addNotification(notification) {
|
|
2437
|
-
return postApiV1Notification({ body: notification });
|
|
2438
|
-
}
|
|
2439
|
-
async updateNotification(id, notification) {
|
|
2440
|
-
return putApiV1NotificationById({ path: { id: String(id) }, body: notification });
|
|
2441
|
-
}
|
|
2442
|
-
async deleteNotification(id) {
|
|
2443
|
-
return deleteApiV1NotificationById({ path: { id } });
|
|
2444
|
-
}
|
|
2445
|
-
async getNotificationSchema() {
|
|
2446
|
-
return getApiV1NotificationSchema();
|
|
2447
|
-
}
|
|
2448
|
-
async testNotification(notification) {
|
|
2449
|
-
return postApiV1NotificationTest({ body: notification });
|
|
2450
|
-
}
|
|
2451
|
-
async testAllNotifications() {
|
|
2452
|
-
return postApiV1NotificationTestall();
|
|
2453
|
-
}
|
|
2454
2622
|
async getHistory(page, pageSize, sortKey, sortDirection, authorId, downloadId) {
|
|
2455
2623
|
const query = {};
|
|
2456
2624
|
if (page !== undefined)
|
|
@@ -2583,15 +2751,6 @@ class ReadarrClient {
|
|
|
2583
2751
|
query.monitored = monitored;
|
|
2584
2752
|
return getApiV1WantedCutoff(Object.keys(query).length > 0 ? { query } : {});
|
|
2585
2753
|
}
|
|
2586
|
-
updateConfig(newConfig) {
|
|
2587
|
-
const updatedConfig = { ...this.clientConfig.config, ...newConfig };
|
|
2588
|
-
this.clientConfig = createServarrClient(updatedConfig);
|
|
2589
|
-
client.setConfig({
|
|
2590
|
-
baseUrl: this.clientConfig.getBaseUrl(),
|
|
2591
|
-
headers: this.clientConfig.getHeaders()
|
|
2592
|
-
});
|
|
2593
|
-
return this.clientConfig.config;
|
|
2594
|
-
}
|
|
2595
2754
|
}
|
|
2596
2755
|
export {
|
|
2597
2756
|
ReadarrClient
|
package/dist/clients/seerr.d.ts
CHANGED
|
@@ -151,9 +151,9 @@ export declare class SeerrClient {
|
|
|
151
151
|
baseUrl: string;
|
|
152
152
|
apiKey: string;
|
|
153
153
|
timeout?: number;
|
|
154
|
+
retry?: import("../index.js").RetryOptions;
|
|
154
155
|
headers?: Record<string, string>;
|
|
155
156
|
};
|
|
156
157
|
}
|
|
157
|
-
export * from './seerr-types';
|
|
158
158
|
export * from './seerr-types.js';
|
|
159
159
|
//# sourceMappingURL=seerr.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seerr.d.ts","sourceRoot":"","sources":["../../src/clients/seerr.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,KAAK,QAAQ,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EACV,cAAc,EAGd,YAAY,EACb,MAAM,8BAA8B,CAAC;AAEtC,KAAK,aAAa,GAAG,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAEpE;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,WAAW;IACtB,OAAO,CA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