UNPKG

trello-for-wolves

Version:
38 lines (37 loc) 1.74 kB
import { AllOrFieldOrListOf, AnyBoardBackgroundRecord, BoardBackgroundBrightness, BoardBackgroundField, BoardBackgroundFilter, CustomBoardBackgroundRecord, FileUpload, TypedFetch } from "../typeDefs"; import { BaseResource } from "./BaseResource"; /** * This class handles both the "boardBackground" and "customBoardBackground" * resources. For "customBoardBackgrounds", the resource path is overridden * when an instance is created in the Member class. * @class */ export declare class BoardBackground extends BaseResource { getBoardBackground(params?: { fields?: AllOrFieldOrListOf<BoardBackgroundField>; }): TypedFetch<AnyBoardBackgroundRecord>; getBoardBackgrounds(params?: { filter?: BoardBackgroundFilter; }): TypedFetch<AnyBoardBackgroundRecord[]>; uploadBoardBackground(file: FileUpload): TypedFetch<CustomBoardBackgroundRecord>; updateBoardBackground(params: { brightness?: BoardBackgroundBrightness; tile?: boolean; }): TypedFetch<CustomBoardBackgroundRecord>; deleteBoardBackground(): TypedFetch<unknown>; } export declare class CustomBoardBackground extends BaseResource { getCustomBoardBackground(params?: { fields?: AllOrFieldOrListOf<BoardBackgroundField>; }): TypedFetch<CustomBoardBackgroundRecord>; getCustomBoardBackgrounds(): TypedFetch<CustomBoardBackgroundRecord[]>; uploadCustomBoardBackground(params: { file: FileUpload; name: string; }): TypedFetch<CustomBoardBackgroundRecord>; updateCustomBoardBackground(params: { brightness?: BoardBackgroundBrightness; tile?: boolean; }): TypedFetch<CustomBoardBackgroundRecord>; deleteCustomBoardBackground(): TypedFetch<unknown>; }