From 693aa352a4ac7aa6664cb4e518006744b0221747 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Sun, 3 Nov 2024 11:01:51 +0100 Subject: [PATCH] Lookup table --- .../article/content-types/article/schema.json | 48 +- .../collection-lookup/schema.json | 24 + .../controllers/collection-lookup.ts | 7 + .../routes/collection-lookup.ts | 7 + .../services/collection-lookup.ts | 7 + src/api/event/content-types/event/schema.json | 30 +- .../global/content-types/global/schema.json | 18 +- .../content-types/operation/schema.json | 36 +- src/api/page/content-types/page/schema.json | 30 +- src/components/shared/list.json | 14 +- .../1.0.0/full_documentation.json | 994 +++++++++++++++++- types/generated/components.d.ts | 6 +- types/generated/contentTypes.d.ts | 252 ++--- 13 files changed, 1138 insertions(+), 335 deletions(-) create mode 100644 src/api/collection-lookup/content-types/collection-lookup/schema.json create mode 100644 src/api/collection-lookup/controllers/collection-lookup.ts create mode 100644 src/api/collection-lookup/routes/collection-lookup.ts create mode 100644 src/api/collection-lookup/services/collection-lookup.ts diff --git a/src/api/article/content-types/article/schema.json b/src/api/article/content-types/article/schema.json index 1f8d84a..f8c9d9f 100644 --- a/src/api/article/content-types/article/schema.json +++ b/src/api/article/content-types/article/schema.json @@ -10,46 +10,26 @@ "options": { "draftAndPublish": true }, - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "attributes": { "title": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "string", "required": true }, "description": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "string", "required": true }, "slug": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "uid", "targetField": "title", "required": true }, "content": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "blocks" }, "image": { @@ -62,11 +42,7 @@ "videos", "audios" ], - "pluginOptions": { - "i18n": { - "localized": false - } - } + "pluginOptions": {} }, "attachment": { "type": "media", @@ -77,18 +53,10 @@ "files", "videos" ], - "pluginOptions": { - "i18n": { - "localized": false - } - } + "pluginOptions": {} }, "date": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "date", "required": true } diff --git a/src/api/collection-lookup/content-types/collection-lookup/schema.json b/src/api/collection-lookup/content-types/collection-lookup/schema.json new file mode 100644 index 0000000..47cf802 --- /dev/null +++ b/src/api/collection-lookup/content-types/collection-lookup/schema.json @@ -0,0 +1,24 @@ +{ + "kind": "collectionType", + "collectionName": "collection_lookups", + "info": { + "singularName": "collection-lookup", + "pluralName": "collection-lookups", + "displayName": "Sammlungs Referenz", + "description": "" + }, + "options": { + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "reference": { + "type": "uid", + "required": true + }, + "collection": { + "type": "uid", + "required": true + } + } +} diff --git a/src/api/collection-lookup/controllers/collection-lookup.ts b/src/api/collection-lookup/controllers/collection-lookup.ts new file mode 100644 index 0000000..49231eb --- /dev/null +++ b/src/api/collection-lookup/controllers/collection-lookup.ts @@ -0,0 +1,7 @@ +/** + * collection-lookup controller + */ + +import { factories } from '@strapi/strapi' + +export default factories.createCoreController('api::collection-lookup.collection-lookup'); diff --git a/src/api/collection-lookup/routes/collection-lookup.ts b/src/api/collection-lookup/routes/collection-lookup.ts new file mode 100644 index 0000000..dc73214 --- /dev/null +++ b/src/api/collection-lookup/routes/collection-lookup.ts @@ -0,0 +1,7 @@ +/** + * collection-lookup router + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::collection-lookup.collection-lookup'); diff --git a/src/api/collection-lookup/services/collection-lookup.ts b/src/api/collection-lookup/services/collection-lookup.ts new file mode 100644 index 0000000..7c2e623 --- /dev/null +++ b/src/api/collection-lookup/services/collection-lookup.ts @@ -0,0 +1,7 @@ +/** + * collection-lookup service + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::collection-lookup.collection-lookup'); diff --git a/src/api/event/content-types/event/schema.json b/src/api/event/content-types/event/schema.json index d11e26a..0b72685 100644 --- a/src/api/event/content-types/event/schema.json +++ b/src/api/event/content-types/event/schema.json @@ -10,46 +10,26 @@ "options": { "draftAndPublish": true }, - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "attributes": { "title": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "string", "required": true }, "description": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "string", "required": true }, "slug": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "uid", "targetField": "title", "required": true }, "date": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "datetime", "required": true } diff --git a/src/api/global/content-types/global/schema.json b/src/api/global/content-types/global/schema.json index cfc99ea..b7dc6c3 100644 --- a/src/api/global/content-types/global/schema.json +++ b/src/api/global/content-types/global/schema.json @@ -10,31 +10,19 @@ "options": { "draftAndPublish": true }, - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "attributes": { "navbar": { "type": "component", "repeatable": false, - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "component": "global.navbar", "required": true }, "footer": { "type": "component", "repeatable": false, - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "component": "global.footer" } } diff --git a/src/api/operation/content-types/operation/schema.json b/src/api/operation/content-types/operation/schema.json index b6dcc3b..b11c628 100644 --- a/src/api/operation/content-types/operation/schema.json +++ b/src/api/operation/content-types/operation/schema.json @@ -10,36 +10,20 @@ "options": { "draftAndPublish": true }, - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "attributes": { "title": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "string", "required": true }, "description": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "string", "required": true }, "slug": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "uid", "targetField": "title", "required": true @@ -53,18 +37,10 @@ "files", "videos" ], - "pluginOptions": { - "i18n": { - "localized": false - } - } + "pluginOptions": {} }, "date": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "datetime", "required": true } diff --git a/src/api/page/content-types/page/schema.json b/src/api/page/content-types/page/schema.json index 44b7a81..0c70f37 100644 --- a/src/api/page/content-types/page/schema.json +++ b/src/api/page/content-types/page/schema.json @@ -10,28 +10,16 @@ "options": { "draftAndPublish": true }, - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "attributes": { "identifier": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "string", "required": true, "unique": true }, "slug": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "uid", "targetField": "identifier", "required": true @@ -39,20 +27,12 @@ "hero": { "type": "component", "repeatable": false, - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "component": "shared.hero", "required": false }, "content": { - "pluginOptions": { - "i18n": { - "localized": true - } - }, + "pluginOptions": {}, "type": "dynamiczone", "components": [ "dynamic-zone.gallery", diff --git a/src/components/shared/list.json b/src/components/shared/list.json index 3d3e7f6..ada7676 100644 --- a/src/components/shared/list.json +++ b/src/components/shared/list.json @@ -7,19 +7,15 @@ }, "options": {}, "attributes": { - "list": { - "type": "enumeration", - "enum": [ - "articles", - "events", - "operations" - ], - "required": true - }, "enable_detail": { "type": "boolean", "default": false, "required": true + }, + "sammlungs_referenz": { + "type": "relation", + "relation": "oneToOne", + "target": "api::collection-lookup.collection-lookup" } } } 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 0fdfb06..183985c 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": "2024-11-02T11:42:52.169Z" + "x-generation-date": "2024-11-03T09:14:30.561Z" }, "x-strapi-config": { "plugins": [ @@ -544,6 +544,512 @@ "operationId": "delete/articles/{id}" } }, + "/collection-lookups": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CollectionLookupListResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Collection-lookup" + ], + "parameters": [ + { + "name": "sort", + "in": "query", + "description": "Sort by attributes ascending (asc) or descending (desc)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "pagination[withCount]", + "in": "query", + "description": "Return page/pageSize (default: true)", + "deprecated": false, + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "name": "pagination[page]", + "in": "query", + "description": "Page number (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[pageSize]", + "in": "query", + "description": "Page size (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[start]", + "in": "query", + "description": "Offset value (default: 0)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "pagination[limit]", + "in": "query", + "description": "Number of entities to return (default: 25)", + "deprecated": false, + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "fields", + "in": "query", + "description": "Fields to return (ex: title,author)", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "populate", + "in": "query", + "description": "Relations to return", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "filters", + "in": "query", + "description": "Filters to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "object", + "additionalProperties": true + }, + "style": "deepObject" + }, + { + "name": "locale", + "in": "query", + "description": "Locale to apply", + "deprecated": false, + "required": false, + "schema": { + "type": "string" + } + } + ], + "operationId": "get/collection-lookups" + }, + "post": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CollectionLookupResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Collection-lookup" + ], + "parameters": [], + "operationId": "post/collection-lookups", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CollectionLookupRequest" + } + } + } + } + } + }, + "/collection-lookups/{id}": { + "get": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CollectionLookupResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Collection-lookup" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "get/collection-lookups/{id}" + }, + "put": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CollectionLookupResponse" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Collection-lookup" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "put/collection-lookups/{id}", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CollectionLookupRequest" + } + } + } + } + }, + "delete": { + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "404": { + "description": "Not Found", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "500": { + "description": "Internal Server Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "tags": [ + "Collection-lookup" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "", + "deprecated": false, + "required": true, + "schema": { + "type": "number" + } + } + ], + "operationId": "delete/collection-lookups/{id}" + } + }, "/events": { "get": { "responses": { @@ -5421,6 +5927,473 @@ } } }, + "CollectionLookupRequest": { + "type": "object", + "required": [ + "data" + ], + "properties": { + "data": { + "required": [ + "reference", + "collection" + ], + "type": "object", + "properties": { + "reference": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "localizations": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ], + "example": "string or id" + } + } + } + } + } + }, + "CollectionLookupListResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CollectionLookup" + } + }, + "meta": { + "type": "object", + "properties": { + "pagination": { + "type": "object", + "properties": { + "page": { + "type": "integer" + }, + "pageSize": { + "type": "integer", + "minimum": 25 + }, + "pageCount": { + "type": "integer", + "maximum": 1 + }, + "total": { + "type": "integer" + } + } + } + } + } + } + }, + "CollectionLookup": { + "type": "object", + "required": [ + "reference", + "collection" + ], + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + }, + "reference": { + "type": "string" + }, + "collection": { + "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" + }, + "reference": { + "type": "string" + }, + "collection": { + "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" + } + } + } + } + } + } + } + } + }, + "CollectionLookupResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/CollectionLookup" + }, + "meta": { + "type": "object" + } + } + }, "EventRequest": { "type": "object", "required": [ @@ -7024,16 +7997,19 @@ "shared.list" ] }, - "list": { - "type": "string", - "enum": [ - "articles", - "events", - "operations" - ] - }, "enable_detail": { "type": "boolean" + }, + "sammlungs_referenz": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "documentId": { + "type": "string" + } + } } } }, diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index 98fc0a3..42ced92 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -180,8 +180,10 @@ export interface SharedList extends Struct.ComponentSchema { enable_detail: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo; - list: Schema.Attribute.Enumeration<['articles', 'events', 'operations']> & - Schema.Attribute.Required; + sammlungs_referenz: Schema.Attribute.Relation< + 'oneToOne', + 'api::collection-lookup.collection-lookup' + >; }; } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 815dcbe..04763b5 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -380,68 +380,56 @@ export interface ApiArticleArticle extends Struct.CollectionTypeSchema { options: { draftAndPublish: true; }; - pluginOptions: { - i18n: { - localized: true; - }; - }; attributes: { - attachment: Schema.Attribute.Media<'images' | 'files' | 'videos', true> & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - content: Schema.Attribute.Blocks & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + attachment: Schema.Attribute.Media<'images' | 'files' | 'videos', true>; + content: Schema.Attribute.Blocks; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - date: Schema.Attribute.Date & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - description: Schema.Attribute.String & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + date: Schema.Attribute.Date & Schema.Attribute.Required; + description: Schema.Attribute.String & Schema.Attribute.Required; image: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'> & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; - locale: Schema.Attribute.String; + Schema.Attribute.Required; + locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation< 'oneToMany', 'api::article.article' - >; + > & + Schema.Attribute.Private; publishedAt: Schema.Attribute.DateTime; - slug: Schema.Attribute.UID<'title'> & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - title: Schema.Attribute.String & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + slug: Schema.Attribute.UID<'title'> & Schema.Attribute.Required; + title: Schema.Attribute.String & Schema.Attribute.Required; + updatedAt: Schema.Attribute.DateTime; + updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & + Schema.Attribute.Private; + }; +} + +export interface ApiCollectionLookupCollectionLookup + extends Struct.CollectionTypeSchema { + collectionName: 'collection_lookups'; + info: { + description: ''; + displayName: 'Sammlungs Referenz'; + pluralName: 'collection-lookups'; + singularName: 'collection-lookup'; + }; + options: { + draftAndPublish: true; + }; + attributes: { + collection: Schema.Attribute.UID & Schema.Attribute.Required; + createdAt: Schema.Attribute.DateTime; + createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & + Schema.Attribute.Private; + locale: Schema.Attribute.String & Schema.Attribute.Private; + localizations: Schema.Attribute.Relation< + 'oneToMany', + 'api::collection-lookup.collection-lookup' + > & + Schema.Attribute.Private; + publishedAt: Schema.Attribute.DateTime; + reference: Schema.Attribute.UID & Schema.Attribute.Required; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; @@ -459,46 +447,18 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema { options: { draftAndPublish: true; }; - pluginOptions: { - i18n: { - localized: true; - }; - }; attributes: { createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - date: Schema.Attribute.DateTime & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - description: Schema.Attribute.String & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - locale: Schema.Attribute.String; - localizations: Schema.Attribute.Relation<'oneToMany', 'api::event.event'>; + date: Schema.Attribute.DateTime & Schema.Attribute.Required; + description: Schema.Attribute.String & Schema.Attribute.Required; + locale: Schema.Attribute.String & Schema.Attribute.Private; + localizations: Schema.Attribute.Relation<'oneToMany', 'api::event.event'> & + Schema.Attribute.Private; publishedAt: Schema.Attribute.DateTime; - slug: Schema.Attribute.UID<'title'> & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - title: Schema.Attribute.String & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + slug: Schema.Attribute.UID<'title'> & Schema.Attribute.Required; + title: Schema.Attribute.String & Schema.Attribute.Required; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; @@ -516,30 +476,19 @@ export interface ApiGlobalGlobal extends Struct.SingleTypeSchema { options: { draftAndPublish: true; }; - pluginOptions: { - i18n: { - localized: true; - }; - }; attributes: { createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - footer: Schema.Attribute.Component<'global.footer', false> & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - locale: Schema.Attribute.String; - localizations: Schema.Attribute.Relation<'oneToMany', 'api::global.global'>; + 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 & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + Schema.Attribute.Required; publishedAt: Schema.Attribute.DateTime; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & @@ -598,55 +547,22 @@ export interface ApiOperationOperation extends Struct.CollectionTypeSchema { options: { draftAndPublish: true; }; - pluginOptions: { - i18n: { - localized: true; - }; - }; attributes: { - attachment: Schema.Attribute.Media<'images' | 'files' | 'videos', true> & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: false; - }; - }>; + attachment: Schema.Attribute.Media<'images' | 'files' | 'videos', true>; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - date: Schema.Attribute.DateTime & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - description: Schema.Attribute.String & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - locale: Schema.Attribute.String; + date: Schema.Attribute.DateTime & Schema.Attribute.Required; + description: Schema.Attribute.String & Schema.Attribute.Required; + locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation< 'oneToMany', 'api::operation.operation' - >; + > & + Schema.Attribute.Private; publishedAt: Schema.Attribute.DateTime; - slug: Schema.Attribute.UID<'title'> & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - title: Schema.Attribute.String & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + slug: Schema.Attribute.UID<'title'> & Schema.Attribute.Required; + title: Schema.Attribute.String & Schema.Attribute.Required; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; @@ -664,11 +580,6 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema { options: { draftAndPublish: true; }; - pluginOptions: { - i18n: { - localized: true; - }; - }; attributes: { content: Schema.Attribute.DynamicZone< [ @@ -680,39 +591,19 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema { 'dynamic-zone.column-image-text', 'shared.list', ] - > & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + >; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - hero: Schema.Attribute.Component<'shared.hero', false> & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + hero: Schema.Attribute.Component<'shared.hero', false>; identifier: Schema.Attribute.String & Schema.Attribute.Required & - Schema.Attribute.Unique & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - locale: Schema.Attribute.String; - localizations: Schema.Attribute.Relation<'oneToMany', 'api::page.page'>; + Schema.Attribute.Unique; + locale: Schema.Attribute.String & Schema.Attribute.Private; + localizations: Schema.Attribute.Relation<'oneToMany', 'api::page.page'> & + Schema.Attribute.Private; publishedAt: Schema.Attribute.DateTime; - slug: Schema.Attribute.UID<'identifier'> & - Schema.Attribute.Required & - Schema.Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; + slug: Schema.Attribute.UID<'identifier'> & Schema.Attribute.Required; updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; @@ -1225,6 +1116,7 @@ declare module '@strapi/strapi' { 'admin::transfer-token-permission': AdminTransferTokenPermission; 'admin::user': AdminUser; 'api::article.article': ApiArticleArticle; + 'api::collection-lookup.collection-lookup': ApiCollectionLookupCollectionLookup; 'api::event.event': ApiEventEvent; 'api::global.global': ApiGlobalGlobal; 'api::homepage.homepage': ApiHomepageHomepage;