🤖 chore(openapi): regenerate services & patch axios requestType typing

This commit is contained in:
web-ppanel
2026-01-27 17:52:28 +00:00
parent 912c5c4cb6
commit 0ec4f84fa9
40 changed files with 127 additions and 25 deletions
+1 -22
View File
@@ -1,3 +1,4 @@
// @ts-nocheck
/* eslint-disable */
import request from "@workspace/ui/lib/request";
@@ -55,28 +56,6 @@ export async function filterServerList(
);
}
/** Check if there is any server or node to migrate GET /v1/admin/server/migrate/has */
export async function hasMigrateSeverNode(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.HasMigrateSeverNodeResponse }>(
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/server/migrate/has`,
{
method: "GET",
...(options || {}),
}
);
}
/** Migrate server and node data to new database POST /v1/admin/server/migrate/run */
export async function migrateServerNode(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.MigrateServerNodeResponse }>(
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/server/migrate/run`,
{
method: "POST",
...(options || {}),
}
);
}
/** Create Node POST /v1/admin/server/node/create */
export async function createNode(
body: API.CreateNodeRequest,