convert about types from component to collection-type

This commit is contained in:
Schneider Roland
2025-01-19 21:57:33 +01:00
parent 741dd19588
commit c706a4c7d2
80 changed files with 2428 additions and 630 deletions

View File

@@ -1,25 +1,32 @@
// Interface automatically generated by schemas-to-ts
import { HeaderB } from '../components/yoga-site/HeaderB';
import { OurServicesComponent } from '../components/yoga-site/OurServicesComponent';
import { AboutUs } from '../components/yoga-site/AboutUs';
import { OurSpecialitiesComponent } from '../components/yoga-site/OurSpecialitiesComponent';
import { YogaContactUs } from './yoga-contact-us';
import { YogaPriceComponent } from './yoga-price-component';
import { YogaSpecialitiesComponent } from './yoga-specialities-component';
import { YogaAboutUsComponent } from './yoga-about-us-component';
import { YogaCustomerFeedbackComponent } from './yoga-customer-feedback-component';
import { YogaOurServicesComponent } from './yoga-our-services-component';
import { HeaderB_Plain } from '../components/yoga-site/HeaderB';
import { OurServicesComponent_Plain } from '../components/yoga-site/OurServicesComponent';
import { AboutUs_Plain } from '../components/yoga-site/AboutUs';
import { OurSpecialitiesComponent_Plain } from '../components/yoga-site/OurSpecialitiesComponent';
import { YogaContactUs_Plain } from './yoga-contact-us';
import { YogaPriceComponent_Plain } from './yoga-price-component';
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component';
import { YogaAboutUsComponent_Plain } from './yoga-about-us-component';
import { YogaCustomerFeedbackComponent_Plain } from './yoga-customer-feedback-component';
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
import { HeaderB_NoRelations } from '../components/yoga-site/HeaderB';
import { OurServicesComponent_NoRelations } from '../components/yoga-site/OurServicesComponent';
import { AboutUs_NoRelations } from '../components/yoga-site/AboutUs';
import { OurSpecialitiesComponent_NoRelations } from '../components/yoga-site/OurSpecialitiesComponent';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface About {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: HeaderB;
ourServices: OurServicesComponent;
aboutUs: AboutUs;
ourSpecialities?: OurSpecialitiesComponent;
contactUs?: { data: YogaContactUs };
prices?: { data: YogaPriceComponent };
ourSpecialities?: { data: YogaSpecialitiesComponent };
aboutUs?: { data: YogaAboutUsComponent };
feedbacks?: { data: YogaCustomerFeedbackComponent };
ourServices?: { data: YogaOurServicesComponent };
locale: string;
localizations?: { data: About[] };
};
@@ -27,9 +34,12 @@ export interface About {
export interface About_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: HeaderB_Plain;
ourServices: OurServicesComponent_Plain;
aboutUs: AboutUs_Plain;
ourSpecialities?: OurSpecialitiesComponent_Plain;
contactUs?: YogaContactUs_Plain;
prices?: YogaPriceComponent_Plain;
ourSpecialities?: YogaSpecialitiesComponent_Plain;
aboutUs?: YogaAboutUsComponent_Plain;
feedbacks?: YogaCustomerFeedbackComponent_Plain;
ourServices?: YogaOurServicesComponent_Plain;
locale: string;
localizations?: About_Plain[];
}
@@ -37,9 +47,12 @@ export interface About_Plain {
export interface About_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: HeaderB_NoRelations;
ourServices: OurServicesComponent_NoRelations;
aboutUs: AboutUs_NoRelations;
ourSpecialities?: OurSpecialitiesComponent_NoRelations;
contactUs?: number;
prices?: number;
ourSpecialities?: number;
aboutUs?: number;
feedbacks?: number;
ourServices?: number;
locale: string;
localizations?: About[];
}
@@ -47,9 +60,12 @@ export interface About_NoRelations {
export interface About_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: HeaderB_Plain;
ourServices: OurServicesComponent_Plain;
aboutUs: AboutUs_Plain;
ourSpecialities?: OurSpecialitiesComponent_Plain;
contactUs?: AdminPanelRelationPropertyModification<YogaContactUs_Plain>;
prices?: AdminPanelRelationPropertyModification<YogaPriceComponent_Plain>;
ourSpecialities?: AdminPanelRelationPropertyModification<YogaSpecialitiesComponent_Plain>;
aboutUs?: AdminPanelRelationPropertyModification<YogaAboutUsComponent_Plain>;
feedbacks?: AdminPanelRelationPropertyModification<YogaCustomerFeedbackComponent_Plain>;
ourServices?: AdminPanelRelationPropertyModification<YogaOurServicesComponent_Plain>;
locale: string;
localizations?: About[];
}

