From 55ae76d4c2c82ec63aea0a0a09e9e43563a6f6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Ta=C3=AFeb?= Date: Thu, 18 Jan 2024 09:15:43 +0100 Subject: [PATCH] feat : add equatorial climate + portee baisse temperature --- .../content-types/fiche-solution/schema.json | 10 +++++++++- .../retour-experience/schema.json | 6 ++++-- .../retour-experience/calendrier.json | 2 +- types/generated/components.d.ts | 1 - types/generated/contentTypes.d.ts | 20 ++++++++++++++++--- 5 files changed, 31 insertions(+), 8 deletions(-) diff --git a/src/api/fiche-solution/content-types/fiche-solution/schema.json b/src/api/fiche-solution/content-types/fiche-solution/schema.json index f5ce256..945915e 100644 --- a/src/api/fiche-solution/content-types/fiche-solution/schema.json +++ b/src/api/fiche-solution/content-types/fiche-solution/schema.json @@ -110,7 +110,7 @@ }, "type": "decimal", "min": 0, - "required": true + "required": false }, "contexte_titre": { "pluginOptions": { @@ -303,6 +303,14 @@ "unique": false, "min": 0, "required": true + }, + "portee_baisse_temperature": { + "type": "enumeration", + "enum": [ + "air", + "surface", + "interieur" + ] } } } diff --git a/src/api/retour-experience/content-types/retour-experience/schema.json b/src/api/retour-experience/content-types/retour-experience/schema.json index 11df20f..346effc 100644 --- a/src/api/retour-experience/content-types/retour-experience/schema.json +++ b/src/api/retour-experience/content-types/retour-experience/schema.json @@ -81,7 +81,8 @@ "oceanique", "mediterraneen", "semi_aride", - "semi_continental" + "semi_continental", + "equatorial" ] }, "climat_futur": { @@ -95,7 +96,8 @@ "oceanique", "mediterraneen", "semi_aride", - "semi_continental" + "semi_continental", + "equatorial" ] }, "echelle": { diff --git a/src/components/retour-experience/calendrier.json b/src/components/retour-experience/calendrier.json index b3497cb..022d3d3 100644 --- a/src/components/retour-experience/calendrier.json +++ b/src/components/retour-experience/calendrier.json @@ -20,7 +20,7 @@ "output": "HTML", "preset": "light" }, - "required": true, + "required": false, "customField": "plugin::ckeditor.CKEditor" } } diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index 3195898..239a409 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -138,7 +138,6 @@ export interface RetourExperienceCalendrier extends Schema.Component { date: Attribute.String & Attribute.Required; titre: Attribute.String & Attribute.Required; description: Attribute.RichText & - Attribute.Required & Attribute.CustomField< 'plugin::ckeditor.CKEditor', { diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 5bbb774..43c7055 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -947,7 +947,6 @@ export interface ApiFicheSolutionFicheSolution extends Schema.CollectionType { } >; baisse_temperature: Attribute.Decimal & - Attribute.Required & Attribute.SetPluginOptions<{ versions: { versioned: true; @@ -1119,6 +1118,9 @@ export interface ApiFicheSolutionFicheSolution extends Schema.CollectionType { Attribute.SetMinMax<{ min: 0; }>; + portee_baisse_temperature: Attribute.Enumeration< + ['air', 'surface', 'interieur'] + >; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime; @@ -1357,7 +1359,13 @@ export interface ApiRetourExperienceRetourExperience 'api::region.region' >; climat_actuel: Attribute.Enumeration< - ['oceanique', 'mediterraneen', 'semi_aride', 'semi_continental'] + [ + 'oceanique', + 'mediterraneen', + 'semi_aride', + 'semi_continental', + 'equatorial' + ] > & Attribute.SetPluginOptions<{ versions: { @@ -1365,7 +1373,13 @@ export interface ApiRetourExperienceRetourExperience }; }>; climat_futur: Attribute.Enumeration< - ['oceanique', 'mediterraneen', 'semi_aride', 'semi_continental'] + [ + 'oceanique', + 'mediterraneen', + 'semi_aride', + 'semi_continental', + 'equatorial' + ] > & Attribute.SetPluginOptions<{ versions: {