perf: unify entities

This commit is contained in:
Junyan Qin
2025-05-08 18:09:52 +08:00
parent ef6be4dfd9
commit e74de068ea
19 changed files with 400 additions and 632 deletions
+3 -2
View File
@@ -28,7 +28,8 @@ import {
ApiRespUserToken,
MarketPluginResponse,
GetPipelineResponseData,
} from '../api/api-types';
GetPipelineMetadataResponseData
} from '@/app/infra/entities/api';
import { notification } from 'antd';
type JSONValue = string | number | boolean | JSONObject | JSONArray | null;
@@ -249,7 +250,7 @@ class HttpClient {
}
// ============ Pipeline API ============
public getGeneralPipelineMetadata(): Promise<object> {
public getGeneralPipelineMetadata(): Promise<GetPipelineMetadataResponseData> {
// as designed, this method will be deprecated, and only for developer to check the prefered config schema
return this.get('/api/v1/pipelines/_/metadata');
}