feat: sdk migration in progress

This commit is contained in:
allanice001
2025-11-02 13:19:30 +00:00
commit 0d10d42442
492 changed files with 71067 additions and 0 deletions

23
ui/src/api/taints.ts Normal file
View File

@@ -0,0 +1,23 @@
import { withRefresh } from "@/api/with-refresh.ts"
import type { DtoCreateTaintRequest, DtoUpdateTaintRequest } from "@/sdk"
import { makeTaintsApi } from "@/sdkClient.ts"
const taints = makeTaintsApi()
export const taintsApi = {
listTaints: () =>
withRefresh(async () => {
return await taints.listTaints()
}),
createTaint: (body: DtoCreateTaintRequest) =>
withRefresh(async () => {
return await taints.createTaint({ body })
}),
deleteTaint: (id: string) =>
withRefresh(async () => {
await taints.deleteTaint({ id })
}),
updateTaint: (id: string, body: DtoUpdateTaintRequest) =>
withRefresh(async () => {
return await taints.updateTaint({ id, body })
}),
}