UNPKG

ts-mailcow-api

Version:
31 lines 962 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dkimEndpoints = dkimEndpoints; const DKIM_ENDPOINTS = { CREATE: 'add/dkim', DUPLICATE: 'add/dkim_duplicate', DELETE: 'delete/dkim', GET: 'get/dkim/', }; /** * Binder function between the MailcowClient class and the DkimEndpoints. * @param bind - The MailcowClient instance to bind. * @internal */ function dkimEndpoints(bind) { return { create(payload) { return bind.requestFactory.post(DKIM_ENDPOINTS.CREATE, payload); }, duplicate(payload) { return bind.requestFactory.post(DKIM_ENDPOINTS.DUPLICATE, payload); }, delete(payload) { return bind.requestFactory.post(DKIM_ENDPOINTS.DELETE, payload.items); }, get(domain) { return bind.requestFactory.get(`${DKIM_ENDPOINTS.GET}${domain}`); }, }; } //# sourceMappingURL=dkim-endpoints.js.map