components.d.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import type { Schema, Struct } from '@strapi/strapi';
  2. export interface SharedMedia extends Struct.ComponentSchema {
  3. collectionName: 'components_shared_media';
  4. info: {
  5. displayName: 'Media';
  6. icon: 'file-video';
  7. };
  8. attributes: {
  9. file: Schema.Attribute.Media<'images' | 'files' | 'videos'>;
  10. };
  11. }
  12. export interface SharedQuote extends Struct.ComponentSchema {
  13. collectionName: 'components_shared_quotes';
  14. info: {
  15. displayName: 'Quote';
  16. icon: 'indent';
  17. };
  18. attributes: {
  19. body: Schema.Attribute.Text;
  20. title: Schema.Attribute.String;
  21. };
  22. }
  23. export interface SharedRichText extends Struct.ComponentSchema {
  24. collectionName: 'components_shared_rich_texts';
  25. info: {
  26. description: '';
  27. displayName: 'Rich text';
  28. icon: 'align-justify';
  29. };
  30. attributes: {
  31. body: Schema.Attribute.RichText;
  32. };
  33. }
  34. export interface SharedSeo extends Struct.ComponentSchema {
  35. collectionName: 'components_shared_seos';
  36. info: {
  37. description: '';
  38. displayName: 'Seo';
  39. icon: 'allergies';
  40. name: 'Seo';
  41. };
  42. attributes: {
  43. metaDescription: Schema.Attribute.Text & Schema.Attribute.Required;
  44. metaTitle: Schema.Attribute.String & Schema.Attribute.Required;
  45. shareImage: Schema.Attribute.Media<'images'>;
  46. };
  47. }
  48. export interface SharedSlider extends Struct.ComponentSchema {
  49. collectionName: 'components_shared_sliders';
  50. info: {
  51. description: '';
  52. displayName: 'Slider';
  53. icon: 'address-book';
  54. };
  55. attributes: {
  56. files: Schema.Attribute.Media<'images', true>;
  57. };
  58. }
  59. declare module '@strapi/strapi' {
  60. export module Public {
  61. export interface ComponentSchemas {
  62. 'shared.media': SharedMedia;
  63. 'shared.quote': SharedQuote;
  64. 'shared.rich-text': SharedRichText;
  65. 'shared.seo': SharedSeo;
  66. 'shared.slider': SharedSlider;
  67. }
  68. }
  69. }