/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { TrelloID } from "../definitions/TrelloID"; import { PosStringOrNumber } from "../definitions/PosStringOrNumber"; import { CustomFieldAsResponse } from "../definitions/CustomFieldAsResponse"; import { ErrorStrategyOption } from "../errorStrategy"; import { HeadersOption } from "@managed-api/commons-core"; export interface CreateCustomFieldRequest extends HeadersOption, ErrorStrategyOption { body: { /** * The ID of the model for which the Custom Field is being defined. This should always be the ID of a board. */ idModel: TrelloID; /** * The type of model that the Custom Field is being defined on. This should always be `board`. */ modelType: "board"; /** * The name of the Custom Field */ name: string; /** * The type of Custom Field to create. */ type: "checkbox" | "list" | "number" | "text" | "date"; /** * If the type is `checkbox` */ options?: string; pos: PosStringOrNumber; /** * Whether this Custom Field should be shown on the front of Cards */ display_cardFront?: boolean; }; } declare type CreateCustomFieldResponseOKType = CustomFieldAsResponse; export interface CreateCustomFieldResponseOK extends CreateCustomFieldResponseOKType { } export declare type CreateCustomFieldResponseError = undefined; export interface GetCustomFieldRequest extends HeadersOption, ErrorStrategyOption { /** * ID of the Custom Field. */ id: TrelloID; } declare type GetCustomFieldResponseOKType = CustomFieldAsResponse; export interface GetCustomFieldResponseOK extends GetCustomFieldResponseOKType { } export declare type GetCustomFieldResponseError = undefined; export {}; //# sourceMappingURL=customField.d.ts.map