From 55a734b061f68a8072af8f0d486406865278ff46 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Fri, 14 Feb 2025 13:57:42 +0100 Subject: [PATCH] new types and requirements --- .../article/content-types/article/schema.json | 8 +- .../collection-lookup/schema.json | 32 +- src/api/event/content-types/event/schema.json | 8 +- .../global/content-types/global/schema.json | 10 +- .../content-types/operation/schema.json | 8 +- src/api/page/content-types/page/schema.json | 2 +- .../vehicle/content-types/vehicle/schema.json | 12 +- .../dynamic-zone/column-image-text.json | 22 +- src/components/dynamic-zone/embedding.json | 4 - .../dynamic-zone/file-download.json | 4 - src/components/dynamic-zone/section.json | 4 +- src/components/dynamic-zone/spacer.json | 2 +- src/components/global/footer.json | 2 +- src/components/global/navbar.json | 8 - src/components/global/seo.json | 4 +- src/components/items/hero.json | 4 +- src/components/items/navbar-items.json | 6 +- src/components/shared/emphasise-article.json | 2 +- src/components/shared/list.json | 3 +- .../1.0.0/full_documentation.json | 1041 +++++++++++++---- types/generated/components.d.ts | 30 +- types/generated/contentTypes.d.ts | 27 +- 22 files changed, 924 insertions(+), 319 deletions(-) diff --git a/src/api/article/content-types/article/schema.json b/src/api/article/content-types/article/schema.json index f624d5b..9714724 100644 --- a/src/api/article/content-types/article/schema.json +++ b/src/api/article/content-types/article/schema.json @@ -36,18 +36,14 @@ "type": "media", "multiple": false, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "attachment": { "type": "media", "multiple": true, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "date": { diff --git a/src/api/collection-lookup/content-types/collection-lookup/schema.json b/src/api/collection-lookup/content-types/collection-lookup/schema.json index 7dafec3..9a336f6 100644 --- a/src/api/collection-lookup/content-types/collection-lookup/schema.json +++ b/src/api/collection-lookup/content-types/collection-lookup/schema.json @@ -22,30 +22,32 @@ "enum": ["events", "vehicles", "articles", "operations"], "required": true }, - "image_item": { + "show_image": { "type": "boolean", "default": false, + "required": false + }, + "show_date": { + "type": "boolean", + "default": false, + "required": false + }, + "list_with_date": { + "type": "enumeration", + "enum": ["none", "by-year", "by-month"], + "default": "none", "required": true }, - "date_list": { - "type": "boolean", - "default": false, - "required": true - }, - "numbered_item": { - "type": "boolean", - "default": false, - "required": true - }, - "inverse_count": { - "type": "boolean", - "default": false, + "items_with_number": { + "type": "enumeration", + "enum": ["none", "numbered", "inverted"], + "default": "none", "required": true }, "enable_detail": { "type": "boolean", "default": false, - "required": true + "required": false } } } diff --git a/src/api/event/content-types/event/schema.json b/src/api/event/content-types/event/schema.json index a15bfb1..4094366 100644 --- a/src/api/event/content-types/event/schema.json +++ b/src/api/event/content-types/event/schema.json @@ -36,18 +36,14 @@ "type": "media", "multiple": false, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "attachment": { "type": "media", "multiple": true, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "date": { diff --git a/src/api/global/content-types/global/schema.json b/src/api/global/content-types/global/schema.json index 55e9912..ac6d6f1 100644 --- a/src/api/global/content-types/global/schema.json +++ b/src/api/global/content-types/global/schema.json @@ -12,19 +12,25 @@ }, "pluginOptions": {}, "attributes": { + "logo": { + "type": "media", + "multiple": false, + "required": true, + "allowedTypes": ["images"] + }, "navbar": { "type": "component", "repeatable": false, "pluginOptions": {}, "component": "global.navbar", - "required": true + "required": false }, "footer": { "type": "component", "repeatable": false, "pluginOptions": {}, "component": "global.footer", - "required": true + "required": false }, "SEO": { "type": "component", diff --git a/src/api/operation/content-types/operation/schema.json b/src/api/operation/content-types/operation/schema.json index f8320b5..89b2e95 100644 --- a/src/api/operation/content-types/operation/schema.json +++ b/src/api/operation/content-types/operation/schema.json @@ -36,18 +36,14 @@ "type": "media", "multiple": false, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "attachment": { "type": "media", "multiple": true, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "date": { diff --git a/src/api/page/content-types/page/schema.json b/src/api/page/content-types/page/schema.json index 7a57b2b..f7b7cb2 100644 --- a/src/api/page/content-types/page/schema.json +++ b/src/api/page/content-types/page/schema.json @@ -29,7 +29,7 @@ "repeatable": false, "pluginOptions": {}, "component": "items.hero", - "required": false + "required": true }, "content": { "pluginOptions": {}, diff --git a/src/api/vehicle/content-types/vehicle/schema.json b/src/api/vehicle/content-types/vehicle/schema.json index 5ca135f..f2d3334 100644 --- a/src/api/vehicle/content-types/vehicle/schema.json +++ b/src/api/vehicle/content-types/vehicle/schema.json @@ -36,24 +36,20 @@ "type": "media", "multiple": false, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "attachment": { "type": "media", "multiple": true, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "date": { "pluginOptions": {}, - "type": "datetime", - "required": false + "type": "date", + "required": true } } } diff --git a/src/components/dynamic-zone/column-image-text.json b/src/components/dynamic-zone/column-image-text.json index 2798578..adc4b93 100644 --- a/src/components/dynamic-zone/column-image-text.json +++ b/src/components/dynamic-zone/column-image-text.json @@ -7,22 +7,20 @@ }, "options": {}, "attributes": { - "image": { - "type": "media", - "multiple": false, - "required": true, - "allowedTypes": [ - "images" - ] - }, - "text": { - "type": "blocks", - "required": true - }, "image_left": { "type": "boolean", "default": true, "required": true + }, + "image": { + "type": "media", + "multiple": false, + "required": true, + "allowedTypes": ["images"] + }, + "text": { + "type": "blocks", + "required": true } } } diff --git a/src/components/dynamic-zone/embedding.json b/src/components/dynamic-zone/embedding.json index 666ea34..b09f708 100644 --- a/src/components/dynamic-zone/embedding.json +++ b/src/components/dynamic-zone/embedding.json @@ -5,10 +5,6 @@ }, "options": {}, "attributes": { - "title": { - "type": "string", - "required": true - }, "link": { "type": "string" } diff --git a/src/components/dynamic-zone/file-download.json b/src/components/dynamic-zone/file-download.json index 3fa50fb..42843a9 100644 --- a/src/components/dynamic-zone/file-download.json +++ b/src/components/dynamic-zone/file-download.json @@ -11,10 +11,6 @@ "default": true, "required": true }, - "title": { - "type": "string", - "required": true - }, "file": { "type": "media", "multiple": false, diff --git a/src/components/dynamic-zone/section.json b/src/components/dynamic-zone/section.json index 3b8dbbf..be66ab8 100644 --- a/src/components/dynamic-zone/section.json +++ b/src/components/dynamic-zone/section.json @@ -2,12 +2,12 @@ "collectionName": "components_dynamic_zone_section", "info": { "displayName": "Abschnitt", - "icon": "apps", + "icon": "expand", "description": "" }, "options": {}, "attributes": { - "titel": { + "title": { "type": "string", "required": true }, diff --git a/src/components/dynamic-zone/spacer.json b/src/components/dynamic-zone/spacer.json index 8e75033..1603c63 100644 --- a/src/components/dynamic-zone/spacer.json +++ b/src/components/dynamic-zone/spacer.json @@ -2,7 +2,7 @@ "collectionName": "components_dynamic_zone_spacer", "info": { "displayName": "Abstand", - "icon": "apps", + "icon": "crop", "description": "" }, "options": {}, diff --git a/src/components/global/footer.json b/src/components/global/footer.json index f0ad8e7..afe082b 100644 --- a/src/components/global/footer.json +++ b/src/components/global/footer.json @@ -10,7 +10,7 @@ "copyright": { "type": "string" }, - "designed_developed_by": { + "maintained_by": { "type": "string" }, "links": { diff --git a/src/components/global/navbar.json b/src/components/global/navbar.json index 6ee1b8e..0346ae6 100644 --- a/src/components/global/navbar.json +++ b/src/components/global/navbar.json @@ -7,14 +7,6 @@ }, "options": {}, "attributes": { - "logo": { - "type": "media", - "multiple": false, - "required": true, - "allowedTypes": [ - "images" - ] - }, "navbar_items": { "type": "component", "repeatable": true, diff --git a/src/components/global/seo.json b/src/components/global/seo.json index e3cbdc3..a7d18d6 100644 --- a/src/components/global/seo.json +++ b/src/components/global/seo.json @@ -14,8 +14,8 @@ }, "metaDescription": { "type": "string", - "required": true, - "minLength": 50 + "required": false, + "default": "" }, "keywords": { "type": "text", diff --git a/src/components/items/hero.json b/src/components/items/hero.json index c5e42bb..45e790a 100644 --- a/src/components/items/hero.json +++ b/src/components/items/hero.json @@ -10,12 +10,12 @@ "banner": { "type": "media", "multiple": false, - "required": true, + "required": false, "allowedTypes": ["images"] }, "title": { "type": "string", - "required": true + "required": false } } } diff --git a/src/components/items/navbar-items.json b/src/components/items/navbar-items.json index 4f39d67..1a1742b 100644 --- a/src/components/items/navbar-items.json +++ b/src/components/items/navbar-items.json @@ -8,10 +8,12 @@ "options": {}, "attributes": { "name": { - "type": "string" + "type": "string", + "required": true }, "URL": { - "type": "string" + "type": "string", + "required": true }, "default_active_child": { "type": "string" diff --git a/src/components/shared/emphasise-article.json b/src/components/shared/emphasise-article.json index 81b1827..88bc053 100644 --- a/src/components/shared/emphasise-article.json +++ b/src/components/shared/emphasise-article.json @@ -12,7 +12,7 @@ "relation": "oneToMany", "target": "api::article.article" }, - "base_url": { + "link_to_articles": { "type": "string", "required": false, "default": "" diff --git a/src/components/shared/list.json b/src/components/shared/list.json index e5e168f..f1daba8 100644 --- a/src/components/shared/list.json +++ b/src/components/shared/list.json @@ -10,7 +10,8 @@ "lookup": { "type": "relation", "relation": "oneToOne", - "target": "api::collection-lookup.collection-lookup" + "target": "api::collection-lookup.collection-lookup", + "required": true } } } diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 7776cb6..0f825d2 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2025-02-13T10:32:51.979Z" + "x-generation-date": "2025-02-14T12:28:13.905Z" }, "x-strapi-config": { "plugins": [ @@ -6441,11 +6441,8 @@ "required": [ "reference", "collection", - "image_item", - "date_list", - "numbered_item", - "inverse_count", - "enable_detail" + "list_with_date", + "items_with_number" ], "type": "object", "properties": { @@ -6461,17 +6458,27 @@ "operations" ] }, - "image_item": { + "show_image": { "type": "boolean" }, - "date_list": { + "show_date": { "type": "boolean" }, - "numbered_item": { - "type": "boolean" + "list_with_date": { + "type": "string", + "enum": [ + "none", + "by-year", + "by-month" + ] }, - "inverse_count": { - "type": "boolean" + "items_with_number": { + "type": "string", + "enum": [ + "none", + "numbered", + "inverted" + ] }, "enable_detail": { "type": "boolean" @@ -6537,11 +6544,8 @@ "required": [ "reference", "collection", - "image_item", - "date_list", - "numbered_item", - "inverse_count", - "enable_detail" + "list_with_date", + "items_with_number" ], "properties": { "id": { @@ -6562,17 +6566,27 @@ "operations" ] }, - "image_item": { + "show_image": { "type": "boolean" }, - "date_list": { + "show_date": { "type": "boolean" }, - "numbered_item": { - "type": "boolean" + "list_with_date": { + "type": "string", + "enum": [ + "none", + "by-year", + "by-month" + ] }, - "inverse_count": { - "type": "boolean" + "items_with_number": { + "type": "string", + "enum": [ + "none", + "numbered", + "inverted" + ] }, "enable_detail": { "type": "boolean" @@ -6889,17 +6903,27 @@ "operations" ] }, - "image_item": { + "show_image": { "type": "boolean" }, - "date_list": { + "show_date": { "type": "boolean" }, - "numbered_item": { - "type": "boolean" + "list_with_date": { + "type": "string", + "enum": [ + "none", + "by-year", + "by-month" + ] }, - "inverse_count": { - "type": "boolean" + "items_with_number": { + "type": "string", + "enum": [ + "none", + "numbered", + "inverted" + ] }, "enable_detail": { "type": "boolean" @@ -8238,11 +8262,21 @@ "properties": { "data": { "required": [ - "navbar", - "footer" + "logo" ], "type": "object", "properties": { + "logo": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + }, "navbar": { "$ref": "#/components/schemas/GlobalNavbarComponent" }, @@ -8311,8 +8345,7 @@ "Global": { "type": "object", "required": [ - "navbar", - "footer" + "logo" ], "properties": { "id": { @@ -8321,6 +8354,604 @@ "documentId": { "type": "string" }, + "logo": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "pathId": { + "type": "integer" + }, + "parent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "children": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + }, + "files": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + }, + "firstname": { + "type": "string" + }, + "lastname": { + "type": "string" + }, + "username": { + "type": "string" + }, + "email": { + "type": "string", + "format": "email" + }, + "resetPasswordToken": { + "type": "string" + }, + "registrationToken": { + "type": "string" + }, + "isActive": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "code": { + "type": "string" + }, + "description": { + "type": "string" + }, + "users": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + }, + "permissions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + }, + "action": { + "type": "string" + }, + "actionParameters": {}, + "subject": { + "type": "string" + }, + "properties": {}, + "conditions": {}, + "role": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "locale": { + "type": "string" + }, + "localizations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + } + } + } + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "locale": { + "type": "string" + }, + "localizations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + } + } + } + }, + "blocked": { + "type": "boolean" + }, + "preferedLanguage": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "locale": { + "type": "string" + }, + "localizations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "locale": { + "type": "string" + }, + "localizations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + } + } + } + }, + "path": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "locale": { + "type": "string" + }, + "localizations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "locale": { + "type": "string" + }, + "localizations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + } + } + }, "navbar": { "$ref": "#/components/schemas/GlobalNavbarComponent" }, @@ -8378,6 +9009,135 @@ "documentId": { "type": "string" }, + "logo": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "alternativeText": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "formats": {}, + "hash": { + "type": "string" + }, + "ext": { + "type": "string" + }, + "mime": { + "type": "string" + }, + "size": { + "type": "number", + "format": "float" + }, + "url": { + "type": "string" + }, + "previewUrl": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "provider_metadata": {}, + "related": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + }, + "folder": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "folderPath": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "publishedAt": { + "type": "string", + "format": "date-time" + }, + "createdBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "updatedBy": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + }, + "locale": { + "type": "string" + }, + "localizations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } + } + } + } + }, "navbar": { "$ref": "#/components/schemas/GlobalNavbarComponent" }, @@ -8519,135 +9279,6 @@ "id": { "type": "number" }, - "logo": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "documentId": { - "type": "string" - }, - "name": { - "type": "string" - }, - "alternativeText": { - "type": "string" - }, - "caption": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - }, - "formats": {}, - "hash": { - "type": "string" - }, - "ext": { - "type": "string" - }, - "mime": { - "type": "string" - }, - "size": { - "type": "number", - "format": "float" - }, - "url": { - "type": "string" - }, - "previewUrl": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "provider_metadata": {}, - "related": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "documentId": { - "type": "string" - } - } - } - }, - "folder": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "documentId": { - "type": "string" - } - } - }, - "folderPath": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time" - }, - "publishedAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "documentId": { - "type": "string" - } - } - }, - "updatedBy": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "documentId": { - "type": "string" - } - } - }, - "locale": { - "type": "string" - }, - "localizations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "documentId": { - "type": "string" - } - } - } - } - } - }, "navbar_items": { "type": "array", "items": { @@ -8688,7 +9319,7 @@ "copyright": { "type": "string" }, - "designed_developed_by": { + "maintained_by": { "type": "string" }, "links": { @@ -8882,7 +9513,7 @@ "dynamic-zone.section" ] }, - "titel": { + "title": { "type": "string" }, "description": { @@ -8902,9 +9533,6 @@ "dynamic-zone.embedding" ] }, - "title": { - "type": "string" - }, "link": { "type": "string" } @@ -8925,9 +9553,6 @@ "enable_download": { "type": "boolean" }, - "title": { - "type": "string" - }, "file": { "type": "object", "properties": { @@ -9391,6 +10016,9 @@ "dynamic-zone.column-image-text" ] }, + "image_left": { + "type": "boolean" + }, "image": { "type": "object", "properties": { @@ -9520,10 +10148,7 @@ } } }, - "text": {}, - "image_left": { - "type": "boolean" - } + "text": {} } }, "SharedEmphasiseArticleComponent": { @@ -9552,7 +10177,7 @@ } } }, - "base_url": { + "link_to_articles": { "type": "string" } } @@ -9612,6 +10237,12 @@ { "$ref": "#/components/schemas/DynamicZoneSectionComponent" }, + { + "$ref": "#/components/schemas/DynamicZoneEmbeddingComponent" + }, + { + "$ref": "#/components/schemas/DynamicZoneFileDownloadComponent" + }, { "$ref": "#/components/schemas/DynamicZoneGalleryComponent" }, @@ -9627,12 +10258,6 @@ { "$ref": "#/components/schemas/DynamicZoneColumnImageTextComponent" }, - { - "$ref": "#/components/schemas/DynamicZoneFileDownloadComponent" - }, - { - "$ref": "#/components/schemas/DynamicZoneEmbeddingComponent" - }, { "$ref": "#/components/schemas/SharedEmphasiseArticleComponent" }, @@ -9646,13 +10271,13 @@ "mapping": { "dynamic-zone.spacer": "#/components/schemas/DynamicZoneSpacerComponent", "dynamic-zone.section": "#/components/schemas/DynamicZoneSectionComponent", + "dynamic-zone.embedding": "#/components/schemas/DynamicZoneEmbeddingComponent", + "dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent", "dynamic-zone.gallery": "#/components/schemas/DynamicZoneGalleryComponent", "dynamic-zone.full-text": "#/components/schemas/DynamicZoneFullTextComponent", "dynamic-zone.full-image": "#/components/schemas/DynamicZoneFullImageComponent", "dynamic-zone.dual-column-text": "#/components/schemas/DynamicZoneDualColumnTextComponent", "dynamic-zone.column-image-text": "#/components/schemas/DynamicZoneColumnImageTextComponent", - "dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent", - "dynamic-zone.embedding": "#/components/schemas/DynamicZoneEmbeddingComponent", "shared.emphasise-article": "#/components/schemas/SharedEmphasiseArticleComponent", "shared.list": "#/components/schemas/SharedListComponent" } @@ -10331,6 +10956,12 @@ { "$ref": "#/components/schemas/DynamicZoneSectionComponent" }, + { + "$ref": "#/components/schemas/DynamicZoneEmbeddingComponent" + }, + { + "$ref": "#/components/schemas/DynamicZoneFileDownloadComponent" + }, { "$ref": "#/components/schemas/DynamicZoneGalleryComponent" }, @@ -10346,12 +10977,6 @@ { "$ref": "#/components/schemas/DynamicZoneColumnImageTextComponent" }, - { - "$ref": "#/components/schemas/DynamicZoneFileDownloadComponent" - }, - { - "$ref": "#/components/schemas/DynamicZoneEmbeddingComponent" - }, { "$ref": "#/components/schemas/SharedEmphasiseArticleComponent" }, @@ -10365,13 +10990,13 @@ "mapping": { "dynamic-zone.spacer": "#/components/schemas/DynamicZoneSpacerComponent", "dynamic-zone.section": "#/components/schemas/DynamicZoneSectionComponent", + "dynamic-zone.embedding": "#/components/schemas/DynamicZoneEmbeddingComponent", + "dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent", "dynamic-zone.gallery": "#/components/schemas/DynamicZoneGalleryComponent", "dynamic-zone.full-text": "#/components/schemas/DynamicZoneFullTextComponent", "dynamic-zone.full-image": "#/components/schemas/DynamicZoneFullImageComponent", "dynamic-zone.dual-column-text": "#/components/schemas/DynamicZoneDualColumnTextComponent", "dynamic-zone.column-image-text": "#/components/schemas/DynamicZoneColumnImageTextComponent", - "dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent", - "dynamic-zone.embedding": "#/components/schemas/DynamicZoneEmbeddingComponent", "shared.emphasise-article": "#/components/schemas/SharedEmphasiseArticleComponent", "shared.list": "#/components/schemas/SharedListComponent" } @@ -10564,6 +11189,12 @@ { "$ref": "#/components/schemas/DynamicZoneSectionComponent" }, + { + "$ref": "#/components/schemas/DynamicZoneEmbeddingComponent" + }, + { + "$ref": "#/components/schemas/DynamicZoneFileDownloadComponent" + }, { "$ref": "#/components/schemas/DynamicZoneGalleryComponent" }, @@ -10579,12 +11210,6 @@ { "$ref": "#/components/schemas/DynamicZoneColumnImageTextComponent" }, - { - "$ref": "#/components/schemas/DynamicZoneFileDownloadComponent" - }, - { - "$ref": "#/components/schemas/DynamicZoneEmbeddingComponent" - }, { "$ref": "#/components/schemas/SharedEmphasiseArticleComponent" }, @@ -10598,13 +11223,13 @@ "mapping": { "dynamic-zone.spacer": "#/components/schemas/DynamicZoneSpacerComponent", "dynamic-zone.section": "#/components/schemas/DynamicZoneSectionComponent", + "dynamic-zone.embedding": "#/components/schemas/DynamicZoneEmbeddingComponent", + "dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent", "dynamic-zone.gallery": "#/components/schemas/DynamicZoneGalleryComponent", "dynamic-zone.full-text": "#/components/schemas/DynamicZoneFullTextComponent", "dynamic-zone.full-image": "#/components/schemas/DynamicZoneFullImageComponent", "dynamic-zone.dual-column-text": "#/components/schemas/DynamicZoneDualColumnTextComponent", "dynamic-zone.column-image-text": "#/components/schemas/DynamicZoneColumnImageTextComponent", - "dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent", - "dynamic-zone.embedding": "#/components/schemas/DynamicZoneEmbeddingComponent", "shared.emphasise-article": "#/components/schemas/SharedEmphasiseArticleComponent", "shared.list": "#/components/schemas/SharedListComponent" } @@ -11945,7 +12570,8 @@ "data": { "required": [ "identifier", - "slug" + "slug", + "hero" ], "type": "object", "properties": { @@ -12074,7 +12700,8 @@ "type": "object", "required": [ "identifier", - "slug" + "slug", + "hero" ], "properties": { "id": { @@ -12338,7 +12965,8 @@ "required": [ "title", "description", - "slug" + "slug", + "date" ], "type": "object", "properties": { @@ -12379,7 +13007,7 @@ }, "date": { "type": "string", - "format": "date-time" + "format": "date" }, "locale": { "type": "string" @@ -12442,7 +13070,8 @@ "required": [ "title", "description", - "slug" + "slug", + "date" ], "properties": { "id": { @@ -13193,7 +13822,7 @@ }, "date": { "type": "string", - "format": "date-time" + "format": "date" }, "createdAt": { "type": "string", @@ -13516,7 +14145,7 @@ }, "date": { "type": "string", - "format": "date-time" + "format": "date" }, "createdAt": { "type": "string", diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index ddc2acd..6173dd6 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -33,7 +33,6 @@ export interface DynamicZoneEmbedding extends Struct.ComponentSchema { }; attributes: { link: Schema.Attribute.String; - title: Schema.Attribute.String & Schema.Attribute.Required; }; } @@ -46,7 +45,6 @@ export interface DynamicZoneFileDownload extends Struct.ComponentSchema { attributes: { enable_download: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo; file: Schema.Attribute.Media<"files" | "images"> & Schema.Attribute.Required; - title: Schema.Attribute.String & Schema.Attribute.Required; }; } @@ -91,11 +89,11 @@ export interface DynamicZoneSection extends Struct.ComponentSchema { info: { description: ""; displayName: "Abschnitt"; - icon: "apps"; + icon: "expand"; }; attributes: { description: Schema.Attribute.Text; - titel: Schema.Attribute.String & Schema.Attribute.Required; + title: Schema.Attribute.String & Schema.Attribute.Required; }; } @@ -104,7 +102,7 @@ export interface DynamicZoneSpacer extends Struct.ComponentSchema { info: { description: ""; displayName: "Abstand"; - icon: "apps"; + icon: "crop"; }; attributes: {}; } @@ -118,8 +116,8 @@ export interface GlobalFooter extends Struct.ComponentSchema { }; attributes: { copyright: Schema.Attribute.String; - designed_developed_by: Schema.Attribute.String; links: Schema.Attribute.Component<"items.link", true>; + maintained_by: Schema.Attribute.String; }; } @@ -131,7 +129,6 @@ export interface GlobalNavbar extends Struct.ComponentSchema { icon: "bold"; }; attributes: { - logo: Schema.Attribute.Media<"images"> & Schema.Attribute.Required; navbar_items: Schema.Attribute.Component<"items.navbar-items", true>; }; } @@ -145,11 +142,7 @@ export interface GlobalSeo extends Struct.ComponentSchema { }; attributes: { keywords: Schema.Attribute.Text; - metaDescription: Schema.Attribute.String & - Schema.Attribute.Required & - Schema.Attribute.SetMinMaxLength<{ - minLength: 50; - }>; + metaDescription: Schema.Attribute.String & Schema.Attribute.DefaultTo<"">; metaTitle: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.SetMinMaxLength<{ @@ -166,8 +159,8 @@ export interface ItemsHero extends Struct.ComponentSchema { icon: "rocket"; }; attributes: { - banner: Schema.Attribute.Media<"images"> & Schema.Attribute.Required; - title: Schema.Attribute.String & Schema.Attribute.Required; + banner: Schema.Attribute.Media<"images">; + title: Schema.Attribute.String; }; } @@ -196,10 +189,10 @@ export interface ItemsNavbarItems extends Struct.ComponentSchema { }; attributes: { default_active_child: Schema.Attribute.String; - name: Schema.Attribute.String; + name: Schema.Attribute.String & Schema.Attribute.Required; navbar_sub_items: Schema.Attribute.Component<"items.navbar-sub-items", true>; page: Schema.Attribute.Relation<"oneToOne", "api::page.page">; - URL: Schema.Attribute.String; + URL: Schema.Attribute.String & Schema.Attribute.Required; }; } @@ -226,7 +219,7 @@ export interface SharedEmphasiseArticle extends Struct.ComponentSchema { }; attributes: { articles: Schema.Attribute.Relation<"oneToMany", "api::article.article">; - base_url: Schema.Attribute.String & Schema.Attribute.DefaultTo<"">; + link_to_articles: Schema.Attribute.String & Schema.Attribute.DefaultTo<"">; }; } @@ -238,7 +231,8 @@ export interface SharedList extends Struct.ComponentSchema { icon: "apps"; }; attributes: { - lookup: Schema.Attribute.Relation<"oneToOne", "api::collection-lookup.collection-lookup">; + lookup: Schema.Attribute.Relation<"oneToOne", "api::collection-lookup.collection-lookup"> & + Schema.Attribute.Required; }; } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 4904cc4..8e554f6 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -373,16 +373,20 @@ export interface ApiCollectionLookupCollectionLookup extends Struct.CollectionTy Schema.Attribute.Required; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; - date_list: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo; - enable_detail: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo; - image_item: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo; - inverse_count: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo; + enable_detail: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo; + items_with_number: Schema.Attribute.Enumeration<["none", "numbered", "inverted"]> & + Schema.Attribute.Required & + Schema.Attribute.DefaultTo<"none">; + list_with_date: Schema.Attribute.Enumeration<["none", "by-year", "by-month"]> & + Schema.Attribute.Required & + Schema.Attribute.DefaultTo<"none">; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation<"oneToMany", "api::collection-lookup.collection-lookup"> & Schema.Attribute.Private; - numbered_item: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo; publishedAt: Schema.Attribute.DateTime; reference: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.Unique; + show_date: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo; + show_image: Schema.Attribute.Boolean & Schema.Attribute.DefaultTo; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; }; @@ -431,10 +435,11 @@ export interface ApiGlobalGlobal extends Struct.SingleTypeSchema { attributes: { createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; - footer: Schema.Attribute.Component<"global.footer", false> & Schema.Attribute.Required; + footer: Schema.Attribute.Component<"global.footer", false>; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation<"oneToMany", "api::global.global"> & Schema.Attribute.Private; - navbar: Schema.Attribute.Component<"global.navbar", false> & Schema.Attribute.Required; + logo: Schema.Attribute.Media<"images"> & Schema.Attribute.Required; + navbar: Schema.Attribute.Component<"global.navbar", false>; publishedAt: Schema.Attribute.DateTime; SEO: Schema.Attribute.Component<"global.seo", false>; updatedAt: Schema.Attribute.DateTime; @@ -459,13 +464,13 @@ export interface ApiHomepageHomepage extends Struct.SingleTypeSchema { [ "dynamic-zone.spacer", "dynamic-zone.section", + "dynamic-zone.embedding", + "dynamic-zone.file-download", "dynamic-zone.gallery", "dynamic-zone.full-text", "dynamic-zone.full-image", "dynamic-zone.dual-column-text", "dynamic-zone.column-image-text", - "dynamic-zone.file-download", - "dynamic-zone.embedding", "shared.emphasise-article", "shared.list", ] @@ -538,7 +543,7 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema { >; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; - hero: Schema.Attribute.Component<"items.hero", false>; + hero: Schema.Attribute.Component<"items.hero", false> & Schema.Attribute.Required; identifier: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.Unique; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation<"oneToMany", "api::page.page"> & Schema.Attribute.Private; @@ -565,7 +570,7 @@ export interface ApiVehicleVehicle extends Struct.CollectionTypeSchema { content: Schema.Attribute.Blocks; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; - date: Schema.Attribute.DateTime; + date: Schema.Attribute.Date & Schema.Attribute.Required; description: Schema.Attribute.String & Schema.Attribute.Required; image: Schema.Attribute.Media<"images">; locale: Schema.Attribute.String & Schema.Attribute.Private;