UNPKG

trello-for-wolves

Version:
31 lines (30 loc) 1.11 kB
import { AllOrFieldOrListOf, ColorName, LabelField, LabelRecord, NestedActionsParams, TypedFetch } from "../typeDefs"; import { BaseResource } from "./BaseResource"; import { Board } from "./Board"; export declare class Label extends BaseResource { getLabel(params?: { fields?: AllOrFieldOrListOf<LabelField>; limit?: number; } & NestedActionsParams): TypedFetch<LabelRecord>; getLabels(params?: { fields?: AllOrFieldOrListOf<LabelField>; limit?: number; } & NestedActionsParams): TypedFetch<LabelRecord[]>; addLabel(params: { name: string; color: ColorName | null; idBoard?: string; }): TypedFetch<LabelRecord>; associateLabel(): TypedFetch<unknown>; updateLabel(params: { name?: string; color?: ColorName | null; }): TypedFetch<LabelRecord>; updateColor(value: ColorName | null): TypedFetch<LabelRecord>; updateName(value: string): TypedFetch<LabelRecord>; deleteLabel(): TypedFetch<{ limits: unknown; }>; dissociateLabel(): TypedFetch<unknown>; board(): Board; }