UNPKG

ts-mailcow-api

Version:
26 lines 831 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.syncjobEndpoints = syncjobEndpoints; const SYNCJOB_ENDPOINTS = { GET_ALL: 'get/syncjobs/all/no_log', CREATE: 'add/syncjob', EDIT: 'edit/syncjob', DELETE: 'delete/syncjob', }; function syncjobEndpoints(bind) { return { getAll() { return bind.requestFactory.get(SYNCJOB_ENDPOINTS.GET_ALL); }, create(payload) { return bind.requestFactory.post(SYNCJOB_ENDPOINTS.CREATE, payload); }, edit(payload) { return bind.requestFactory.post(SYNCJOB_ENDPOINTS.EDIT, payload); }, delete(payload) { return bind.requestFactory.post(SYNCJOB_ENDPOINTS.DELETE, payload.items); }, }; } //# sourceMappingURL=syncjob-endpoints.js.map