import { ApiEntity } from "../types/index.js"; import { SearchViewBoxUrl, getBaseUrl, getIdUrl, getIdViewBoxUrl, } from "./url.js"; export const MapApi = { Search: new SearchViewBoxUrl(true, ApiEntity.Map), Create: getBaseUrl(ApiEntity.Map), Read: getIdUrl(true, ApiEntity.Map), Update: getIdUrl(true, ApiEntity.Map), Delete: getIdUrl(true, ApiEntity.Map), Clone: getIdUrl(true, ApiEntity.Map), Export: getIdUrl(true, ApiEntity.Map, ApiEntity.Export), Import: getIdUrl(false, ApiEntity.Map, ApiEntity.Import), Centroid: getIdViewBoxUrl(true, ApiEntity.Map, ApiEntity.Centroid), Image: getIdViewBoxUrl(true, ApiEntity.Map, ApiEntity.Image), Label: getIdViewBoxUrl(true, ApiEntity.Map, ApiEntity.Label), Pin: getIdViewBoxUrl(true, ApiEntity.Map, ApiEntity.Pin), ViewBox: getIdViewBoxUrl(true, ApiEntity.Map, ApiEntity.ViewBox), Shape: getIdViewBoxUrl(true, ApiEntity.Map, ApiEntity.Shape), Svg: getIdViewBoxUrl(true, ApiEntity.Map, ApiEntity.Svg), };