58 lines
1.7 KiB
TypeScript
58 lines
1.7 KiB
TypeScript
// Interface automatically generated by schemas-to-ts
|
|
|
|
import { Media } from '../components/shared/Media';
|
|
import { Button } from '../components/yoga-site/Button';
|
|
import { Media_Plain } from '../components/shared/Media';
|
|
import { Button_Plain } from '../components/yoga-site/Button';
|
|
import { Button_NoRelations } from '../components/yoga-site/Button';
|
|
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
|
|
|
export enum ImagePosition {
|
|
Left = 'Left',
|
|
Right = 'Right',}
|
|
|
|
export interface YogaTextWithImageComponent {
|
|
id: number;
|
|
attributes: {
|
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; name: string;
|
|
imagePosition?: ImagePosition;
|
|
title?: string;
|
|
header?: string;
|
|
description?: string;
|
|
image: { data: Media };
|
|
button: Button;
|
|
};
|
|
}
|
|
export interface YogaTextWithImageComponent_Plain {
|
|
id: number;
|
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; name: string;
|
|
imagePosition?: ImagePosition;
|
|
title?: string;
|
|
header?: string;
|
|
description?: string;
|
|
image: Media_Plain;
|
|
button: Button_Plain;
|
|
}
|
|
|
|
export interface YogaTextWithImageComponent_NoRelations {
|
|
id: number;
|
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; name: string;
|
|
imagePosition?: ImagePosition;
|
|
title?: string;
|
|
header?: string;
|
|
description?: string;
|
|
image: number;
|
|
button: Button_NoRelations;
|
|
}
|
|
|
|
export interface YogaTextWithImageComponent_AdminPanelLifeCycle {
|
|
id: number;
|
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; name: string;
|
|
imagePosition?: ImagePosition;
|
|
title?: string;
|
|
header?: string;
|
|
description?: string;
|
|
image: AdminPanelRelationPropertyModification<Media_Plain>;
|
|
button: Button_Plain;
|
|
}
|