View File

@@ -1,41 +0,0 @@
// 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,62 @@
// 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 YogaAboutUsComponent {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
content?: string;
buttonText?: string;
image?: { data: Media };
name?: string;
buttonLink?: string;
locale: string;
localizations?: { data: YogaAboutUsComponent[] };
};
}
export interface YogaAboutUsComponent_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
content?: string;
buttonText?: string;
image?: Media_Plain;
name?: string;
buttonLink?: string;
locale: string;
localizations?: YogaAboutUsComponent_Plain[];
}
export interface YogaAboutUsComponent_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
content?: string;
buttonText?: string;
image?: number;
name?: string;
buttonLink?: string;
locale: string;
localizations?: YogaAboutUsComponent[];
}
export interface YogaAboutUsComponent_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
content?: string;
buttonText?: string;
image?: AdminPanelRelationPropertyModification<Media_Plain>;
name?: string;
buttonLink?: string;
locale: string;
localizations?: YogaAboutUsComponent[];
}

View File

@@ -0,0 +1,58 @@
// Interface automatically generated by schemas-to-ts
export interface YogaContactUs {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
firstName?: string;
lastName?: string;
phone?: string;
email?: string;
message?: string;
buttonText?: string;
locale: string;
localizations?: { data: YogaContactUs[] };
};
}
export interface YogaContactUs_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
firstName?: string;
lastName?: string;
phone?: string;
email?: string;
message?: string;
buttonText?: string;
locale: string;
localizations?: YogaContactUs_Plain[];
}
export interface YogaContactUs_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
firstName?: string;
lastName?: string;
phone?: string;
email?: string;
message?: string;
buttonText?: string;
locale: string;
localizations?: YogaContactUs[];
}
export interface YogaContactUs_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
firstName?: string;
lastName?: string;
phone?: string;
email?: string;
message?: string;
buttonText?: string;
locale: string;
localizations?: YogaContactUs[];
}

View File

@@ -0,0 +1,30 @@
// Interface automatically generated by schemas-to-ts
import { YogaCustomerFeedback } from './yoga-customer-feedback';
import { YogaCustomerFeedback_Plain } from './yoga-customer-feedback';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface YogaCustomerFeedbackComponent {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
feedbacks: { data: YogaCustomerFeedback[] };
};
}
export interface YogaCustomerFeedbackComponent_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
feedbacks: YogaCustomerFeedback_Plain[];
}
export interface YogaCustomerFeedbackComponent_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
feedbacks: number[];
}
export interface YogaCustomerFeedbackComponent_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
feedbacks: AdminPanelRelationPropertyModification<YogaCustomerFeedback_Plain>;
}

View File

@@ -0,0 +1,42 @@
// 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 YogaCustomerFeedback {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
customerName?: string;
feedback?: string;
customerImage?: { data: Media };
customerDescription?: string;
};
}
export interface YogaCustomerFeedback_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
customerName?: string;
feedback?: string;
customerImage?: Media_Plain;
customerDescription?: string;
}
export interface YogaCustomerFeedback_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
customerName?: string;
feedback?: string;
customerImage?: number;
customerDescription?: string;
}
export interface YogaCustomerFeedback_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
customerName?: string;
feedback?: string;
customerImage?: AdminPanelRelationPropertyModification<Media_Plain>;
customerDescription?: string;
}

View File

@@ -0,0 +1,50 @@
// Interface automatically generated by schemas-to-ts
import { YogaSingleService } from './yoga-single-service';
import { YogaSingleService_Plain } from './yoga-single-service';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface YogaOurServicesComponent {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
services: { data: YogaSingleService[] };
name?: string;
locale: string;
localizations?: { data: YogaOurServicesComponent[] };
};
}
export interface YogaOurServicesComponent_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
services: YogaSingleService_Plain[];
name?: string;
locale: string;
localizations?: YogaOurServicesComponent_Plain[];
}
export interface YogaOurServicesComponent_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
services: number[];
name?: string;
locale: string;
localizations?: YogaOurServicesComponent[];
}
export interface YogaOurServicesComponent_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
services: AdminPanelRelationPropertyModification<YogaSingleService_Plain>;
name?: string;
locale: string;
localizations?: YogaOurServicesComponent[];
}

View File

