From 337293182b86f8537cf644ce4c46bad6bcca49bc Mon Sep 17 00:00:00 2001 From: julien vdb Date: Fri, 24 Oct 2025 12:40:15 +0200 Subject: [PATCH] 0.11.9 : add create event and field changes --- package.json | 2 +- .../content-types/event-other/schema.json | 42 - .../event-other/controllers/event-other.ts | 7 - src/api/event-other/routes/event-other.ts | 7 - src/api/event-other/services/event-other.ts | 7 - src/api/event/content-types/event/schema.json | 20 +- src/api/event/controllers/create.ts | 20 +- .../1.0.0/full_documentation.json | 1604 +++++------------ types/generated/contentTypes.d.ts | 62 +- 9 files changed, 449 insertions(+), 1322 deletions(-) delete mode 100644 src/api/event-other/content-types/event-other/schema.json delete mode 100644 src/api/event-other/controllers/event-other.ts delete mode 100644 src/api/event-other/routes/event-other.ts delete mode 100644 src/api/event-other/services/event-other.ts diff --git a/package.json b/package.json index 6d0c8ba..5507e01 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "harmony-back", - "version": "0.11.8", + "version": "0.11.9", "private": true, "description": "A Strapi application", "scripts": { diff --git a/src/api/event-other/content-types/event-other/schema.json b/src/api/event-other/content-types/event-other/schema.json deleted file mode 100644 index 14a796f..0000000 --- a/src/api/event-other/content-types/event-other/schema.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "kind": "collectionType", - "collectionName": "event_others", - "info": { - "singularName": "event-other", - "pluralName": "event-others", - "displayName": "EventOther" - }, - "options": { - "draftAndPublish": false - }, - "pluginOptions": {}, - "attributes": { - "title": { - "type": "string" - }, - "public": { - "type": "boolean" - }, - "fromDate": { - "type": "datetime" - }, - "toDate": { - "type": "datetime" - }, - "type": { - "type": "enumeration", - "enum": [ - "concert", - "festival", - "trade show", - "symposium", - "competition", - "masterclass", - "vocal_workshop", - "conference", - "rehearsal", - "outings" - ] - } - } -} diff --git a/src/api/event-other/controllers/event-other.ts b/src/api/event-other/controllers/event-other.ts deleted file mode 100644 index b52ccea..0000000 --- a/src/api/event-other/controllers/event-other.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * event-other controller - */ - -import { factories } from '@strapi/strapi' - -export default factories.createCoreController('api::event-other.event-other'); diff --git a/src/api/event-other/routes/event-other.ts b/src/api/event-other/routes/event-other.ts deleted file mode 100644 index 10898b4..0000000 --- a/src/api/event-other/routes/event-other.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * event-other router - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreRouter('api::event-other.event-other'); diff --git a/src/api/event-other/services/event-other.ts b/src/api/event-other/services/event-other.ts deleted file mode 100644 index ffa537f..0000000 --- a/src/api/event-other/services/event-other.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * event-other service - */ - -import { factories } from '@strapi/strapi'; - -export default factories.createCoreService('api::event-other.event-other'); diff --git a/src/api/event/content-types/event/schema.json b/src/api/event/content-types/event/schema.json index 876ea50..b9f10c7 100644 --- a/src/api/event/content-types/event/schema.json +++ b/src/api/event/content-types/event/schema.json @@ -51,14 +51,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "enumeration", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -69,6 +72,11 @@ }, "isPublic": { "type": "boolean" + }, + "tags": { + "type": "component", + "repeatable": true, + "component": "social.tags" } } } diff --git a/src/api/event/controllers/create.ts b/src/api/event/controllers/create.ts index c6406c0..1284d97 100644 --- a/src/api/event/controllers/create.ts +++ b/src/api/event/controllers/create.ts @@ -23,9 +23,27 @@ export default ({ strapi }: { strapi: Core.Strapi }) => } try { + // Format tags from array of strings to array of component objects + const data = ctx.request.body.data; + if (data.tags && Array.isArray(data.tags)) { + data.tags = data.tags + .filter((tag: any) => { + // Skip if already formatted as object, or if it's null/empty + if (typeof tag === "object") return true; + return tag && String(tag).trim().length > 0; + }) + .map((tag: any) => { + // Convert string tags to component format + if (typeof tag === "string") { + return { tag: tag.trim() }; + } + return tag; + }); + } + // 1. Call the default Strapi create method const event = await strapi.entityService.create("api::event.event", { - data: ctx.request.body.data, + data, }); if (!event) { 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 47847af..7141339 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-10-23T07:52:13.018Z" + "x-generation-date": "2025-10-24T10:39:51.987Z" }, "x-strapi-config": { "plugins": [ @@ -7628,512 +7628,6 @@ "operationId": "delete/events/{id}" } }, - "/event-others": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EventOtherListResponse" - } - } - } - }, - "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": [ - "Event-other" - ], - "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/event-others" - }, - "post": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EventOtherResponse" - } - } - } - }, - "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": [ - "Event-other" - ], - "parameters": [], - "operationId": "post/event-others", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EventOtherRequest" - } - } - } - } - } - }, - "/event-others/{id}": { - "get": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EventOtherResponse" - } - } - } - }, - "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": [ - "Event-other" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "get/event-others/{id}" - }, - "put": { - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EventOtherResponse" - } - } - } - }, - "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": [ - "Event-other" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "put/event-others/{id}", - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EventOtherRequest" - } - } - } - } - }, - "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": [ - "Event-other" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "", - "deprecated": false, - "required": true, - "schema": { - "type": "number" - } - } - ], - "operationId": "delete/event-others/{id}" - } - }, "/event-relationships": { "get": { "responses": { @@ -15864,14 +15358,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -15883,6 +15380,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -18134,6 +17637,17 @@ } } }, + "SocialTagsComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "tag": { + "type": "string" + } + } + }, "UserPermissionsComponent": { "type": "object", "properties": { @@ -18158,17 +17672,6 @@ } } }, - "SocialTagsComponent": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "tag": { - "type": "string" - } - } - }, "AnnouncementRequest": { "type": "object", "required": [ @@ -21460,14 +20963,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -21479,6 +20985,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -25385,14 +24897,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -25404,6 +24919,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -28869,14 +28390,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -28888,6 +28412,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -32801,14 +32331,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -32820,6 +32353,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -36984,14 +36523,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -37003,6 +36545,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -39460,14 +39008,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -39479,6 +39030,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -43382,14 +42939,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -43401,6 +42961,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -47206,14 +46772,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -47225,6 +46794,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -51017,14 +50592,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -51036,6 +50614,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -54864,14 +54448,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -54883,6 +54470,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -58711,14 +58304,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -58730,6 +58326,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -62519,14 +62121,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -62538,6 +62143,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -66508,14 +66119,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -66527,6 +66141,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -68852,14 +68472,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -68871,6 +68494,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "locale": { "type": "string" }, @@ -72133,14 +71762,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -72152,6 +71784,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -72597,14 +72235,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -72616,6 +72257,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -72680,534 +72327,6 @@ } } }, - "EventOtherRequest": { - "type": "object", - "required": [ - "data" - ], - "properties": { - "data": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "public": { - "type": "boolean" - }, - "fromDate": { - "type": "string", - "format": "date-time" - }, - "toDate": { - "type": "string", - "format": "date-time" - }, - "type": { - "type": "string", - "enum": [ - "concert", - "festival", - "trade show", - "symposium", - "competition", - "masterclass", - "vocal_workshop", - "conference", - "rehearsal", - "outings" - ] - }, - "locale": { - "type": "string" - }, - "localizations": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" - } - } - } - } - } - }, - "EventOtherListResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/EventOther" - } - }, - "meta": { - "type": "object", - "properties": { - "pagination": { - "type": "object", - "properties": { - "page": { - "type": "integer" - }, - "pageSize": { - "type": "integer", - "minimum": 25 - }, - "pageCount": { - "type": "integer", - "maximum": 1 - }, - "total": { - "type": "integer" - } - } - } - } - } - } - }, - "EventOther": { - "type": "object", - "properties": { - "id": { - "type": "number" - }, - "documentId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "public": { - "type": "boolean" - }, - "fromDate": { - "type": "string", - "format": "date-time" - }, - "toDate": { - "type": "string", - "format": "date-time" - }, - "type": { - "type": "string", - "enum": [ - "concert", - "festival", - "trade show", - "symposium", - "competition", - "masterclass", - "vocal_workshop", - "conference", - "rehearsal", - "outings" - ] - }, - "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" - }, - "title": { - "type": "string" - }, - "public": { - "type": "boolean" - }, - "fromDate": { - "type": "string", - "format": "date-time" - }, - "toDate": { - "type": "string", - "format": "date-time" - }, - "type": { - "type": "string", - "enum": [ - "concert", - "festival", - "trade show", - "symposium", - "competition", - "masterclass", - "vocal_workshop", - "conference", - "rehearsal", - "outings" - ] - }, - "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" - } - } - } - } - } - } - } - } - }, - "EventOtherResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/EventOther" - }, - "meta": { - "type": "object" - } - } - }, "EventRelationshipRequest": { "type": "object", "required": [ @@ -74903,14 +74022,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -74922,6 +74044,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -79031,14 +78159,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -79050,6 +78181,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -82834,14 +81971,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -82853,6 +81993,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -86661,14 +85807,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -86680,6 +85829,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -90594,14 +89749,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -90613,6 +89771,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -96020,14 +95184,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -96039,6 +95206,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -98412,14 +97585,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -98431,6 +97607,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -102284,14 +101466,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -102303,6 +101488,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" @@ -106116,14 +105307,17 @@ "outings" ] }, - "voice": { + "repertory": { "type": "string", "enum": [ - "soprano", - "alto", - "tenor", - "bass", - "mixed" + "sacred", + "classical", + "pop", + "gospel", + "traditional", + "jazz", + "world_music", + "not_specified" ] }, "description": { @@ -106135,6 +105329,12 @@ "isPublic": { "type": "boolean" }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SocialTagsComponent" + } + }, "createdAt": { "type": "string", "format": "date-time" diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index c8937ed..a2d7bdf 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -918,51 +918,6 @@ export interface ApiDirectMessageDirectMessage }; } -export interface ApiEventOtherEventOther extends Struct.CollectionTypeSchema { - collectionName: 'event_others'; - info: { - displayName: 'EventOther'; - pluralName: 'event-others'; - singularName: 'event-other'; - }; - options: { - draftAndPublish: false; - }; - attributes: { - createdAt: Schema.Attribute.DateTime; - createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & - Schema.Attribute.Private; - fromDate: Schema.Attribute.DateTime; - locale: Schema.Attribute.String & Schema.Attribute.Private; - localizations: Schema.Attribute.Relation< - 'oneToMany', - 'api::event-other.event-other' - > & - Schema.Attribute.Private; - public: Schema.Attribute.Boolean; - publishedAt: Schema.Attribute.DateTime; - title: Schema.Attribute.String; - toDate: Schema.Attribute.DateTime; - type: Schema.Attribute.Enumeration< - [ - 'concert', - 'festival', - 'trade show', - 'symposium', - 'competition', - 'masterclass', - 'vocal_workshop', - 'conference', - 'rehearsal', - 'outings', - ] - >; - updatedAt: Schema.Attribute.DateTime; - updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & - Schema.Attribute.Private; - }; -} - export interface ApiEventRelationshipEventRelationship extends Struct.CollectionTypeSchema { collectionName: 'event_relationships'; @@ -1031,8 +986,21 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema { Schema.Attribute.Private; location: Schema.Attribute.String; publishedAt: Schema.Attribute.DateTime; + repertory: Schema.Attribute.Enumeration< + [ + 'sacred', + 'classical', + 'pop', + 'gospel', + 'traditional', + 'jazz', + 'world_music', + 'not_specified', + ] + >; size: Schema.Attribute.Integer; start: Schema.Attribute.DateTime; + tags: Schema.Attribute.Component<'social.tags', true>; title: Schema.Attribute.String; type: Schema.Attribute.Enumeration< [ @@ -1051,9 +1019,6 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema { updatedAt: Schema.Attribute.DateTime; updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - voice: Schema.Attribute.Enumeration< - ['soprano', 'alto', 'tenor', 'bass', 'mixed'] - >; }; } @@ -1947,7 +1912,6 @@ declare module '@strapi/strapi' { 'api::contact.contact': ApiContactContact; 'api::conversation.conversation': ApiConversationConversation; 'api::direct-message.direct-message': ApiDirectMessageDirectMessage; - 'api::event-other.event-other': ApiEventOtherEventOther; 'api::event-relationship.event-relationship': ApiEventRelationshipEventRelationship; 'api::event.event': ApiEventEvent; 'api::group-membership.group-membership': ApiGroupMembershipGroupMembership;