32 lines
564 B
TypeScript
32 lines
564 B
TypeScript
import { Document } from "../document"
|
|
|
|
export enum FieldType {
|
|
STRING = "string",
|
|
LONGFORM = "longform",
|
|
OPTIONS = "options",
|
|
NUMBER = "number",
|
|
BOOLEAN = "boolean",
|
|
ARRAY = "array",
|
|
DATETIME = "datetime",
|
|
ATTACHMENT = "attachment",
|
|
LINK = "link",
|
|
FORMULA = "formula",
|
|
AUTO = "auto",
|
|
JSON = "json",
|
|
INTERNAL = "internal",
|
|
}
|
|
|
|
export interface RowAttachment {
|
|
size: number
|
|
name: string
|
|
url: string
|
|
extension: string
|
|
key: string
|
|
}
|
|
|
|
export interface Row extends Document {
|
|
type?: string
|
|
tableId?: string
|
|
[key: string]: any
|
|
}
|