@hokuto/jam-node
Version:
JAM Node TS, guardians and utils
27 lines (26 loc) • 1.68 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AtlasApi = 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.AtlasApi = {
Search: new fetch_js_1.SearchViewBoxApi(jam_core_1.CoreApi.Atlas.Search),
Create: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.Create, types_js_1.ApiMethod.Post),
Read: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.Read),
Update: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.Update, types_js_1.ApiMethod.Put),
Delete: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.Delete, types_js_1.ApiMethod.Delete),
Clone: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.Clone, types_js_1.ApiMethod.Post),
Export: (0, fetch_js_1.fetchBlob)(jam_core_1.CoreApi.Atlas.Export, jam_core_1.BlobContentType.Json),
Import: (0, fetch_js_1.fetchUpload)(jam_core_1.CoreApi.Atlas.Import),
Centroid: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.Centroid),
Image: (0, fetch_js_1.fetchAtlasImage)(jam_core_1.CoreApi.Atlas.Image),
ImageUrl: (0, url_js_1.getAtlasImageUrl)(jam_core_1.CoreApi.Atlas.Image),
Label: (0, fetch_js_1.fetchAtlasImage)(jam_core_1.CoreApi.Atlas.Label),
LabelUrl: (0, url_js_1.getAtlasImageUrl)(jam_core_1.CoreApi.Atlas.Label),
Pin: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.Pin),
ViewBox: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.ViewBox),
Shape: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Atlas.Shape),
Svg: (0, fetch_js_1.fetchAtlasSvg)(jam_core_1.CoreApi.Atlas.Svg),
};