2019-10-21 11:40:24 +00:00
|
|
|
import Api from "./Api";
|
|
|
|
|
import { ApiResponse } from "./ApiResponses";
|
2019-11-25 05:07:27 +00:00
|
|
|
import { PropertyConfig } from "reducers/entityReducers/propertyPaneConfigReducer";
|
2019-10-29 12:02:58 +00:00
|
|
|
import { AxiosPromise } from "axios";
|
2019-10-21 11:40:24 +00:00
|
|
|
|
|
|
|
|
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-10-21 11:40:24 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-22 12:15:33 +00:00
|
|
|
export default ConfigsApi;
|