diff --git a/src/api/parole/content-types/parole/schema.json b/src/api/parole/content-types/parole/schema.json index 3329f3e..a3a1a8c 100644 --- a/src/api/parole/content-types/parole/schema.json +++ b/src/api/parole/content-types/parole/schema.json @@ -152,6 +152,11 @@ }, "karaokeDesktopUrl": { "type": "string" + }, + "stems": { + "type": "component", + "component": "stem.lyen", + "repeatable": true } } } diff --git a/src/components/stem/lyen.json b/src/components/stem/lyen.json new file mode 100644 index 0000000..37b23c5 --- /dev/null +++ b/src/components/stem/lyen.json @@ -0,0 +1,20 @@ +{ + "collectionName": "components_stem_lyens", + "info": { + "displayName": "Stems", + "icon": "database", + "description": "" + }, + "options": {}, + "attributes": { + "url": { + "type": "string", + "required": true + }, + "plateforme": { + "type": "enumeration", + "enum": ["kDrive", "NIYAJ"], + "required": true + } + } +} diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index bf4ee2d..fd501cd 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -59,6 +59,20 @@ export interface SocialRezoSosyal extends Struct.ComponentSchema { }; } +export interface StemLyen extends Struct.ComponentSchema { + collectionName: 'components_stem_lyens'; + info: { + description: ''; + displayName: 'Stems'; + icon: 'database'; + }; + attributes: { + plateforme: Schema.Attribute.Enumeration<['kDrive', 'NIYAJ']> & + Schema.Attribute.Required; + url: Schema.Attribute.String & Schema.Attribute.Required; + }; +} + export interface StoreAlbum extends Struct.ComponentSchema { collectionName: 'components_store_albums'; info: { @@ -122,6 +136,7 @@ declare module '@strapi/strapi' { export interface ComponentSchemas { 'difference.paroles-diff': DifferenceParolesDiff; 'social.rezo-sosyal': SocialRezoSosyal; + 'stem.lyen': StemLyen; 'store.album': StoreAlbum; 'trad.traductions': TradTraductions; 'url.liens': UrlLiens; diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index fe1979b..75bab7d 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -568,6 +568,7 @@ export interface ApiParoleParole extends Struct.CollectionTypeSchema { 'manyToOne', 'api::parole.parole' >; + stems: Schema.Attribute.Component<'stem.lyen', true>; streamAudio: Schema.Attribute.Component<'store.album', true>; streamVideo: Schema.Attribute.Component<'url.liens', true>; titre: Schema.Attribute.String & Schema.Attribute.Required;