Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
export interface IPageEntity {
entity_uuid: string;
entity_type: 'divider' | 'paragraph' | 'image' | 'table';
}
export interface IEntity {
page_uuid?: string;
entity_uuid: string;
entity_type: 'divider' | 'paragraph' | 'image' | 'table';
entity_order?: number;
divider_height?: number;
divider_type?: 'solid' | 'dashed' | 'dotted';
title?: string | null;
text?: string | null;
font_size?: string | null;
paragraph_size?: string | null;
text_position?: string | null;
image_buffer?: string;
image_path?: string;
imageUrl?: string;
image_width?: number;
image_height?: number;
entity_position?: string;
entity_title_position?: string;
image_scale?: string;
table_columns?: ITableColumn[];
table_data?: {
[key: string]: never;
}[];
}
export interface ITableColumn {
column_uuid: string;
name: string;
type: ITableColumnTypes;
data: never;
}
type ITableColumnTypes =
| 'text'
| 'number'
| 'select'
| 'multiselect'
| 'checkbox'
| 'status'
| 'rating'
| 'knob';