@@ -0,0 +1,46 @@
// Interface automatically generated by schemas-to-ts
import { YogaPrice } from './yoga-price';
import { YogaPrice_Plain } from './yoga-price';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface YogaPriceComponent {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
prices: { data: YogaPrice[] };
locale: string;
localizations?: { data: YogaPriceComponent[] };
};
}
export interface YogaPriceComponent_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
prices: YogaPrice_Plain[];
locale: string;
localizations?: YogaPriceComponent_Plain[];
}
export interface YogaPriceComponent_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
prices: number[];
locale: string;
localizations?: YogaPriceComponent[];
}
export interface YogaPriceComponent_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
prices: AdminPanelRelationPropertyModification<YogaPrice_Plain>;
locale: string;
localizations?: YogaPriceComponent[];
}

View File

@@ -0,0 +1,50 @@
// 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 YogaPrice {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
option1?: string;
option2?: string;
buttonText?: string;
price?: number;
icon?: { data: Media };
image?: { data: Media };
};
}
export interface YogaPrice_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
option1?: string;
option2?: string;
buttonText?: string;
price?: number;
icon?: Media_Plain;
image?: Media_Plain;
}
export interface YogaPrice_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
option1?: string;
option2?: string;
buttonText?: string;
price?: number;
icon?: number;
image?: number;
}
export interface YogaPrice_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
option1?: string;
option2?: string;
buttonText?: string;
price?: number;
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
image?: AdminPanelRelationPropertyModification<Media_Plain>;
}

View File

@@ -0,0 +1,54 @@
// 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 YogaSingleService {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
description?: string;
buttonLink?: string;
image?: { data: Media };
imageAlt?: string;
name?: string;
locale: string;
localizations?: { data: YogaSingleService[] };
};
}
export interface YogaSingleService_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
description?: string;
buttonLink?: string;
image?: Media_Plain;
imageAlt?: string;
name?: string;
locale: string;
localizations?: YogaSingleService_Plain[];
}
export interface YogaSingleService_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
description?: string;
buttonLink?: string;
image?: number;
imageAlt?: string;
name?: string;
locale: string;
localizations?: YogaSingleService[];
}
export interface YogaSingleService_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
description?: string;
buttonLink?: string;
image?: AdminPanelRelationPropertyModification<Media_Plain>;
imageAlt?: string;
name?: string;
locale: string;
localizations?: YogaSingleService[];
}

View File

@@ -0,0 +1,38 @@
// Interface automatically generated by schemas-to-ts
export interface YogaSingleSpeciality {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: string;
name: string;
locale: string;
localizations?: { data: YogaSingleSpeciality[] };
};
}
export interface YogaSingleSpeciality_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: string;
name: string;
locale: string;
localizations?: YogaSingleSpeciality_Plain[];
}
export interface YogaSingleSpeciality_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: string;
name: string;
locale: string;
localizations?: YogaSingleSpeciality[];
}
export interface YogaSingleSpeciality_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
description?: string;
name: string;
locale: string;
localizations?: YogaSingleSpeciality[];
}

View File

@@ -0,0 +1,78 @@
// Interface automatically generated by schemas-to-ts
import { YogaSingleSpeciality } from './yoga-single-speciality';
import { YogaSingleSpeciality_Plain } from './yoga-single-speciality';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface YogaSpecialitiesComponent {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
name?: string;
left1?: { data: YogaSingleSpeciality };
left2?: { data: YogaSingleSpeciality };
left3?: { data: YogaSingleSpeciality };
left4?: { data: YogaSingleSpeciality };
right1?: { data: YogaSingleSpeciality };
right2?: { data: YogaSingleSpeciality };
right3?: { data: YogaSingleSpeciality };
right4?: { data: YogaSingleSpeciality };
locale: string;
localizations?: { data: YogaSpecialitiesComponent[] };
};
}
export interface YogaSpecialitiesComponent_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
name?: string;
left1?: YogaSingleSpeciality_Plain;
left2?: YogaSingleSpeciality_Plain;
left3?: YogaSingleSpeciality_Plain;
left4?: YogaSingleSpeciality_Plain;
right1?: YogaSingleSpeciality_Plain;
right2?: YogaSingleSpeciality_Plain;
right3?: YogaSingleSpeciality_Plain;
right4?: YogaSingleSpeciality_Plain;
locale: string;
localizations?: YogaSpecialitiesComponent_Plain[];
}
export interface YogaSpecialitiesComponent_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
name?: string;
left1?: number;
left2?: number;
left3?: number;
left4?: number;
right1?: number;
right2?: number;
right3?: number;
right4?: number;
locale: string;
localizations?: YogaSpecialitiesComponent[];
}
export interface YogaSpecialitiesComponent_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; title?: string;
header?: string;
description?: string;
name?: string;
left1?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
left2?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
left3?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
left4?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
right1?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
right2?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
right3?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
right4?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
locale: string;
localizations?: YogaSpecialitiesComponent[];
}