@hokuto/jam-node
Version:
JAM Node TS, guardians and utils
27 lines (26 loc) • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapApi = void 0;
const jam_core_1 = require("@hokuto/jam-core");
const fetch_js_1 = require("./fetch.js");
const types_js_1 = require("../types.js");
const url_js_1 = require("./url.js");
exports.MapApi = {
Search: new fetch_js_1.SearchViewBoxApi(jam_core_1.CoreApi.Map.Search),
Create: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.Create, types_js_1.ApiMethod.Post),
Read: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.Read),
Update: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.Update, types_js_1.ApiMethod.Put),
Delete: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.Delete, types_js_1.ApiMethod.Delete),
Clone: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.Clone, types_js_1.ApiMethod.Post),
Export: (0, fetch_js_1.fetchBlob)(jam_core_1.CoreApi.Map.Export, jam_core_1.BlobContentType.Json),
Import: (0, fetch_js_1.fetchUpload)(jam_core_1.CoreApi.Map.Import),
Centroid: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.Centroid),
Image: (0, fetch_js_1.fetchMapImage)(jam_core_1.CoreApi.Map.Image),
ImageUrl: (0, url_js_1.getMapImageUrl)(jam_core_1.CoreApi.Map.Image),
Label: (0, fetch_js_1.fetchMapImage)(jam_core_1.CoreApi.Map.Label),
LabelUrl: (0, url_js_1.getMapImageUrl)(jam_core_1.CoreApi.Map.Label),
Pin: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.Pin),
ViewBox: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.ViewBox),
Shape: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Map.Shape),
Svg: (0, fetch_js_1.fetchMapSvg)(jam_core_1.CoreApi.Map.Svg),
};