UNPKG

ts-mailcow-api

Version:
23 lines 705 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.quarantineEndpoints = quarantineEndpoints; const QUARANTINE_ENDPOINTS = { DELETE: 'delete/qitem', GET: 'get/quarantine/all', }; /** * Binder function between the MailcowClient class and the QuarantineEndpoints. * @param bind - The MailcowClient instance to bind. * @internal */ function quarantineEndpoints(bind) { return { delete(payload) { return bind.requestFactory.post(QUARANTINE_ENDPOINTS.DELETE, payload.items); }, get() { return bind.requestFactory.get(QUARANTINE_ENDPOINTS.GET); }, }; } //# sourceMappingURL=quarantine-endpoints.js.map