PromucFlow_constructor/app/client/src/api/ConfigsApi.tsx
2019-11-25 10:37:27 +05:30

24 lines
624 B
TypeScript

import Api from "./Api";
import { ApiResponse } from "./ApiResponses";
import { PropertyConfig } from "reducers/entityReducers/propertyPaneConfigReducer";
import { AxiosPromise } from "axios";
export interface PropertyPaneConfigsResponse extends ApiResponse {
data: {
config: PropertyConfig;
};
}
export interface PropertyPaneConfigsRequest {
propertyPaneConfigsId: string;
}
class ConfigsApi extends Api {
static baseURL = "v1/configs/name/";
static fetchPropertyPane(): AxiosPromise<PropertyPaneConfigsResponse> {
return Api.get(ConfigsApi.baseURL + "propertyPane");
}
}
export default ConfigsApi;