Skip to content

Commit

Permalink
Merge pull request #15 from openobserve/dev
Browse files Browse the repository at this point in the history
fix: update author object
  • Loading branch information
ktx-kirtan authored Feb 1, 2025
2 parents 48602a2 + f4a8c38 commit d0ea77b
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 6 deletions.
34 changes: 32 additions & 2 deletions src/api/author/content-types/author/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,51 @@
"info": {
"singularName": "author",
"pluralName": "authors",
"displayName": "Author"
"displayName": "Author",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"author": {
"name": {
"type": "string"
},
"blogs": {
"type": "relation",
"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"
}
}
}
3 changes: 2 additions & 1 deletion src/api/contact/content-types/contact/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion src/api/job/content-types/job/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 16 additions & 0 deletions src/components/section-hero/contact-hero-section.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"collectionName": "components_section_hero_contact_hero_sections",
"info": {
"displayName": "ContactHeroSection",
"icon": "crown"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
}
}
}
13 changes: 13 additions & 0 deletions types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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;
Expand Down
13 changes: 12 additions & 1 deletion types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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;
};
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d0ea77b

Please sign in to comment.