import { ColumnConfigInput, EventPayload, EventMetadata } from './proto/service_pb'; export interface TreelabConfig { token?: string; endPoint?: string; } export interface AddColumnsDTO { workspaceId: string; coreId: string; tableId: string; columnConfigs: ColumnConfigInput.AsObject[]; } export declare enum ColumnType { TEXT = "TEXT", RECORD_REFERENCE = "RECORD_REFERENCE", NUMBER = "NUMBER", MULTI_SELECT = "MULTI_SELECT", SELECT = "SELECT", FORMULA = "FORMULA", MULTI_ATTACHMENT = "MULTI_ATTACHMENT", LOOKUP = "LOOKUP", DATETIME = "DATETIME" } export interface ColumnConfig { type: ColumnType; name: string; order?: number; visibility?: boolean; foreignTableId?: string; defaultNumber?: number; precision?: number; choices?: Choice[]; dateFormat?: string; includeTime?: boolean; timeFormat?: string; useGMT?: boolean; } export interface Choice { id: string; name: string; color: SelectColor; } export declare enum ViewType { GRID = "GRID", TIMELINE = "TIMELINE" } export interface Attachment { name: string; url: string; } export interface ForeignRowVisibleNameValue { value: string; } export interface ForeignRowValue { id: string; visibleNameList: ForeignRowVisibleNameValue[]; } export interface Value { type: ColumnType; text?: string; foreignRowList?: ForeignRowValue[]; number?: number; selectedItems?: Choice[]; selectedItem?: Choice; attachments?: Attachment[]; dateTime?: string; } export interface ValueInput { type: ColumnType; text?: string; foreignRowId?: string; number?: number; selectedItems?: Choice[]; selectedItem?: Choice; attachments?: Attachment[]; dateTime?: string; } export interface Resource { workspaceId: string; coreId?: string; tableId?: string; viewId?: string; columnId?: string; dashboardId?: string; branchId?: string; rowId?: string; } export interface EventPayloadNew extends EventPayload.AsObject { metadata: EventMetadata.AsObject; } export declare type EventCallback = (e: EventPayloadNew) => any; export declare type FilterFn = (value: any, index: number, array: any[]) => any; export declare type SortFn = (a: any, b: any) => number; export declare enum CoreColor { lightRed = "lightRed", blue = "blue", red = "red", gray = "gray", magenta = "magenta", yellow = "yellow", orange = "orange", green = "green", black = "black", pink = "pink", purple = "purple", lightBlue = "lightBlue", lightGray = "lightGray", lightMagenta = "lightMagenta", lightYellow = "lightYellow", lightOrange = "lightOrange", lightGreen = "lightGreen", lightBlack = "lightBlack", lightPink = "lightPink", lightPurple = "lightPurple" } export declare enum Icon { briefcase = "briefcase", untitle = "untitle", asterisk = "asterisk", barChart = "barChart", check = "check", circleBlank = "circleBlank", cloud = "cloud", barcode = "barcode", beaker = "beaker", bell = "bell", bolt = "bolt", book = "book", bug = "bug", building = "building", bullhorn = "bullhorn", calculator = "calculator", calendar = "calendar", camera = "camera", sun = "sun", flow = "flow", coffee = "coffee", handUp = "handUp", anchor = "anchor", cogs = "cogs", comment = "comment", compass = "compass", creditCard = "creditCard", dashboard = "dashboard", edit = "edit", food = "food" } export declare enum SelectColor { blue = "blue", cyan = "cyan", teal = "teal", green = "green", yellow = "yellow", orange = "orange", red = "red", pink = "pink", purple = "purple", gray = "gray" }