@hokuto/jam-node
Version:
JAM Node TS, guardians and utils
17 lines (16 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TemplateApi = void 0;
const jam_core_1 = require("@hokuto/jam-core");
const fetch_js_1 = require("./fetch.js");
const types_js_1 = require("../types.js");
exports.TemplateApi = {
Search: new fetch_js_1.SearchBaseApi(jam_core_1.CoreApi.Template.Search),
Create: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Template.Create, types_js_1.ApiMethod.Post),
Read: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Template.Read),
Update: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Template.Update, types_js_1.ApiMethod.Put),
Delete: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Template.Delete, types_js_1.ApiMethod.Delete),
Clone: (0, fetch_js_1.fetchJSON)(jam_core_1.CoreApi.Template.Clone, types_js_1.ApiMethod.Post),
Export: (0, fetch_js_1.fetchBlob)(jam_core_1.CoreApi.Template.Export, jam_core_1.BlobContentType.Json),
Import: (0, fetch_js_1.fetchUpload)(jam_core_1.CoreApi.Template.Import),
};