UNPKG

ts-mailcow-api

Version:
36 lines (35 loc) 1.48 kB
import MailcowClient from '..'; import { BccMapDeletionRequest, GetBccMapResponse, GetRecipientMapResponse, RecipientMapDeletionRequest, AddBccMapRequest as AddBccMapRequest, AddRecipientMapRequest as AddRecipientMapRequest, MailcowResponse } from '../types'; export interface AdressRewritingEndpoints { /** * Endpoint for creating a bcc map. * @param payload - The creation payload. */ addBccMap(payload: AddBccMapRequest): Promise<MailcowResponse>; /** * Endpoint for creating a recipient map. * @param payload - The creation payload. */ addRecipientMap(payload: AddRecipientMapRequest): Promise<MailcowResponse>; /** * Endpoint for deleting a bcc map. * @param payload - The deletion payload. */ deleteBccMap(payload: BccMapDeletionRequest): Promise<MailcowResponse>; /** * Endpoint for deleting a recipient map. * @param payload - The deletion payload. */ deleteRecipientMap(payload: RecipientMapDeletionRequest): Promise<MailcowResponse>; /** * Endpoint for getting a bcc map. * @param id - Id of the bcc map to get */ getBccMap(id: number | 'all'): Promise<GetBccMapResponse>; /** * Endpoint for getting a recipient map. * @param id - Id of the recipient map to get */ getRecipientMap(id: number | 'all'): Promise<GetRecipientMapResponse>; } export declare function addressRewritingEndpoints(bind: MailcowClient): AdressRewritingEndpoints;