Files
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

112 lines
2.2 KiB
TypeScript

export interface EmailElements {
structures: Structure[];
general: General;
}
export interface General {
name?: string;
previewText?: string;
width?: string;
color?: string;
background?: string;
contentBackground?: string;
logo: Logo;
footer: Footer;
isLoading?: boolean;
}
export interface Font {
font?: {
fontFamily: string;
};
}
export interface FontSize {
size?: {
fontSize: string;
};
}
export interface Logo {
src: string;
link?: string;
width?: string;
height?: string;
align?: string;
sizeType?: string;
originalWidth?: string;
}
export interface Footer {
brands: Brand[];
content: string;
unsubscribe?: boolean;
unsubscribeLink?: boolean;
unsubscribeColor?: string;
font?: string;
fontSize?: string;
}
export interface Brand {
type?: string;
class?: string;
color?: string;
link?: string;
content?: string;
src?: string;
iconName: any;
prefix: any;
svgTxt?: string;
changed?: boolean;
}
export declare class Structure {
id?: number;
type: string;
blocks: Array<Array<any>>;
blocks2?: Block[];
backgroundColor?: string;
color?: string;
isSelected?: boolean;
constructor(structure: Structure);
}
export interface BlockBean {
id?: number;
type: BlockType;
content?: string;
backgroundColor?: string;
color?: string;
src?: string;
link?: string;
width?: string;
height?: string;
isSelected?: boolean;
font?: string;
fontSize?: string;
align?: string;
format?: string;
}
export declare class Block implements BlockBean {
id?: number;
type: BlockType;
content?: string;
backgroundColor?: string;
color?: string;
src?: string;
link?: string;
width?: string;
height?: string;
isSelected?: boolean;
font?: string;
fontSize?: string;
align?: string;
format?: string;
constructor(block: Block);
}
export declare enum StructureType {
OneColumn = "1",
TwoColumn = "2"
}
export declare enum BlockType {
Text = "Text",
Body = "Body",
Image = "Image",
Video = "Video",
Button = "Button",
Divider = "Divider",
Other = "Other"
}