feat: package rollback support (#161)

* implement support of rollback handler

* react interface for the rollback
This commit is contained in:
arcanis authored and GitHub committed 2026-03-22 00:36:48 +02:00
1 parent 96684d7ddd
commit d7984c12f0
41 files changed
+1014 -252

No files matched your search

+7
View File
@@ -24,6 +24,7 @@ import type { Event } from "models/Event";
import type { InfoResponse } from "models/InfoResponse";
import type { InternalStatus } from "models/InternalStatus";
import type { LogRecord } from "models/LogRecord";
import type { Package } from "models/Package";
import type { PackageStatus } from "models/PackageStatus";
import type { Patch } from "models/Patch";
import { RepositoryId } from "models/RepositoryId";
@@ -36,6 +37,12 @@ export class FetchClient {
this.client = client;
}
async fetchPackageArtifacts(packageBase: string, repository: RepositoryId): Promise<Package[]> {
return this.client.request<Package[]>(`/api/v1/packages/${encodeURIComponent(packageBase)}/archives`, {
query: repository.toQuery(),
});
}
async fetchPackage(packageBase: string, repository: RepositoryId): Promise<PackageStatus[]> {
return this.client.request<PackageStatus[]>(`/api/v1/packages/${encodeURIComponent(packageBase)}`, {
query: repository.toQuery(),