tsarr 2.8.0 → 2.9.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.
@@ -1 +1 @@
1
- {"version":3,"file":"lidarr.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lidarr.ts"],"names":[],"mappings":"AAmjBA,eAAO,MAAM,MAAM,qDAKlB,CAAC"}
1
+ {"version":3,"file":"lidarr.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lidarr.ts"],"names":[],"mappings":"AAqkBA,eAAO,MAAM,MAAM,qDAKlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"readarr.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/readarr.ts"],"names":[],"mappings":"AAojBA,eAAO,MAAM,OAAO,qDAKnB,CAAC"}
1
+ {"version":3,"file":"readarr.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/readarr.ts"],"names":[],"mappings":"AAskBA,eAAO,MAAM,OAAO,qDAKnB,CAAC"}
package/dist/cli/index.js CHANGED
@@ -12402,6 +12402,24 @@ var init_lidarr3 = __esm(() => {
12402
12402
  args: [{ name: "id", description: "Import list ID", required: true, type: "number" }],
12403
12403
  run: (c3, a2) => c3.getImportList(a2.id)
12404
12404
  },
12405
+ {
12406
+ name: "add",
12407
+ description: "Add an import list from JSON file or stdin",
12408
+ args: [{ name: "file", description: "JSON file path (use - for stdin)", required: true }],
12409
+ run: async (c3, a2) => c3.addImportList(readJsonInput(a2.file))
12410
+ },
12411
+ {
12412
+ name: "edit",
12413
+ description: "Edit an import list (merges JSON with existing)",
12414
+ args: [
12415
+ { name: "id", description: "Import list ID", required: true, type: "number" },
12416
+ { name: "file", description: "JSON file with fields to update", required: true }
12417
+ ],
12418
+ run: async (c3, a2) => {
12419
+ const existing = unwrapData(await c3.getImportList(a2.id));
12420
+ return c3.updateImportList(a2.id, { ...existing, ...readJsonInput(a2.file) });
12421
+ }
12422
+ },
12405
12423
  {
12406
12424
  name: "delete",
12407
12425
  description: "Delete an import list",
@@ -15411,6 +15429,24 @@ var init_readarr3 = __esm(() => {
15411
15429
  args: [{ name: "id", description: "Import list ID", required: true, type: "number" }],
15412
15430
  run: (c3, a2) => c3.getImportList(a2.id)
15413
15431
  },
15432
+ {
15433
+ name: "add",
15434
+ description: "Add an import list from JSON file or stdin",
15435
+ args: [{ name: "file", description: "JSON file path (use - for stdin)", required: true }],
15436
+ run: async (c3, a2) => c3.addImportList(readJsonInput(a2.file))
15437
+ },
15438
+ {
15439
+ name: "edit",
15440
+ description: "Edit an import list (merges JSON with existing)",
15441
+ args: [
15442
+ { name: "id", description: "Import list ID", required: true, type: "number" },
15443
+ { name: "file", description: "JSON file with fields to update", required: true }
15444
+ ],
15445
+ run: async (c3, a2) => {
15446
+ const existing = unwrapData(await c3.getImportList(a2.id));
15447
+ return c3.updateImportList(a2.id, { ...existing, ...readJsonInput(a2.file) });
15448
+ }
15449
+ },
15414
15450
  {
15415
15451
  name: "delete",
15416
15452
  description: "Delete an import list",
@@ -21843,7 +21879,7 @@ init_dist();
21843
21879
  // package.json
21844
21880
  var package_default = {
21845
21881
  name: "tsarr",
21846
- version: "2.8.0",
21882
+ version: "2.9.0",
21847
21883
  author: "Robbe Verhelst",
21848
21884
  repository: {
21849
21885
  type: "git",
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsarr",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "author": "Robbe Verhelst",
5
5
  "repository": {
6
6
  "type": "git",
Binary file