Newer
Older
entity_type: 'table';
entity_uuid: string;

Дмитрий Малюгин
committed
title?: string;
text?: string;
table_columns: ITableColumn[];
table_data: {

Дмитрий Малюгин
committed
}[];
}
type ITableColumnTypes =
| 'text'
| 'number'
| 'select'
| 'multiselect'
| 'checkbox'
| 'status'
| 'rating'
| 'knob';

Дмитрий Малюгин
committed
export interface IText {
entity_type: 'text';
entity_uuid: string;

Дмитрий Малюгин
committed
title?: string;

Дмитрий Малюгин
committed
}
export interface IImage {
entity_type: 'image';
entity_uuid: string;
title?: string;
text?: string;
image_data: string;
image_width: number;
image_height: number;
image_position: 'left' | 'center' | 'right';