ts-mailcow-api
Version:
TypeScript wrapper for the mailcow API.
23 lines • 705 B
JavaScript
;
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