convert about types from component to collection-type
This commit is contained in:
@@ -2,24 +2,29 @@
|
||||
|
||||
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 { 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 { 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 };
|
||||
locale: string;
|
||||
localizations?: { data: About[] };
|
||||
};
|
||||
@@ -28,8 +33,10 @@ 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;
|
||||
locale: string;
|
||||
localizations?: About_Plain[];
|
||||
}
|
||||
@@ -38,8 +45,10 @@ 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;
|
||||
locale: string;
|
||||
localizations?: About[];
|
||||
}
|
||||
@@ -48,8 +57,10 @@ 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>;
|
||||
locale: string;
|
||||
localizations?: About[];
|
||||
}
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
7
yoga-app/src/types/types.ts
Normal file
7
yoga-app/src/types/types.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface StrapiFile{
|
||||
"id": string,
|
||||
"documentId": string,
|
||||
"name": string,
|
||||
"mime": string,
|
||||
"url": string
|
||||
}
|
||||
Reference in New Issue
Block a user