From 304d095ed2e04110cbc0c2eba3c00c5a177e7466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 14 Apr 2024 07:36:11 +0400 Subject: [PATCH] Add creativeCommons and download to Paroles collection --- .../parole/content-types/parole/schema.json | 22 +++++++++++++++++++ types/generated/contentTypes.d.ts | 4 ++++ 2 files changed, 26 insertions(+) diff --git a/src/api/parole/content-types/parole/schema.json b/src/api/parole/content-types/parole/schema.json index 8735212..0e3b919 100644 --- a/src/api/parole/content-types/parole/schema.json +++ b/src/api/parole/content-types/parole/schema.json @@ -96,6 +96,28 @@ }, "musicBrainzUrl": { "type": "string" + }, + "creativeCommons": { + "type": "enumeration", + "enum": [ + "BY", + "BY-SA", + "BY-ND", + "BY-NC", + "BY-NC-SA", + "BY-NC-ND" + ] + }, + "download": { + "type": "media", + "multiple": true, + "required": false, + "allowedTypes": [ + "audios", + "images", + "videos", + "files" + ] } } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index fabadfa..5cf8687 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -505,6 +505,10 @@ export interface ApiParoleParole extends Schema.CollectionType { difference: Attribute.Component<'difference.paroles-diff', true>; gadeEmbed: Attribute.String; musicBrainzUrl: Attribute.String; + creativeCommons: Attribute.Enumeration< + ['BY', 'BY-SA', 'BY-ND', 'BY-NC', 'BY-NC-SA', 'BY-NC-ND'] + >; + download: Attribute.Media; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime;