PromucFlow_constructor/app/client/src/api/ConfigsApi.tsx

24 lines
624 B
TypeScript
Raw Normal View History

import Api from "./Api";
import { ApiResponse } from "./ApiResponses";
2019-11-25 05:07:27 +00:00
import { PropertyConfig } from "reducers/entityReducers/propertyPaneConfigReducer";
import { AxiosPromise } from "axios";
export interface PropertyPaneConfigsResponse extends ApiResponse {
data: {
config: PropertyConfig;
};
}
export interface PropertyPaneConfigsRequest {
propertyPaneConfigsId: string;
}
2019-11-22 12:15:33 +00:00
class ConfigsApi extends Api {
static baseURL = "v1/configs/name/";
static fetchPropertyPane(): AxiosPromise<PropertyPaneConfigsResponse> {
return Api.get(ConfigsApi.baseURL + "propertyPane");
}
}
2019-11-22 12:15:33 +00:00
export default ConfigsApi;