From a25909973c8734760de21b79c48d2851dc3bef6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rivi=C3=A8re?= Date: Tue, 30 Sep 2025 22:02:22 +0200 Subject: [PATCH] Video donation page as embed --- .../content-types/donation/schema.json | 9 +- .../1.0.0/full_documentation.json | 268 +----------------- backend/types/generated/contentTypes.d.ts | 4 +- 3 files changed, 6 insertions(+), 275 deletions(-) diff --git a/backend/src/api/donation/content-types/donation/schema.json b/backend/src/api/donation/content-types/donation/schema.json index 5eb7d5b6..67045a32 100644 --- a/backend/src/api/donation/content-types/donation/schema.json +++ b/backend/src/api/donation/content-types/donation/schema.json @@ -23,14 +23,7 @@ "type": "string" }, "banner_video": { - "type": "media", - "multiple": false, - "allowedTypes": [ - "images", - "files", - "videos", - "audios" - ] + "type": "text" }, "introduction_text": { "type": "richtext" diff --git a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 1c622a88..26f8ff37 100644 --- a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/backend/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-09-30T19:28:18.174Z" + "x-generation-date": "2025-09-30T20:01:18.840Z" }, "x-strapi-config": { "plugins": [ @@ -28092,15 +28092,7 @@ "type": "string" }, "banner_video": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "string" - } - ], - "example": "string or id" + "type": "string" }, "introduction_text": { "type": "string" @@ -28201,133 +28193,7 @@ "type": "string" }, "banner_video": { - "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" - } - } - } - } - } + "type": "string" }, "introduction_text": { "type": "string" @@ -28411,133 +28277,7 @@ "type": "string" }, "banner_video": { - "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" - } - } - } - } - } + "type": "string" }, "introduction_text": { "type": "string" diff --git a/backend/types/generated/contentTypes.d.ts b/backend/types/generated/contentTypes.d.ts index 662fa0ca..e4a5a042 100644 --- a/backend/types/generated/contentTypes.d.ts +++ b/backend/types/generated/contentTypes.d.ts @@ -672,9 +672,7 @@ export interface ApiDonationDonation extends Struct.SingleTypeSchema { >; banner_subtitle: Schema.Attribute.String; banner_title: Schema.Attribute.String; - banner_video: Schema.Attribute.Media< - 'images' | 'files' | 'videos' | 'audios' - >; + banner_video: Schema.Attribute.Text; createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private;