diff --git a/.yarn/cache/@mittwald-api-client-commons-npm-4.15.0-112574b407-26685da695.zip b/.yarn/cache/@mittwald-api-client-commons-npm-4.55.0-9a81d112a8-0479b5fe3a.zip similarity index 73% rename from .yarn/cache/@mittwald-api-client-commons-npm-4.15.0-112574b407-26685da695.zip rename to .yarn/cache/@mittwald-api-client-commons-npm-4.55.0-9a81d112a8-0479b5fe3a.zip index 928d5cad..1587c6ee 100644 Binary files a/.yarn/cache/@mittwald-api-client-commons-npm-4.15.0-112574b407-26685da695.zip and b/.yarn/cache/@mittwald-api-client-commons-npm-4.55.0-9a81d112a8-0479b5fe3a.zip differ diff --git a/.yarn/cache/@mittwald-api-client-npm-4.35.0-56b7ea1e26-a1e02e6889.zip b/.yarn/cache/@mittwald-api-client-npm-4.35.0-56b7ea1e26-a1e02e6889.zip deleted file mode 100644 index 2b872338..00000000 Binary files a/.yarn/cache/@mittwald-api-client-npm-4.35.0-56b7ea1e26-a1e02e6889.zip and /dev/null differ diff --git a/.yarn/cache/@mittwald-api-client-npm-4.55.0-6bb8b5c92e-29a690dd9b.zip b/.yarn/cache/@mittwald-api-client-npm-4.55.0-6bb8b5c92e-29a690dd9b.zip new file mode 100644 index 00000000..96b175b2 Binary files /dev/null and b/.yarn/cache/@mittwald-api-client-npm-4.55.0-6bb8b5c92e-29a690dd9b.zip differ diff --git a/.yarn/cache/axios-npm-1.7.4-cc1c89ddba-0c17039a9a.zip b/.yarn/cache/axios-npm-1.7.4-cc1c89ddba-0c17039a9a.zip deleted file mode 100644 index 20cb402c..00000000 Binary files a/.yarn/cache/axios-npm-1.7.4-cc1c89ddba-0c17039a9a.zip and /dev/null differ diff --git a/.yarn/cache/axios-npm-1.7.5-b23f777d13-2859fe0143.zip b/.yarn/cache/axios-npm-1.7.5-b23f777d13-2859fe0143.zip new file mode 100644 index 00000000..f70dea70 Binary files /dev/null and b/.yarn/cache/axios-npm-1.7.5-b23f777d13-2859fe0143.zip differ diff --git a/.yarn/cache/browser-or-node-npm-3.0.0-bf25f44ae1-51d74cc5d0.zip b/.yarn/cache/browser-or-node-npm-3.0.0-bf25f44ae1-51d74cc5d0.zip new file mode 100644 index 00000000..1ef25582 Binary files /dev/null and b/.yarn/cache/browser-or-node-npm-3.0.0-bf25f44ae1-51d74cc5d0.zip differ diff --git a/.yarn/cache/path-to-regexp-npm-6.2.2-0bf7f6805c-b7b0005c36.zip b/.yarn/cache/path-to-regexp-npm-6.2.2-0bf7f6805c-b7b0005c36.zip new file mode 100644 index 00000000..9ba9990f Binary files /dev/null and b/.yarn/cache/path-to-regexp-npm-6.2.2-0bf7f6805c-b7b0005c36.zip differ diff --git a/src/commands/backup/list.ts b/src/commands/backup/list.ts index 0ba2a744..57c9aa1d 100644 --- a/src/commands/backup/list.ts +++ b/src/commands/backup/list.ts @@ -1,5 +1,5 @@ import { Response, Simplify } from "@mittwald/api-client-commons"; -import type { MittwaldAPIV2 } from "@mittwald/api-client"; +import { assertStatus, type MittwaldAPIV2 } from "@mittwald/api-client"; import { ListBaseCommand } from "../../lib/basecommands/ListBaseCommand.js"; import { projectFlags } from "../../lib/resources/project/flags.js"; import { ListColumns } from "../../rendering/formatter/ListFormatter.js"; @@ -23,9 +23,12 @@ export class List extends ListBaseCommand { public async getData(): Promise { const projectId = await this.withProjectId(List); - return await this.apiClient.backup.listProjectBackups({ + const response = await this.apiClient.backup.listProjectBackups({ projectId, } as Parameters[0]); + + assertStatus(response, 200); + return response; } protected getColumns(data: ListItem[]): ListColumns { diff --git a/yarn.lock b/yarn.lock index bc9f68c8..7956f373 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1189,15 +1189,15 @@ __metadata: languageName: node linkType: hard -"@mittwald/api-client-commons@npm:^4.15.0": - version: 4.15.0 - resolution: "@mittwald/api-client-commons@npm:4.15.0" +"@mittwald/api-client-commons@npm:^4.55.0": + version: 4.55.0 + resolution: "@mittwald/api-client-commons@npm:4.55.0" dependencies: "@types/parse-path": ^7.0.3 - axios: ^1.6.7 + axios: ^1.7.4 parse-path: ^7.0.0 - path-to-regexp: ^6.2.1 - type-fest: ^4.12.0 + path-to-regexp: ^6.2.2 + type-fest: ^4.23.0 peerDependencies: "@mittwald/react-use-promise": ^2.1.0 peerDependenciesMeta: @@ -1205,22 +1205,22 @@ __metadata: optional: true "@mittwald/react-use-promise": optional: true - checksum: 26685da6953cfeef29f42c8060d22604143490cc783e9c2e35ebe7fc132fd6c01716c2de319a4b0c64939381ff846d1aea90c1a4e1be3fd1db5f04d9e5df23e4 + checksum: 0479b5fe3a82348f0f37d0f48c4871442aa4f6175635b6da4cfbace3e706612f58a5ec3f329f3bb952e7863de7a6a80fdff9dd3c35be0f93b16bc7bdb11d2d63 languageName: node linkType: hard "@mittwald/api-client@npm:^4.9.0": - version: 4.35.0 - resolution: "@mittwald/api-client@npm:4.35.0" + version: 4.55.0 + resolution: "@mittwald/api-client@npm:4.55.0" dependencies: - "@mittwald/api-client-commons": ^4.15.0 - browser-or-node: ^3.0.0-pre.0 + "@mittwald/api-client-commons": ^4.55.0 + browser-or-node: ^3.0.0 peerDependencies: "@mittwald/react-use-promise": ^2.3.12 peerDependenciesMeta: "@mittwald/react-use-promise": optional: true - checksum: a1e02e6889e70c0702d296451b30eb67ca12c8a6c44ec930c9ffdca9415ee22b773ad7134e631cb5d334d2e0c2669f6ea95a59ccc34baa578e4332230de7e988 + checksum: 29a690dd9b5394cc19908522827a6e1b00a98828698ff8ab2e9e720cdce398b4504f8bac3df63f45107211bc81f51d016698cb41a9bd3b791974b6cbd1e01de9 languageName: node linkType: hard @@ -3167,14 +3167,14 @@ __metadata: languageName: node linkType: hard -"axios@npm:^1.6.7": - version: 1.7.4 - resolution: "axios@npm:1.7.4" +"axios@npm:^1.7.4": + version: 1.7.5 + resolution: "axios@npm:1.7.5" dependencies: follow-redirects: ^1.15.6 form-data: ^4.0.0 proxy-from-env: ^1.1.0 - checksum: 0c17039a9acfe6a566fca8431ba5c1b455c83d30ea6157fec68a6722878fcd30f3bd32d172f6bee0c51fe75ca98e6414ddcd968a87b5606b573731629440bfaf + checksum: 2859fe01437cf133eee35571abc1d4b5224bb13e530e66cb3581ca226e170541dd5eef9f46abb41592cee0a2f54930c9e4978354e0cf1064748fc20d9a05e9d5 languageName: node linkType: hard @@ -3261,6 +3261,13 @@ __metadata: languageName: node linkType: hard +"browser-or-node@npm:^3.0.0": + version: 3.0.0 + resolution: "browser-or-node@npm:3.0.0" + checksum: 51d74cc5d0139da3d37e83ff3906fcca20d02c42aa8b81a48d9ea01806f36df1a4b55006670071b1d7423967777275920054ec8b723410534b580b0232c5093d + languageName: node + linkType: hard + "browser-or-node@npm:^3.0.0-pre.0": version: 3.0.0-pre.0 resolution: "browser-or-node@npm:3.0.0-pre.0" @@ -7384,6 +7391,13 @@ __metadata: languageName: node linkType: hard +"path-to-regexp@npm:^6.2.2": + version: 6.2.2 + resolution: "path-to-regexp@npm:6.2.2" + checksum: b7b0005c36f5099f9ed1fb20a820d2e4ed1297ffe683ea1d678f5e976eb9544f01debb281369dabdc26da82e6453901bf71acf2c7ed14b9243536c2a45286c33 + languageName: node + linkType: hard + "path-type@npm:^4.0.0": version: 4.0.0 resolution: "path-type@npm:4.0.0" @@ -8667,7 +8681,7 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^4.12.0, type-fest@npm:^4.18.2, type-fest@npm:^4.6.0, type-fest@npm:^4.8.3": +"type-fest@npm:^4.18.2, type-fest@npm:^4.23.0, type-fest@npm:^4.6.0, type-fest@npm:^4.8.3": version: 4.25.0 resolution: "type-fest@npm:4.25.0" checksum: 4c318d0fbfc6e51bb52db6ce4609066888e45346594db502e6040681fc1985a9f5845a80b6bd46ca64310271d1cdee52a9110ccabaf199b978388b098bbc5985