trello-for-wolves
Version:
Node.js wrapper for Trello API...for wolves.
31 lines (30 loc) • 1.27 kB
TypeScript
import { AllOrFieldOrListOf, AllOrNone, CheckItemField, CheckItemRecord, CheckItemState, CheckItemStateField, PositionOrFloat, TypedFetch } from "../typeDefs";
import { BaseResource } from "./BaseResource";
export declare class CheckItem extends BaseResource {
getCheckItem(params?: {
fields?: AllOrFieldOrListOf<CheckItemField>;
}): TypedFetch<CheckItemRecord>;
getCheckItems(params?: {
filter?: AllOrNone;
fields?: AllOrFieldOrListOf<CheckItemField>;
}): TypedFetch<CheckItemRecord[]>;
getCheckItemStates(params?: {
fields?: AllOrFieldOrListOf<CheckItemStateField>;
}): TypedFetch<unknown>;
addCheckItem(params: {
name: string;
checked?: boolean;
pos?: PositionOrFloat;
}): TypedFetch<CheckItemRecord>;
convertToCard(): TypedFetch<unknown>;
updateCheckItem(params: {
name?: string;
state?: CheckItemState;
idChecklist?: string;
pos?: PositionOrFloat;
}): TypedFetch<CheckItemRecord>;
updateName(value: string): TypedFetch<CheckItemRecord>;
updatePosition(value: PositionOrFloat): TypedFetch<CheckItemRecord>;
updateState(value: CheckItemState): TypedFetch<CheckItemRecord>;
deleteCheckItem(): TypedFetch<unknown>;
}