UNPKG

770 BTypeScriptView Raw
1import { ViewType, ColumnConfig, Color, Icon, ValueInput } from '../types';
2export interface CreateWorkspaceInput {
3 name: string;
4}
5export interface CreateCoreInput {
6 name: string;
7 color: Color;
8 icon: Icon;
9}
10export interface UpdateCoreInput {
11 name?: string;
12 color?: Color;
13 icon?: Icon;
14}
15export interface CreateTableInput {
16 name: string;
17 view?: ViewInput;
18 columns?: ColumnConfig[];
19 data?: any[][];
20}
21export interface ViewInput {
22 name: string;
23 type: ViewType;
24}
25export interface UpdateCellInput {
26 rowId: string;
27 columnId: string;
28 action: UpdateAction;
29 value: ValueInput;
30}
31export declare enum UpdateAction {
32 SET_VALUE = "SET_VALUE",
33 ADD_VALUE = "ADD_VALUE",
34 REMOVE_VALUE = "REMOVE_VALUE"
35}