UNPKG

trello-for-wolves

Version:
25 lines (24 loc) 998 B
import { AllOrFieldOrListOf, AttachmentField, AttachmentFilter, AttachmentRecord, FileUpload, TypedFetch } from "../typeDefs"; import { BaseResource } from "./BaseResource"; /** * Used to manage attachments on cards. Cards can have up to 100 attachments. * Attachments can be either just URLs, images with previews, or arbitrary files. * @see https://developers.trello.com/reference#attachments * @class */ export declare class Attachment extends BaseResource { getAttachment(params?: { fields?: AllOrFieldOrListOf<AttachmentField>; }): TypedFetch<AttachmentRecord>; getAttachments(params?: { fields?: AllOrFieldOrListOf<AttachmentField>; filter?: AllOrFieldOrListOf<AttachmentFilter>; }): TypedFetch<AttachmentRecord[]>; uploadAttachment(params: { name?: string; file?: FileUpload; mimeType?: string; url?: string; }): TypedFetch<AttachmentRecord>; deleteAttachment(): TypedFetch<Record<string, unknown>>; }