Skip to content

Commit

Permalink
feat : add equatorial climate + portee baisse temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
rtaieb committed Jan 18, 2024
1 parent 63018ef commit 55ae76d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 8 deletions.
10 changes: 9 additions & 1 deletion src/api/fiche-solution/content-types/fiche-solution/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
},
"type": "decimal",
"min": 0,
"required": true
"required": false
},
"contexte_titre": {
"pluginOptions": {
Expand Down Expand Up @@ -303,6 +303,14 @@
"unique": false,
"min": 0,
"required": true
},
"portee_baisse_temperature": {
"type": "enumeration",
"enum": [
"air",
"surface",
"interieur"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"oceanique",
"mediterraneen",
"semi_aride",
"semi_continental"
"semi_continental",
"equatorial"
]
},
"climat_futur": {
Expand All @@ -95,7 +96,8 @@
"oceanique",
"mediterraneen",
"semi_aride",
"semi_continental"
"semi_continental",
"equatorial"
]
},
"echelle": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/retour-experience/calendrier.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"output": "HTML",
"preset": "light"
},
"required": true,
"required": false,
"customField": "plugin::ckeditor.CKEditor"
}
}
Expand Down
1 change: 0 additions & 1 deletion types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand Down
20 changes: 17 additions & 3 deletions types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,6 @@ export interface ApiFicheSolutionFicheSolution extends Schema.CollectionType {
}
>;
baisse_temperature: Attribute.Decimal &
Attribute.Required &
Attribute.SetPluginOptions<{
versions: {
versioned: true;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1357,15 +1359,27 @@ 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: {
versioned: true;
};
}>;
climat_futur: Attribute.Enumeration<
['oceanique', 'mediterraneen', 'semi_aride', 'semi_continental']
[
'oceanique',
'mediterraneen',
'semi_aride',
'semi_continental',
'equatorial'
]
> &
Attribute.SetPluginOptions<{
versions: {
Expand Down

0 comments on commit 55ae76d

Please sign in to comment.