plane/web/types/custom-attributes.d.ts

36 lines
744 B
TypeScript

export type TCustomAttributeTypes =
| "checkbox"
| "datetime"
| "email"
| "entity"
| "files"
| "multi_select"
| "number"
| "option"
| "relation"
| "select"
| "text"
| "url";
export type TCustomAttributeUnits = "cycle" | "issue" | "module" | "user";
export interface ICustomAttribute {
children: ICustomAttribute[];
color: string;
default_value: string | null;
description: string;
display_name: string;
extra_settings: { [key: string]: any };
icon: string | null;
id: string;
is_default: boolean;
is_multi: boolean;
is_required: boolean;
parent: string;
project: string | null;
sort_order: number;
type: TCustomAttributeTypes;
unit: TCustomAttributeUnits | null;
workspace: string;
}