From f4a8c385e82556cc65664aa71492c72963e0eb44 Mon Sep 17 00:00:00 2001 From: krupa Date: Sat, 1 Feb 2025 12:39:23 +0530 Subject: [PATCH] fix: update author object --- .../author/content-types/author/schema.json | 34 +++++++++++++++++-- .../contact/content-types/contact/schema.json | 3 +- src/api/job/content-types/job/schema.json | 3 +- .../content-types/why-choose-us/schema.json | 3 +- .../section-hero/contact-hero-section.json | 16 +++++++++ types/generated/components.d.ts | 13 +++++++ types/generated/contentTypes.d.ts | 13 ++++++- 7 files changed, 79 insertions(+), 6 deletions(-) create mode 100644 src/components/section-hero/contact-hero-section.json diff --git a/src/api/author/content-types/author/schema.json b/src/api/author/content-types/author/schema.json index becbce2..37919d3 100644 --- a/src/api/author/content-types/author/schema.json +++ b/src/api/author/content-types/author/schema.json @@ -4,14 +4,15 @@ "info": { "singularName": "author", "pluralName": "authors", - "displayName": "Author" + "displayName": "Author", + "description": "" }, "options": { "draftAndPublish": true }, "pluginOptions": {}, "attributes": { - "author": { + "name": { "type": "string" }, "blogs": { @@ -19,6 +20,35 @@ "relation": "manyToMany", "target": "api::blog-page.blog-page", "mappedBy": "authors" + }, + "bio": { + "type": "text" + }, + "image": { + "type": "media", + "multiple": false, + "required": false, + "allowedTypes": [ + "images", + "files", + "videos", + "audios" + ] + }, + "slug": { + "type": "string" + }, + "youtubeUrl": { + "type": "string" + }, + "linkedInUrl": { + "type": "string" + }, + "twitterUrl": { + "type": "string" + }, + "instagramUrl": { + "type": "string" } } } diff --git a/src/api/contact/content-types/contact/schema.json b/src/api/contact/content-types/contact/schema.json index 207659f..f051967 100644 --- a/src/api/contact/content-types/contact/schema.json +++ b/src/api/contact/content-types/contact/schema.json @@ -19,7 +19,8 @@ "section-cards.community-support", "section-cards.case-studies", "section-hero.company-hero-section", - "seo.seo" + "seo.seo", + "section-separator.separator" ] }, "seo": { diff --git a/src/api/job/content-types/job/schema.json b/src/api/job/content-types/job/schema.json index 322ce53..ccd58b2 100644 --- a/src/api/job/content-types/job/schema.json +++ b/src/api/job/content-types/job/schema.json @@ -20,7 +20,8 @@ "section-cards.testimonials", "section-cta.call-to-action", "section-features.info-left-feature", - "seo.seo" + "seo.seo", + "section-separator.separator" ] }, "seo": { diff --git a/src/api/why-choose-us/content-types/why-choose-us/schema.json b/src/api/why-choose-us/content-types/why-choose-us/schema.json index 8c8a68e..18df11d 100644 --- a/src/api/why-choose-us/content-types/why-choose-us/schema.json +++ b/src/api/why-choose-us/content-types/why-choose-us/schema.json @@ -21,7 +21,8 @@ "section-cards.clients", "section-cta.plain-cta", "section-cards.why-customer-love-us", - "seo.seo" + "seo.seo", + "section-separator.separator" ] }, "seo": { diff --git a/src/components/section-hero/contact-hero-section.json b/src/components/section-hero/contact-hero-section.json new file mode 100644 index 0000000..0a5d88b --- /dev/null +++ b/src/components/section-hero/contact-hero-section.json @@ -0,0 +1,16 @@ +{ + "collectionName": "components_section_hero_contact_hero_sections", + "info": { + "displayName": "ContactHeroSection", + "icon": "crown" + }, + "options": {}, + "attributes": { + "title": { + "type": "string" + }, + "description": { + "type": "text" + } + } +} diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index cb5c173..157fce7 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -590,6 +590,18 @@ export interface SectionHeroCompanyHeroSection extends Struct.ComponentSchema { }; } +export interface SectionHeroContactHeroSection extends Struct.ComponentSchema { + collectionName: 'components_section_hero_contact_hero_sections'; + info: { + displayName: 'ContactHeroSection'; + icon: 'crown'; + }; + attributes: { + description: Schema.Attribute.Text; + title: Schema.Attribute.String; + }; +} + export interface SectionHeroFeatureHeroSection extends Struct.ComponentSchema { collectionName: 'components_section_hero_feature_hero_sections'; info: { @@ -805,6 +817,7 @@ declare module '@strapi/strapi' { 'section-forms.contact': SectionFormsContact; 'section-forms.enterprice-contact': SectionFormsEnterpriceContact; 'section-hero.company-hero-section': SectionHeroCompanyHeroSection; + 'section-hero.contact-hero-section': SectionHeroContactHeroSection; 'section-hero.feature-hero-section': SectionHeroFeatureHeroSection; 'section-hero.feature-sub-hero-section': SectionHeroFeatureSubHeroSection; 'section-hero.homepage-hero': SectionHeroHomepageHero; diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index db02f93..6216e1e 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -414,6 +414,7 @@ export interface ApiAboutUsAboutUs extends Struct.SingleTypeSchema { export interface ApiAuthorAuthor extends Struct.CollectionTypeSchema { collectionName: 'authors'; info: { + description: ''; displayName: 'Author'; pluralName: 'authors'; singularName: 'author'; @@ -422,21 +423,28 @@ export interface ApiAuthorAuthor extends Struct.CollectionTypeSchema { draftAndPublish: true; }; attributes: { - author: Schema.Attribute.String; + bio: Schema.Attribute.Text; blogs: Schema.Attribute.Relation<'manyToMany', 'api::blog-page.blog-page'>; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; + image: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>; + instagramUrl: Schema.Attribute.String; + linkedInUrl: Schema.Attribute.String; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation< 'oneToMany', 'api::author.author' > & Schema.Attribute.Private; + name: Schema.Attribute.String; publishedAt: Schema.Attribute.DateTime; + slug: Schema.Attribute.String; + twitterUrl: Schema.Attribute.String; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; + youtubeUrl: Schema.Attribute.String; }; } @@ -600,6 +608,7 @@ export interface ApiContactContact extends Struct.SingleTypeSchema { 'section-cards.case-studies', 'section-hero.company-hero-section', 'seo.seo', + 'section-separator.separator', ] >; createdAt: Schema.Attribute.DateTime; @@ -830,6 +839,7 @@ export interface ApiJobJob extends Struct.SingleTypeSchema { 'section-cta.call-to-action', 'section-features.info-left-feature', 'seo.seo', + 'section-separator.separator', ] >; createdAt: Schema.Attribute.DateTime; @@ -1121,6 +1131,7 @@ export interface ApiWhyChooseUsWhyChooseUs extends Struct.SingleTypeSchema { 'section-cta.plain-cta', 'section-cards.why-customer-love-us', 'seo.seo', + 'section-separator.separator', ] >; createdAt: Schema.Attribute.DateTime;