interface PJ {
    content: string;
    name: string;
    type:
        | "image/gif"
        | "image/jpeg"
        | "image/pjpeg"
        | "image/jpg"
        | "image/bmp"
        | "image/png"
        | "image/x-png"
        | "image/tiff"
        | "image/tif"
        | "application/pdf"
        | "application/vnd.ms-excel"
        | "application/msword"
        | "application/vnd.ms-powerpoint"
        | "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
        | "application/vnd.openxmlformats-officedocument.presentationml.presentation"
        | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
        | "application/vnd.oasis.opendocument.text"
        | "text/plain";
}

Properties

Properties

content: string

The content (Buffer) of the attachment in base64 format.

name: string

Name of the file (the attachment).

type:
    | "image/gif"
    | "image/jpeg"
    | "image/pjpeg"
    | "image/jpg"
    | "image/bmp"
    | "image/png"
    | "image/x-png"
    | "image/tiff"
    | "image/tif"
    | "application/pdf"
    | "application/vnd.ms-excel"
    | "application/msword"
    | "application/vnd.ms-powerpoint"
    | "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
    | "application/vnd.openxmlformats-officedocument.presentationml.presentation"
    | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
    | "application/vnd.oasis.opendocument.text"
    | "text/plain"

Mime-type of the attachment. For example: "application/pdf".