Skip to content

Commit

Permalink
Merge pull request #11 from incubateur-ademe/main
Browse files Browse the repository at this point in the history
feat: webinaire
  • Loading branch information
mehdilouraoui authored Oct 21, 2024
2 parents c8bb46a + 6272179 commit 1e9aa0c
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/api/webinaire/content-types/webinaire/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"kind": "collectionType",
"collectionName": "webinaires",
"info": {
"singularName": "webinaire",
"pluralName": "webinaires",
"displayName": "Webinaire",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"titre": {
"type": "string"
},
"description": {
"type": "customField",
"options": {
"output": "HTML",
"preset": "light"
},
"customField": "plugin::ckeditor.CKEditor"
},
"lien_inscription": {
"type": "string",
"required": false
},
"lien_replay": {
"type": "string"
},
"jour_evenement": {
"type": "date"
},
"heure_debut": {
"type": "time"
},
"heure_fin": {
"type": "time"
}
}
}
7 changes: 7 additions & 0 deletions src/api/webinaire/controllers/webinaire.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* webinaire controller
*/

import { factories } from '@strapi/strapi'

export default factories.createCoreController('api::webinaire.webinaire');
7 changes: 7 additions & 0 deletions src/api/webinaire/routes/webinaire.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* webinaire router
*/

import { factories } from '@strapi/strapi';

export default factories.createCoreRouter('api::webinaire.webinaire');
7 changes: 7 additions & 0 deletions src/api/webinaire/services/webinaire.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* webinaire service
*/

import { factories } from '@strapi/strapi';

export default factories.createCoreService('api::webinaire.webinaire');
45 changes: 45 additions & 0 deletions types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,50 @@ export interface ApiSolutionRetourExperienceSolutionRetourExperience
};
}

export interface ApiWebinaireWebinaire extends Schema.CollectionType {
collectionName: 'webinaires';
info: {
singularName: 'webinaire';
pluralName: 'webinaires';
displayName: 'Webinaire';
description: '';
};
options: {
draftAndPublish: true;
};
attributes: {
titre: Attribute.String;
description: Attribute.RichText &
Attribute.CustomField<
'plugin::ckeditor.CKEditor',
{
output: 'HTML';
preset: 'light';
}
>;
lien_inscription: Attribute.String;
lien_replay: Attribute.String;
jour_evenement: Attribute.Date;
heure_debut: Attribute.Time;
heure_fin: Attribute.Time;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
'api::webinaire.webinaire',
'oneToOne',
'admin::user'
> &
Attribute.Private;
updatedBy: Attribute.Relation<
'api::webinaire.webinaire',
'oneToOne',
'admin::user'
> &
Attribute.Private;
};
}

declare module '@strapi/types' {
export module Shared {
export interface ContentTypes {
Expand Down Expand Up @@ -1885,6 +1929,7 @@ declare module '@strapi/types' {
'api::region.region': ApiRegionRegion;
'api::retour-experience.retour-experience': ApiRetourExperienceRetourExperience;
'api::solution-retour-experience.solution-retour-experience': ApiSolutionRetourExperienceSolutionRetourExperience;
'api::webinaire.webinaire': ApiWebinaireWebinaire;
}
}
}

0 comments on commit 1e9aa0c

Please sign in to comment.