60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
import type { Schema, Struct } from '@strapi/strapi';
|
|
|
|
export interface GlobalCopy extends Struct.ComponentSchema {
|
|
collectionName: 'components_global_copies';
|
|
info: {
|
|
displayName: 'Copy';
|
|
icon: 'bold';
|
|
};
|
|
attributes: {
|
|
content: Schema.Attribute.Blocks;
|
|
};
|
|
}
|
|
|
|
export interface GlobalDescriptiveList extends Struct.ComponentSchema {
|
|
collectionName: 'components_global_descriptive_lists';
|
|
info: {
|
|
displayName: 'Descriptive List';
|
|
icon: 'bulletList';
|
|
};
|
|
attributes: {
|
|
content: Schema.Attribute.Blocks;
|
|
label: Schema.Attribute.String;
|
|
};
|
|
}
|
|
|
|
export interface GlobalMedia extends Struct.ComponentSchema {
|
|
collectionName: 'components_global_media';
|
|
info: {
|
|
displayName: 'Media';
|
|
icon: 'landscape';
|
|
};
|
|
attributes: {
|
|
image: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
|
video: Schema.Attribute.Media<'videos'>;
|
|
};
|
|
}
|
|
|
|
export interface GlobalSeo extends Struct.ComponentSchema {
|
|
collectionName: 'components_global_seos';
|
|
info: {
|
|
displayName: 'SEO';
|
|
icon: 'filter';
|
|
};
|
|
attributes: {
|
|
description: Schema.Attribute.Text;
|
|
image: Schema.Attribute.Media<'images'>;
|
|
title: Schema.Attribute.String;
|
|
};
|
|
}
|
|
|
|
declare module '@strapi/strapi' {
|
|
export module Public {
|
|
export interface ComponentSchemas {
|
|
'global.copy': GlobalCopy;
|
|
'global.descriptive-list': GlobalDescriptiveList;
|
|
'global.media': GlobalMedia;
|
|
'global.seo': GlobalSeo;
|
|
}
|
|
}
|
|
}
|