Newer
Older
import type { IEntity } from '@/app/interfaces/environment';
export interface ITable extends IEntity {
entity_type: 'table';
entity_uuid: string;
table_columns: ITableColumn[];
table_data: {

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

Дмитрий Малюгин
committed
export interface IText extends IEntity {
entity_type: 'text';
entity_uuid: string;
font_size?: '16' | '20' | '24' | '40' | '64';
paragraph_size?: 'full' | 'half';
entity_title_position: 'left' | 'center' | 'right';
entity_position: 'left' | 'center' | 'right';

Дмитрий Малюгин
committed
}
export interface IImage extends IEntity {
entity_type: 'image';
entity_uuid: string;
title?: string | null;
text?: string | null;
font_size?: '16' | '20' | '24' | '40' | '64' | null;
paragraph_size?: 'full' | 'half' | null;
text_position?: 'left' | 'right' | null;
imageUrl: string;
image_width: number;
image_height: number;
entity_title_position: 'left' | 'center' | 'right';
entity_position: 'left' | 'center' | 'right';