add strapi types

This commit is contained in:
Schneider Roland
2025-01-11 20:58:03 +01:00
parent 35dcd6ab22
commit ea3a2e3366
22 changed files with 540 additions and 3 deletions

View File

@@ -0,0 +1,34 @@
// Interface automatically generated by schemas-to-ts
import { Media } from '../components/shared/Media';
import { Media_Plain } from '../components/shared/Media';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface About {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: any;
image?: { data: Media };
};
}
export interface About_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: any;
image?: Media_Plain;
}
export interface About_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: any;
image?: number;
}
export interface About_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: any;
image?: AdminPanelRelationPropertyModification<Media_Plain>;
}

View File

@@ -0,0 +1,54 @@
// Interface automatically generated by schemas-to-ts
import { Media } from '../components/shared/Media';
import { Author } from './author';
import { Category } from './category';
import { Media_Plain } from '../components/shared/Media';
import { Author_Plain } from './author';
import { Category_Plain } from './category';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface Article {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: string;
slug?: string;
cover?: { data: Media };
author?: { data: Author };
category?: { data: Category };
blocks?: any;
};
}
export interface Article_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: string;
slug?: string;
cover?: Media_Plain;
author?: Author_Plain;
category?: Category_Plain;
blocks?: any;
}
export interface Article_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: string;
slug?: string;
cover?: number;
author?: number;
category?: number;
blocks?: any;
}
export interface Article_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: string;
slug?: string;
cover?: AdminPanelRelationPropertyModification<Media_Plain>;
author?: AdminPanelRelationPropertyModification<Author_Plain>;
category?: AdminPanelRelationPropertyModification<Category_Plain>;
blocks?: any;
}

View File

@@ -0,0 +1,40 @@
// Interface automatically generated by schemas-to-ts
import { Media } from '../components/shared/Media';
import { Article } from './article';
import { Media_Plain } from '../components/shared/Media';
import { Article_Plain } from './article';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface Author {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
avatar?: { data: Media };
email?: string;
articles: { data: Article[] };
};
}
export interface Author_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
avatar?: Media_Plain;
email?: string;
articles: Article_Plain[];
}
export interface Author_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
avatar?: number;
email?: string;
articles: number[];
}
export interface Author_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
avatar?: AdminPanelRelationPropertyModification<Media_Plain>;
email?: string;
articles: AdminPanelRelationPropertyModification<Article_Plain>;
}

View File

@@ -0,0 +1,41 @@
// Interface automatically generated by schemas-to-ts
import { Media } from '../components/shared/Media';
import { Quote } from '../components/shared/Quote';
import { Media_Plain } from '../components/shared/Media';
import { Quote_Plain } from '../components/shared/Quote';
import { Quote_NoRelations } from '../components/shared/Quote';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface Car {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
description?: string;
image?: { data: Media };
myquote: Quote[];
};
}
export interface Car_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
description?: string;
image?: Media_Plain;
myquote: Quote_Plain[];
}
export interface Car_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
description?: string;
image?: number;
myquote: Quote_NoRelations[];
}
export interface Car_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
description?: string;
image?: AdminPanelRelationPropertyModification<Media_Plain>;
myquote: Quote_Plain[];
}

View File

@@ -0,0 +1,38 @@
// Interface automatically generated by schemas-to-ts
import { Article } from './article';
import { Article_Plain } from './article';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface Category {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
slug?: string;
articles: { data: Article[] };
description?: string;
};
}
export interface Category_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
slug?: string;
articles: Article_Plain[];
description?: string;
}
export interface Category_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
slug?: string;
articles: number[];
description?: string;
}
export interface Category_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
slug?: string;
articles: AdminPanelRelationPropertyModification<Article_Plain>;
description?: string;
}

View File

@@ -0,0 +1,41 @@
// Interface automatically generated by schemas-to-ts
import { Media } from '../components/shared/Media';
import { Seo } from '../components/shared/Seo';
import { Media_Plain } from '../components/shared/Media';
import { Seo_Plain } from '../components/shared/Seo';
import { Seo_NoRelations } from '../components/shared/Seo';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface Global {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; siteName: string;
favicon?: { data: Media };
siteDescription: string;
defaultSeo?: Seo;
};
}
export interface Global_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; siteName: string;
favicon?: Media_Plain;
siteDescription: string;
defaultSeo?: Seo_Plain;
}
export interface Global_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; siteName: string;
favicon?: number;
siteDescription: string;
defaultSeo?: Seo_NoRelations;
}
export interface Global_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; siteName: string;
favicon?: AdminPanelRelationPropertyModification<Media_Plain>;
siteDescription: string;
defaultSeo?: Seo_Plain;
}

View File

@@ -0,0 +1,39 @@
// Interface automatically generated by schemas-to-ts
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export enum Template {
Homepage = 'homepage',}
export interface Page {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
title?: string;
template?: Template;
parent?: { data: Page };
};
}
export interface Page_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
title?: string;
template?: Template;
parent?: Page_Plain;
}
export interface Page_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
title?: string;
template?: Template;
parent?: number;
}
export interface Page_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
title?: string;
template?: Template;
parent?: AdminPanelRelationPropertyModification<Page_Plain>;
}

View File

@@ -0,0 +1,30 @@
// Interface automatically generated by schemas-to-ts
export interface Person {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
firstname?: string;
lastname?: string;
};
}
export interface Person_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
firstname?: string;
lastname?: string;
}
export interface Person_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
firstname?: string;
lastname?: string;
}
export interface Person_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
firstname?: string;
lastname?: string;
}