UNPKG

trello-for-wolves

Version:
31 lines (30 loc) 1.38 kB
import { ActionField, AllOrFieldOrListOf, CommentRecord, FilterDate, Format, NestedMemberCreatorParams, NestedMemberParams, NestedReactionsParams, TypedFetch } from "../typeDefs"; import { BaseResource } from "./BaseResource"; /** * Comments are Action records with a "type" of "commentCard". They are the * only type of action that can be added, updated, and deleted. They're also * only available on a `Card` resource. * @see https://developers.trello.com/reference#actionsid * @class */ export declare class Comment extends BaseResource { getComment(params?: { display?: boolean; entities?: boolean; fields?: AllOrFieldOrListOf<ActionField>; } & NestedMemberParams & NestedMemberCreatorParams & NestedReactionsParams): TypedFetch<CommentRecord[]>; getComments(params?: { display?: boolean; entities?: boolean; fields?: AllOrFieldOrListOf<ActionField>; format?: Format; before?: FilterDate; since?: FilterDate; idModels?: string; limit?: number; } & NestedMemberParams & NestedMemberCreatorParams & NestedReactionsParams): TypedFetch<CommentRecord[]>; addComment(text: string): TypedFetch<CommentRecord>; updateComment(text: string): TypedFetch<CommentRecord>; updateText(value: string): TypedFetch<CommentRecord>; deleteComment(): TypedFetch<unknown>; }