diff --git a/src/api/hackspace/content-types/hackspace/schema.json b/src/api/hackspace/content-types/hackspace/schema.json index c81068c..f0d8f1b 100644 --- a/src/api/hackspace/content-types/hackspace/schema.json +++ b/src/api/hackspace/content-types/hackspace/schema.json @@ -52,6 +52,11 @@ "type": "component", "repeatable": false, "component": "hackspace.feed-list" + }, + "projects": { + "type": "component", + "repeatable": true, + "component": "hackspace.project" } } } diff --git a/src/components/hackspace/project.json b/src/components/hackspace/project.json new file mode 100644 index 0000000..23958f3 --- /dev/null +++ b/src/components/hackspace/project.json @@ -0,0 +1,14 @@ +{ + "collectionName": "components_hackspace_projects", + "info": { + "displayName": "Project", + "icon": "apps" + }, + "options": {}, + "attributes": { + "url": { + "type": "string", + "required": true + } + } +} diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index cd992cb..189c741 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -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; diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 91e8b20..63ef674 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -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>;