add content, add swagger

This commit is contained in:
Zotov Ivan Yuryevich
2026-04-05 15:06:27 +03:00
parent 981a01e8ef
commit 2ed71cfa30
24 changed files with 11889 additions and 11 deletions

45
types/generated/components.d.ts vendored Normal file
View File

@@ -0,0 +1,45 @@
import type { Schema, Struct } from '@strapi/strapi';
export interface SectionsHomeHero extends Struct.ComponentSchema {
collectionName: 'components_sections_home_heroes';
info: {
displayName: 'HomeHero';
};
attributes: {
badge: Schema.Attribute.String;
description: Schema.Attribute.Text;
stats: Schema.Attribute.Component<'shared.attribute', true>;
title: Schema.Attribute.String;
};
}
export interface SharedAttribute extends Struct.ComponentSchema {
collectionName: 'components_shared_attributes';
info: {
displayName: 'Attribute';
};
attributes: {
key: Schema.Attribute.String;
value: Schema.Attribute.String;
};
}
export interface SharedProduct extends Struct.ComponentSchema {
collectionName: 'components_shared_products';
info: {
displayName: 'Product';
};
attributes: {
title: Schema.Attribute.String & Schema.Attribute.Required;
};
}
declare module '@strapi/strapi' {
export module Public {
export interface ComponentSchemas {
'sections.home-hero': SectionsHomeHero;
'shared.attribute': SharedAttribute;
'shared.product': SharedProduct;
}
}
}