Hackspace: add projects

This commit is contained in:
He4eT 2025-04-01 13:07:38 +02:00
commit ae1b629c86
4 changed files with 32 additions and 0 deletions

View file

@ -104,6 +104,17 @@ export interface HackspaceLocation extends Struct.ComponentSchema {
};
}
export interface HackspaceProject extends Struct.ComponentSchema {
collectionName: 'components_hackspace_projects';
info: {
displayName: 'Project';
icon: 'apps';
};
attributes: {
url: Schema.Attribute.String & Schema.Attribute.Required;
};
}
export interface HackspaceSpacefed extends Struct.ComponentSchema {
collectionName: 'components_hackspace_spacefeds';
info: {
@ -153,6 +164,7 @@ declare module '@strapi/strapi' {
'hackspace.feed-list': HackspaceFeedList;
'hackspace.keymaster': HackspaceKeymaster;
'hackspace.location': HackspaceLocation;
'hackspace.project': HackspaceProject;
'hackspace.spacefed': HackspaceSpacefed;
'location.area': LocationArea;
'state.state-icon': StateStateIcon;

View file

@ -424,6 +424,7 @@ export interface ApiHackspaceHackspace extends Struct.SingleTypeSchema {
Schema.Attribute.Private;
location: Schema.Attribute.Component<'hackspace.location', false>;
logo: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
projects: Schema.Attribute.Component<'hackspace.project', true>;
publishedAt: Schema.Attribute.DateTime;
space: Schema.Attribute.String & Schema.Attribute.Required;
spacefed: Schema.Attribute.Component<'hackspace.spacefed', false>;