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