diff --git a/src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts b/src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts index e40123c..cf7dc30 100644 --- a/src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts +++ b/src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts @@ -9,7 +9,7 @@ import {MatSort} from '@angular/material/sort'; import { CollaborateursService, EpService } from "@shared/api-swagger/api/api"; -import { EpInformationDTO, CollaborateurDTO, ReferentDTO } from "@shared/api-swagger/model/models"; +import { EpInformationDTO, CollaborateurDTO } from "@shared/api-swagger/model/models"; /** * Composant pour gérer l'affichage des détails d'un collaborateur et de ses EP @@ -100,7 +100,7 @@ export class DetailsCollaborateurComponent implements OnInit { ); } - getReferent(referent : ReferentDTO) { + getReferent(referent : CollaborateurDTO) { if(referent == undefined || referent == null) { return "Referent indisponible"} return referent.prenom + " "+ referent.nom; } diff --git a/src/app/formations/details-formation/formation.component.html b/src/app/formations/details-formation/formation.component.html index 331877a..8587b2e 100644 --- a/src/app/formations/details-formation/formation.component.html +++ b/src/app/formations/details-formation/formation.component.html @@ -5,7 +5,7 @@

Informations générales

-

Certifiée

+

Certifiée

Etat : {{formation.statut.libelle}}

Date formation : {{formation.dateDebut | date:'dd/MM/yyyy à hh:mm'}}

Nombre de jours : {{formation.jour}}

diff --git a/src/app/formations/details-formation/formation.component.ts b/src/app/formations/details-formation/formation.component.ts index 392f009..92c7b97 100644 --- a/src/app/formations/details-formation/formation.component.ts +++ b/src/app/formations/details-formation/formation.component.ts @@ -56,8 +56,8 @@ export class FormationComponent implements OnInit { */ initFormation(formation:FormationDTO) { this.formation = formation; - if(formation.participantsFormation != undefined && formation.participantsFormation.length != 0 ) { - this.dataSource = new MatTableDataSource(formation.participantsFormation); + if(formation.participations != undefined && formation.participations.length != 0 ) { + this.dataSource = new MatTableDataSource(formation.participations); } } diff --git a/src/app/formations/edit-formation/edit-formation.component.html b/src/app/formations/edit-formation/edit-formation.component.html index 7677898..a82e598 100644 --- a/src/app/formations/edit-formation/edit-formation.component.html +++ b/src/app/formations/edit-formation/edit-formation.component.html @@ -87,8 +87,8 @@
- - Certifiée + + Certifiée
diff --git a/src/app/formations/edit-formation/edit-formation.component.ts b/src/app/formations/edit-formation/edit-formation.component.ts index 2bb3d50..3a7fb34 100644 --- a/src/app/formations/edit-formation/edit-formation.component.ts +++ b/src/app/formations/edit-formation/edit-formation.component.ts @@ -85,7 +85,7 @@ export class EditFormationComponent implements OnInit { organisme: [""], mode: [""], type: [""], - estCertifie: [""] + estCertifiee: [""] } );*/ } @@ -136,7 +136,7 @@ export class EditFormationComponent implements OnInit { organisme: [formation.organisme], mode: [formation.mode], type: [formation.type], - estCertifie: [formation.estCertifie], + estCertifiee: [formation.estCertifiee], idAgence: [formation.idAgence] } ); diff --git a/src/app/formations/new-formation/new-formation.component.html b/src/app/formations/new-formation/new-formation.component.html index f87c455..a70960f 100644 --- a/src/app/formations/new-formation/new-formation.component.html +++ b/src/app/formations/new-formation/new-formation.component.html @@ -85,8 +85,8 @@
- - Certifiée + + Certifiée
diff --git a/src/app/formations/new-formation/new-formation.component.ts b/src/app/formations/new-formation/new-formation.component.ts index eecd172..39a1553 100644 --- a/src/app/formations/new-formation/new-formation.component.ts +++ b/src/app/formations/new-formation/new-formation.component.ts @@ -71,7 +71,7 @@ export class NewFormationComponent implements OnInit { organisme: [""], mode: [""], type: [""], - estCertifie: [false], + estCertifiee: [false], idAgence: [1] } ); diff --git a/src/app/home/home-rh/home-rh.component.html b/src/app/home/home-rh/home-rh.component.html index eecf9bd..725b7ef 100644 --- a/src/app/home/home-rh/home-rh.component.html +++ b/src/app/home/home-rh/home-rh.component.html @@ -29,7 +29,7 @@ Certifiée - {{estCertifiee(row.estCertifie)}} + {{estCertifiee(row.estCertifiee)}} diff --git a/src/app/home/home-rh/home-rh.component.ts b/src/app/home/home-rh/home-rh.component.ts index 6e3e12a..e5f2f53 100644 --- a/src/app/home/home-rh/home-rh.component.ts +++ b/src/app/home/home-rh/home-rh.component.ts @@ -34,7 +34,7 @@ export class HomeRHComponent implements OnInit { */ parPage = 15; /** - * Permet d'indiquer au serveur sur quel attribut de l'objet ReferentDTO on souhaite faire le tri + * Permet d'indiquer au serveur sur quel attribut de l'objet CollaborateurDTO on souhaite faire le tri */ tri = ""; diff --git a/src/app/referents/details-referent/details-referent.component.ts b/src/app/referents/details-referent/details-referent.component.ts index 916dc98..500c587 100644 --- a/src/app/referents/details-referent/details-referent.component.ts +++ b/src/app/referents/details-referent/details-referent.component.ts @@ -9,7 +9,7 @@ import {MatSort} from '@angular/material/sort'; import { ReferentsService, EpService } from "@shared/api-swagger/api/api"; -import { ReferentDTO, EpDTO } from "@shared/api-swagger/model/models"; +import { CollaborateurDTO, EpDTO } from "@shared/api-swagger/model/models"; /** */ @@ -18,7 +18,7 @@ import { ReferentDTO, EpDTO } from "@shared/api-swagger/model/models"; templateUrl: './details-referent.component.html' }) export class DetailsReferentComponent implements OnInit { - referent: ReferentDTO; + referent: CollaborateurDTO; private referentSubscription : Subscription; idReferent : any; @@ -34,7 +34,7 @@ export class DetailsReferentComponent implements OnInit { ) } - initReferent(referent:ReferentDTO) { + initReferent(referent:CollaborateurDTO) { this.referent = referent; } diff --git a/src/app/referents/referents.component.ts b/src/app/referents/referents.component.ts index a1b8337..a61ed05 100644 --- a/src/app/referents/referents.component.ts +++ b/src/app/referents/referents.component.ts @@ -8,7 +8,7 @@ import {MatSort} from '@angular/material/sort'; import { ReferentsService } from "@shared/api-swagger/api/api"; -import { ReferentDTO } from "@shared/api-swagger/model/models"; +import { CollaborateurDTO } from "@shared/api-swagger/model/models"; /** @@ -48,7 +48,7 @@ export class ReferentsComponent implements OnInit { /** * Objet pour stocker la liste des référents qui seront récupérés par le service référént */ - dataSource : MatTableDataSource; + dataSource : MatTableDataSource; /** * Liste des rôles pour préciser que l'on souhaite récupérer les commerciaux */ @@ -58,7 +58,7 @@ export class ReferentsComponent implements OnInit { */ search = ""; /** - * Permet d'indiquer au serveur sur quel attribut de l'objet ReferentDTO on souhaite faire le tri + * Permet d'indiquer au serveur sur quel attribut de l'objet CollaborateurDTO on souhaite faire le tri */ tri = ""; /** diff --git a/src/app/shared/api-swagger/api/referents.service.ts b/src/app/shared/api-swagger/api/referents.service.ts index 311d4df..9f4b76b 100644 --- a/src/app/shared/api-swagger/api/referents.service.ts +++ b/src/app/shared/api-swagger/api/referents.service.ts @@ -18,7 +18,7 @@ import { CustomHttpUrlEncodingCodec } from '../encoder'; import { Observable } from 'rxjs'; import { ErreurDTO } from '../model/erreurDTO'; -import { ReferentDTO } from '../model/referentDTO'; +import { CollaborateurDTO } from '../model/models'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; import { Configuration } from '../configuration'; diff --git a/src/app/shared/api-swagger/model/affichageNoteDTO.ts b/src/app/shared/api-swagger/model/affichageNoteDTO.ts index 4438e55..1ca19a0 100644 --- a/src/app/shared/api-swagger/model/affichageNoteDTO.ts +++ b/src/app/shared/api-swagger/model/affichageNoteDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,12 +11,27 @@ */ /** - * Note affiché dans un tableau + * DTO concernant l'affichage d'une note dans un tableau. */ export interface AffichageNoteDTO { + /** + * Id de la note + */ id: number; + /** + * Titre de la note + */ titre: string; - idCollaborateur?: string; - collaborateur: string; - dateMiseAjour?: Date; + /** + * Id du collaborateur concerné par la note + */ + idCollaborateur: string; + /** + * Nom et prénom du collaborateur concerné par la note + */ + collaborateur?: string; + /** + * Date à laquelle la note a été mise à jour pour la dernière fois + */ + dateMiseAJour: Date; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/agenceDTO.ts b/src/app/shared/api-swagger/model/agenceDTO.ts index a6cf620..80a0958 100644 --- a/src/app/shared/api-swagger/model/agenceDTO.ts +++ b/src/app/shared/api-swagger/model/agenceDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -12,10 +12,16 @@ import { BusinessUnitDTO } from './businessUnitDTO'; /** - * Une agence de Apside + * DTO contenant l’agence à laquelle appartient le collaborateur. */ export interface AgenceDTO { + /** + * Id de l'agence + */ id: number; + /** + * Nom de l'agence + */ nom: string; bu: Array; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/augmentationSalaireDTO.ts b/src/app/shared/api-swagger/model/augmentationSalaireDTO.ts index 242885c..3c413a1 100644 --- a/src/app/shared/api-swagger/model/augmentationSalaireDTO.ts +++ b/src/app/shared/api-swagger/model/augmentationSalaireDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,11 +11,23 @@ */ /** - * Demande d'augmentation du salaire du collaborateur + * DTO lié à la demande d'augmentation du salaire effectuée lors d'un EP. */ export interface AugmentationSalaireDTO { + /** + * Id de l'augmentation du salaire + */ id: number; + /** + * Pourcentage de l'augmentation du salaire + */ augmentation: number; - primeMission?: number; + /** + * Pourcentage de l'augmentation de la prime de mission + */ + augmentationPrimeMission?: number; + /** + * Message laissé par le référent suite à l'augmentation du salaire + */ message?: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/businessUnitDTO.ts b/src/app/shared/api-swagger/model/businessUnitDTO.ts index b5d9320..5f3c499 100644 --- a/src/app/shared/api-swagger/model/businessUnitDTO.ts +++ b/src/app/shared/api-swagger/model/businessUnitDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -12,10 +12,16 @@ import { AgenceDTO } from './agenceDTO'; /** - * Une business unit d'une agence + * DTO contenant la Business Unit à laquelle appartient le collaborateur. */ export interface BusinessUnitDTO { + /** + * Id de la Business Unit + */ id: number; + /** + * Nom de la Business Unit + */ nom: string; - agence: AgenceDTO; + agence?: AgenceDTO; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/champDTO.ts b/src/app/shared/api-swagger/model/champDTO.ts index c39568c..f660567 100644 --- a/src/app/shared/api-swagger/model/champDTO.ts +++ b/src/app/shared/api-swagger/model/champDTO.ts @@ -2,23 +2,40 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ +import { TypeChamps } from './typeChamps'; +import { TypeSaisie } from './typeSaisie'; /** - * Les champs d'un EP ou d'une évaluation à remplir + * DTO concernant les champs des documents. */ export interface ChampDTO { + /** + * Id du champ + */ id: number; + /** + * Texte du champ + */ texte: string; + /** + * Section à laquelle appartient le champ + */ section: string; + /** + * Sous-section à laquelle appartient le champ + */ soussection?: string; + /** + * Ordre du champ dans sa section ou sous-section + */ ordre: number; - typeChamp: string; - typeSaisie: string; + typeChamp: TypeChamps; + typeSaisie: TypeSaisie; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/collaborateurDTO.ts b/src/app/shared/api-swagger/model/collaborateurDTO.ts index 90d3760..540749d 100644 --- a/src/app/shared/api-swagger/model/collaborateurDTO.ts +++ b/src/app/shared/api-swagger/model/collaborateurDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -10,18 +10,35 @@ * Do not edit the class manually. */ import { BusinessUnitDTO } from './businessUnitDTO'; -import { ReferentDTO } from './referentDTO'; /** - * Les informations d'un collaborateur + * DTO contenant les données du collaborateur. */ export interface CollaborateurDTO { + /** + * Id du collaborateur + */ id: string; + /** + * Nom du collaborateur + */ nom: string; + /** + * Prénom du collaborateur + */ prenom: string; + /** + * Mail Apside du collaborateur + */ mailApside: string; + /** + * Date à laquelle le collaborateur a été embauché + */ dateArrivee: Date; + /** + * Date à laquelle le collaborateur a quitté l'entreprise + */ dateDepart?: Date; businessUnit?: BusinessUnitDTO; - referent?: ReferentDTO; + referent?: CollaborateurDTO; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/commentaireAssistantDTO.ts b/src/app/shared/api-swagger/model/commentaireAssistantDTO.ts new file mode 100644 index 0000000..e8bc6fa --- /dev/null +++ b/src/app/shared/api-swagger/model/commentaireAssistantDTO.ts @@ -0,0 +1,29 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * DTO contenant le commentaire d'un assistant sur l'EP. + */ +export interface CommentaireAssistantDTO { + /** + * Id du commentaire assistant + */ + id?: number; + /** + * Id de l'assistant qui a écrit le commentaire + */ + idAssistante?: string; + /** + * Le commentaire de l’assistant + */ + commentaire: string; +} \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/creationDemandeDelegationDTO.ts b/src/app/shared/api-swagger/model/creationDemandeDelegationDTO.ts deleted file mode 100644 index c44fa62..0000000 --- a/src/app/shared/api-swagger/model/creationDemandeDelegationDTO.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * API du serveur de l'application de digitalisation des EP - * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. - * - * OpenAPI spec version: 1.3.5 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ -import { CollaborateurDTO } from './collaborateurDTO'; - -/** - * Objet à envoyer lorsqu'un référent fait une demande de délégation - */ -export interface CreationDemandeDelegationDTO { - idEp?: number; - idReferent?: CollaborateurDTO; - raisonDemande: string; -} \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/demandeDelegationDTO.ts b/src/app/shared/api-swagger/model/demandeDelegationDTO.ts index 323e51d..a8a6606 100644 --- a/src/app/shared/api-swagger/model/demandeDelegationDTO.ts +++ b/src/app/shared/api-swagger/model/demandeDelegationDTO.ts @@ -2,23 +2,42 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ +import { CollaborateurDTO } from './collaborateurDTO'; import { EpInformationDTO } from './epInformationDTO'; +import { EtatDemande } from './etatDemande'; /** - * Les détails d'une demande de délégation d'un EP + * DTO pour la gestion des demandes de délégation. */ export interface DemandeDelegationDTO { - id: number; + /** + * Id de le demande de délégation + */ + id?: number; + referent: CollaborateurDTO; ep: EpInformationDTO; + /** + * Date à laquelle la demande de délégation a été effectuée + */ dateDemande: Date; - reponse?: boolean; + /** + * Raison pour laquelle la demande a été effectuée + */ + raisonDemande: string; + etatDemande: EtatDemande; + /** + * Date à laquelle la réponse a été donnée + */ dateReponse?: Date; + /** + * Raison pour laquelle la demande a été refusée + */ raisonRefus?: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/demandeEPIDTO.ts b/src/app/shared/api-swagger/model/demandeEPIDTO.ts index 8907243..6534fb6 100644 --- a/src/app/shared/api-swagger/model/demandeEPIDTO.ts +++ b/src/app/shared/api-swagger/model/demandeEPIDTO.ts @@ -2,26 +2,39 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ +import { CollaborateurDTO } from './collaborateurDTO'; import { EpInformationDTO } from './epInformationDTO'; +import { EtatDemande } from './etatDemande'; /** - * Demande d'EPI faite par un collaborateur + * DTO pour afficher et gérer les demandes d'EPI. */ export interface DemandeEPIDTO { - id: number; - idCollaborateur: string; - idReferent: string; + /** + * Id de la demande d'EPI + */ + id?: number; + collaborateur: CollaborateurDTO; + referent?: CollaborateurDTO; + /** + * Date à laquelle la demande d'EPI a été effectué + */ dateDemande: Date; - etat?: number; - reponse?: boolean; + etatDemande: EtatDemande; + /** + * Date à laquelle le référent a répondu + */ dateReponse?: Date; + /** + * Raison pour laquelle la demande d'EPI a été rejeté + */ raisonRefus?: string; ep?: EpInformationDTO; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/demandeFormationDTO.ts b/src/app/shared/api-swagger/model/demandeFormationDTO.ts index 66b1a8b..cd61148 100644 --- a/src/app/shared/api-swagger/model/demandeFormationDTO.ts +++ b/src/app/shared/api-swagger/model/demandeFormationDTO.ts @@ -2,28 +2,54 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ +import { CollaborateurDTO } from './collaborateurDTO'; import { EpInformationDTO } from './epInformationDTO'; -import { ThemeDTO } from './themeDTO'; +import { EtatDemande } from './etatDemande'; +import { FormationDTO } from './formationDTO'; +import { OrigineDemandeFormationDTO } from './origineDemandeFormationDTO'; /** - * Les détails d'une demande de formation + * DTO permettant de gérer les demandes de formation. */ export interface DemandeFormationDTO { - id: number; + /** + * Id de la demande de formation + */ + id?: number; + /** + * Libellé de la demande de formation + */ libelle: string; + /** + * Description détaillée de la demande de formation + */ description: string; + /** + * Indique s'il s'agit d'une demande de formation créée par une RH ou non + */ demandeRH: boolean; + /** + * Date à laquelle la demande a été effectuée + */ dateDemande: Date; - reponse?: boolean; + etatDemande: EtatDemande; + /** + * Commentaire expliquant la raison pour laquelle la demande de formation a été refusée + */ commentaireRefus?: string; + /** + * Date à laquelle la demande de formation a reçu une réponse pour la dernière fois + */ dateDerniereReponse?: Date; - theme: ThemeDTO; - ep: EpInformationDTO; + origine?: OrigineDemandeFormationDTO; + collaborateur?: CollaborateurDTO; + ep?: EpInformationDTO; + formation?: FormationDTO; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/detailsNoteDTO.ts b/src/app/shared/api-swagger/model/detailsNoteDTO.ts index e77a36b..bb1a55e 100644 --- a/src/app/shared/api-swagger/model/detailsNoteDTO.ts +++ b/src/app/shared/api-swagger/model/detailsNoteDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -12,14 +12,32 @@ import { CollaborateurDTO } from './collaborateurDTO'; /** - * Détails d'une note que peut prendre un commercial, un delivery ou un RA sur un collaborateur + * DTO contenant le détail complet d’une note. */ export interface DetailsNoteDTO { - id: number; + /** + * Id de la note + */ + id?: number; + /** + * Titre de la note + */ titre: string; + /** + * Contenu de la note + */ texte: string; + /** + * Id du référent qui a écrit cette note + */ idAuteur: string; collaborateur: CollaborateurDTO; - dateCreation?: Date; - dateMiseAjour?: Date; + /** + * Date à laquelle la note a été créée + */ + dateCreation: Date; + /** + * Date à laquelle la note a été mise à jour pour la dernière fois + */ + dateMiseAjour: Date; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/documentDTO.ts b/src/app/shared/api-swagger/model/documentDTO.ts index f5510f3..54a3c4b 100644 --- a/src/app/shared/api-swagger/model/documentDTO.ts +++ b/src/app/shared/api-swagger/model/documentDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -10,12 +10,16 @@ * Do not edit the class manually. */ import { SaisieDTO } from './saisieDTO'; +import { TypeChamps } from './typeChamps'; /** - * Un document pour récupérer les saisies et leur champ en fonction du type de l'EP qui peut être EPS, EPA ou EPASIXANS + * DTO permettant de faire le lien entre les saisies (EPS ou EPA...) avec l'EP. */ export interface DocumentDTO { + /** + * Id du document + */ id: number; - type: string; - saisies?: Array; + typeDocument: TypeChamps; + saisies: Array; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/engagementDTO.ts b/src/app/shared/api-swagger/model/engagementDTO.ts index fd04263..0bcdc85 100644 --- a/src/app/shared/api-swagger/model/engagementDTO.ts +++ b/src/app/shared/api-swagger/model/engagementDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -10,18 +10,36 @@ * Do not edit the class manually. */ import { EpInformationDTO } from './epInformationDTO'; +import { EtatEngagement } from './etatEngagement'; /** - * Les détails d'un engagement pris par un référent pour un EP + * DTO concernant les engagements pris par le référent lors de l'EP. */ export interface EngagementDTO { + /** + * Id de l'engagement + */ id: number; + /** + * Action de l'engagement + */ action: string; - modalite: string; + /** + * Dispositif à mettre en place pour respecter l'engagement dans les temps + */ dispositif: string; - datePrevisionnelle: Date; - realisable?: boolean; - realise?: boolean; + /** + * ”Sur temps de travail” ou ”Hors-temps” + */ + modalite: string; + /** + * Date limite pour respecter l'engagement + */ + dateLimite: Date; + etatEngagement?: EtatEngagement; + /** + * Raison pour laquelle l'engagement ne sera pas respecté + */ raisonNonRealisable?: string; ep?: EpInformationDTO; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/epDTO.ts b/src/app/shared/api-swagger/model/epDTO.ts index 96ee9d6..e1bd137 100644 --- a/src/app/shared/api-swagger/model/epDTO.ts +++ b/src/app/shared/api-swagger/model/epDTO.ts @@ -2,8 +2,8 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 - * + * OpenAPI spec version: 1.3.6 + * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git @@ -11,7 +11,9 @@ */ import { AugmentationSalaireDTO } from './augmentationSalaireDTO'; import { CollaborateurDTO } from './collaborateurDTO'; +import { CommentaireAssistantDTO } from './commentaireAssistantDTO'; import { DemandeDelegationDTO } from './demandeDelegationDTO'; +import { DemandeEPIDTO } from './demandeEPIDTO'; import { DemandeFormationDTO } from './demandeFormationDTO'; import { DocumentDTO } from './documentDTO'; import { EngagementDTO } from './engagementDTO'; @@ -19,34 +21,61 @@ import { ObjectifDTO } from './objectifDTO'; import { ObjectifPrecedentDTO } from './objectifPrecedentDTO'; import { ParticipationEPDTO } from './participationEPDTO'; import { RDVEntretienDTO } from './rDVEntretienDTO'; -import { ReferentDTO } from './referentDTO'; +import { StatutEp } from './statutEp'; import { TypeEntretienDTO } from './typeEntretienDTO'; +import { TypeEp } from './typeEp'; /** - * Tous les détails d'un EP lorsqu'il est consulté + * DTO contenant l'ensemble des informations d'un EP. */ -export interface EpDTO { +export interface EpDTO { + /** + * Id de l’EP + */ id: number; - type: string; + type: TypeEp; + /** + * Date à partir de laquelle l'EP peut être saisi + */ dateDisponibilite: Date; + /** + * Date à laquelle l'EP est prévu, la date par défaut est celle de l'anniversaire du collaborateur (+6 mois pour EPS) + */ datePrevisionnelle: Date; + /** + * Date à laquelle le collaborateur a signé l'EP + */ + dateSignatureCollaborateur?: Date; + /** + * Date à laquelle le référent a signé l'EP + */ + dateSignatureReferent?: Date; + /** + * Date à laquelle l’EP a été saisi par le collaborateur + */ dateSaisie?: Date; - statut: number; + statut: StatutEp; + /** + * Nom du CV Apside du collaborateur + */ cv: string; propositionsEntretien?: Array; rdvEntretien?: RDVEntretienDTO; choixTypeEntretien?: TypeEntretienDTO; + /** + * Indique si oui ou non l'EP doit obligatoirement être effectué + */ obligatoire: boolean; - objectif?: Array; - objectifPrecedent?: Array; - commentaireAssistant?: string; - commentaireCommercial?: string; - collaborateur: CollaborateurDTO; - referent: ReferentDTO; + objectifs: Array; + objectifsPrecedent?: Array; + collaborateur?: CollaborateurDTO; + referent?: CollaborateurDTO; demandesFormation?: Array; participants?: Array; engagements?: Array; augmentationSalaire?: AugmentationSalaireDTO; demandesDelegation?: Array; + demandeEPI?: DemandeEPIDTO; documents: Array; -} + commentairesAssistant?: Array; +} \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/epInformationDTO.ts b/src/app/shared/api-swagger/model/epInformationDTO.ts index b1526af..d559945 100644 --- a/src/app/shared/api-swagger/model/epInformationDTO.ts +++ b/src/app/shared/api-swagger/model/epInformationDTO.ts @@ -2,26 +2,39 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 - * + * OpenAPI spec version: 1.3.6 + * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { CollaborateurDTO } from './collaborateurDTO'; -import { ReferentDTO } from './ReferentDTO'; +import { StatutEp } from './statutEp'; +import { TypeEp } from './typeEp'; /** - * Les informations de base d'un EP + * DTO permettant d'afficher les informations utiles d'un EP dans un tableau. */ -export interface EpInformationDTO { +export interface EpInformationDTO { + /** + * Id de l'EP + */ id: number; - type: number; - statut: number; + type: TypeEp; + statut: StatutEp; + /** + * Date à partir de laquelle l'EP peut être saisi + */ dateDisponibilite: Date; + /** + * Date à laquelle l'EP est prévu, la date par défaut est celle de l'anniversaire du collaborateur (+6 mois pour EPS) + */ datePrevisionnelle: Date; + /** + * Indique si oui ou non l'EP doit obligatoirement être effectué + */ obligatoire: boolean; - collaborateur: CollaborateurDTO; - referent: ReferentDTO; -} + collaborateur?: CollaborateurDTO; + referent?: CollaborateurDTO; +} \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/epSaisieDTO.ts b/src/app/shared/api-swagger/model/epSaisieDTO.ts index 7862999..2eebca3 100644 --- a/src/app/shared/api-swagger/model/epSaisieDTO.ts +++ b/src/app/shared/api-swagger/model/epSaisieDTO.ts @@ -2,29 +2,50 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ +import { AugmentationSalaireDTO } from './augmentationSalaireDTO'; import { DocumentDTO } from './documentDTO'; +import { EngagementDTO } from './engagementDTO'; import { ObjectifDTO } from './objectifDTO'; import { ObjectifPrecedentDTO } from './objectifPrecedentDTO'; import { TypeEntretienDTO } from './typeEntretienDTO'; +import { TypeEp } from './typeEp'; /** - * Objet de l'EP au moment de la saisie du collaborateur + * DTO utilisé lors de la saisie du collaborateur ou du référent. */ export interface EpSaisieDTO { + /** + * Id de l’EP + */ id: number; - type: string; - datePrevisionnelle: Date; + type: TypeEp; + /** + * Nom du CV Apside du collaborateur + */ cv?: string; choixEntretien?: TypeEntretienDTO; + /** + * Indique si oui ou non l'EP doit obligatoirement être effectué + */ obligatoire: boolean; - objectif?: Array; - objectifPrecedent?: Array; + objectifs?: Array; + objectifsPrecedent?: Array; + /** + * Id du collaborateur qui passe son EP + */ + idCollaborateur?: string; + /** + * Id du référent actuel de l'EP + */ + idReferent?: string; + engagements?: Array; + augmentationSalaire?: AugmentationSalaireDTO; documents: Array; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/erreurDTO.ts b/src/app/shared/api-swagger/model/erreurDTO.ts index 6c0a095..f1120ce 100644 --- a/src/app/shared/api-swagger/model/erreurDTO.ts +++ b/src/app/shared/api-swagger/model/erreurDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,9 +11,15 @@ */ /** - * Objet pour la gestion des erreurs + * Classe pour la gestion et l'affichage des erreurs. */ export interface ErreurDTO { - code: string; + /** + * Code Erreur + */ + code: number; + /** + * Message d'erreur + */ message: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/etatDemande.ts b/src/app/shared/api-swagger/model/etatDemande.ts new file mode 100644 index 0000000..af195be --- /dev/null +++ b/src/app/shared/api-swagger/model/etatDemande.ts @@ -0,0 +1,22 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * Correspond à l'état d'une demande comme une demande de formation ou une demande de délégation: * `EnAttente` - Aucune réponse n'a encore été donnée * `Validee` - La demande a été acceptée * `Rejetee` - La demande a été rejeté + */ +export type EtatDemande = 'EnAttente' | 'Validee' | 'Rejetee'; + +export const EtatDemande = { + EnAttente: 'EnAttente' as EtatDemande, + Validee: 'Validee' as EtatDemande, + Rejetee: 'Rejetee' as EtatDemande +}; \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/etatEngagement.ts b/src/app/shared/api-swagger/model/etatEngagement.ts new file mode 100644 index 0000000..ac12563 --- /dev/null +++ b/src/app/shared/api-swagger/model/etatEngagement.ts @@ -0,0 +1,23 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * Correspond à l'état d'un engagement pris: * `EnAttente` - Aucune réponse n'a encore été donnée * `Respecte` - L'engagement a été respecté dans les temps * `NonRealisable` - L'engagement ne sera pas réalisable dans les temps * `DateLimitePassee` - La date limite pour respecter l'engagement est passée + */ +export type EtatEngagement = 'EnAttente' | 'Respecte' | 'NonRealisable' | 'DateLimitePassee'; + +export const EtatEngagement = { + EnAttente: 'EnAttente' as EtatEngagement, + Respecte: 'Respecte' as EtatEngagement, + NonRealisable: 'NonRealisable' as EtatEngagement, + DateLimitePassee: 'DateLimitePassee' as EtatEngagement +}; \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/evaluationDTO.ts b/src/app/shared/api-swagger/model/evaluationDTO.ts index 5261e74..6e7a73c 100644 --- a/src/app/shared/api-swagger/model/evaluationDTO.ts +++ b/src/app/shared/api-swagger/model/evaluationDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -12,9 +12,24 @@ import { SaisieDTO } from './saisieDTO'; /** - * Evaluation d'une participation formation + * DTO pour les évaluations concernant les formations. */ export interface EvaluationDTO { - idParticipation: number; + /** + * Id de la participation à la formation + */ + id: number; + /** + * Intitulé de la formation + */ + intitule: string; + /** + * Date de début de la formation + */ + dateDebut: Date; + /** + * Indique si la formation est certifiée ou non + */ + estCertifiee: boolean; saisies: Array; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/formationDTO.ts b/src/app/shared/api-swagger/model/formationDTO.ts index 60ab643..5bbc880 100644 --- a/src/app/shared/api-swagger/model/formationDTO.ts +++ b/src/app/shared/api-swagger/model/formationDTO.ts @@ -2,35 +2,66 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 - * + * OpenAPI spec version: 1.3.6 + * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ -import { ParticipationFormationDTO } from './participationFormationDTO'; +import { FormationDTOParticipations } from './formationDTOParticipations'; import { ModeFormationDTO } from './modeFormationDTO'; import { OrigineFormationDTO } from './origineFormationDTO'; import { StatutFormationDTO } from './statutFormationDTO'; import { TypeFormationDTO } from './typeFormationDTO'; /** - * Toutes les informations d'une formation + * DTO pour la gestion des formations. */ -export interface FormationDTO { - id: number; +export interface FormationDTO { + /** + * Id de la formation + */ + id?: number; + /** + * Intitulé de la formation + */ intitule: string; origine: OrigineFormationDTO; - statut?: StatutFormationDTO; - idAgence?: number; + statut: StatutFormationDTO; + /** + * Id de l'agence de la RH qui a créé la formation + */ + idAgence: number; + /** + * Date de la première séance de la formation + */ dateDebut: Date; + /** + * Date de la dernière séance de la formation + */ dateFin: Date; + /** + * Nombre d'heures total de formation + */ heure: number; + /** + * Nombre de jours total de formation + */ jour: number; + /** + * Organisme en charge d'effectuer la formation + */ organisme: string; mode: ModeFormationDTO; type: TypeFormationDTO; - estCertifie: boolean; - participantsFormation?: Array; -} + /** + * Indique s'il s'agit d'une formation certifiée ou non + */ + estCertifiee: boolean; + /** + * Indique que la formation a bien été effectuée ou non + */ + estRealisee: boolean; + participations?: Array; +} \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/formationDTOParticipations.ts b/src/app/shared/api-swagger/model/formationDTOParticipations.ts new file mode 100644 index 0000000..e4b89ea --- /dev/null +++ b/src/app/shared/api-swagger/model/formationDTOParticipations.ts @@ -0,0 +1,43 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ +import { CollaborateurDTO } from './collaborateurDTO'; +import { EpInformationDTO } from './epInformationDTO'; +import { StatutFormationDTO } from './statutFormationDTO'; + +/** + * DTO concernant la participation à une formation. + */ +export interface FormationDTOParticipations { + /** + * Id de la participation formation + */ + id?: number; + /** + * Date à laquelle la participation a été créée + */ + dateCreation: Date; + /** + * Intitulé de la formation + */ + intitule: string; + /** + * Date de début de la formation + */ + dateDebut: Date; + statut: StatutFormationDTO; + collaborateur: CollaborateurDTO; + /** + * Indique si le collaborateur a effectué l'évaluation de la formation + */ + estEvaluee: boolean; + ep?: EpInformationDTO; +} \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/formationDetailsDTO.ts b/src/app/shared/api-swagger/model/formationDetailsDTO.ts index 9214237..49db21d 100644 --- a/src/app/shared/api-swagger/model/formationDetailsDTO.ts +++ b/src/app/shared/api-swagger/model/formationDetailsDTO.ts @@ -2,28 +2,48 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ -import { ModeFormationDTO } from './modeFormationDTO'; +import { OrigineFormationDTO } from './origineFormationDTO'; import { StatutFormationDTO } from './statutFormationDTO'; -import { TypeFormationDTO } from './typeFormationDTO'; /** - * Les détails d'une formation + * DTO pour l'affichage des détails d'une formation. */ export interface FormationDetailsDTO { - id?: number; + /** + * Id de la formation + */ + id: number; + /** + * Intitulé de la formation + */ intitule: string; - statut?: StatutFormationDTO; + statut: StatutFormationDTO; + /** + * Date de début de la formation + */ dateDebut: Date; + /** + * Date de la dernière séance de la formation + */ dateFin: Date; - nbPartitipants: number; - mode: ModeFormationDTO; - type: TypeFormationDTO; - estCertifie: boolean; + /** + * Organisme en charge d'effectuer la formation + */ + organisme?: string; + /** + * Nombre de participants de la formation + */ + nbParticipations: number; + origine: OrigineFormationDTO; + /** + * Indique si la formation est certifiée ou non + */ + estCertifiee: boolean; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/modeFormationDTO.ts b/src/app/shared/api-swagger/model/modeFormationDTO.ts index 7a91f7e..0d18269 100644 --- a/src/app/shared/api-swagger/model/modeFormationDTO.ts +++ b/src/app/shared/api-swagger/model/modeFormationDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,9 +11,15 @@ */ /** - * Mode d'une formation + * DTO concernant le mode d'une formation. */ export interface ModeFormationDTO { + /** + * Id du mode de formation + */ id: number; + /** + * Libellé du mode de formation + */ libelle: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/models.ts b/src/app/shared/api-swagger/model/models.ts index 786e74b..94c16b6 100644 --- a/src/app/shared/api-swagger/model/models.ts +++ b/src/app/shared/api-swagger/model/models.ts @@ -4,8 +4,7 @@ export * from './augmentationSalaireDTO'; export * from './businessUnitDTO'; export * from './champDTO'; export * from './collaborateurDTO'; -export * from './creationDemandeDelegationDTO'; -export * from './creationDemandeFormationDTO'; +export * from './commentaireAssistantDTO'; export * from './demandeDelegationDTO'; export * from './demandeEPIDTO'; export * from './demandeFormationDTO'; @@ -16,8 +15,11 @@ export * from './epDTO'; export * from './epInformationDTO'; export * from './epSaisieDTO'; export * from './erreurDTO'; +export * from './etatDemande'; +export * from './etatEngagement'; export * from './evaluationDTO'; export * from './formationDTO'; +export * from './formationDTOParticipations'; export * from './formationDetailsDTO'; export * from './modeFormationDTO'; export * from './objectifDTO'; @@ -28,9 +30,13 @@ export * from './participationEPDTO'; export * from './participationFormationDTO'; export * from './prochainEPDTO'; export * from './rDVEntretienDTO'; -export * from './referentDTO'; +export * from './referentEPDTO'; export * from './saisieDTO'; +export * from './statutEp'; export * from './statutFormationDTO'; -export * from './themeDTO'; +export * from './statutObjectif'; +export * from './typeChamps'; export * from './typeEntretienDTO'; +export * from './typeEp'; export * from './typeFormationDTO'; +export * from './typeSaisie'; diff --git a/src/app/shared/api-swagger/model/objectifDTO.ts b/src/app/shared/api-swagger/model/objectifDTO.ts index ba5c72c..3532884 100644 --- a/src/app/shared/api-swagger/model/objectifDTO.ts +++ b/src/app/shared/api-swagger/model/objectifDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,9 +11,15 @@ */ /** - * Les objectifs pris par le collaborateur + * DTO concernant un objectif du collaborateur. */ export interface ObjectifDTO { + /** + * Id de l'objectif + */ id: number; + /** + * Objectif du collaborateur + */ libelle: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/objectifPrecedentDTO.ts b/src/app/shared/api-swagger/model/objectifPrecedentDTO.ts index dbe8e56..340bf33 100644 --- a/src/app/shared/api-swagger/model/objectifPrecedentDTO.ts +++ b/src/app/shared/api-swagger/model/objectifPrecedentDTO.ts @@ -2,20 +2,30 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ +import { StatutObjectif } from './statutObjectif'; /** - * Les objectifs pris par le collaborateur durant le précédent EP + * DTO concernant un objectif du dernier EP effectué par le collaborateur. */ export interface ObjectifPrecedentDTO { + /** + * Id de l'objectif précédent + */ id: number; + /** + * Objectif précédent du collaborateur + */ libelle: string; - atteint: boolean; - commentaire: string; + statutObjectif?: StatutObjectif; + /** + * Commentaire du collaborateur sur l'objectif + */ + commentaire?: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/origineDemandeFormationDTO.ts b/src/app/shared/api-swagger/model/origineDemandeFormationDTO.ts index 9540721..a00a7cb 100644 --- a/src/app/shared/api-swagger/model/origineDemandeFormationDTO.ts +++ b/src/app/shared/api-swagger/model/origineDemandeFormationDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,9 +11,15 @@ */ /** - * Origine d'une demande de formation + * DTO concernant l'origine de la demande de formation. */ export interface OrigineDemandeFormationDTO { + /** + * Id de l'origine de la demande de formation + */ id: number; + /** + * Libellé de l'origine de la demande de formation + */ libelle: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/origineFormationDTO.ts b/src/app/shared/api-swagger/model/origineFormationDTO.ts index fa87842..79e6fc5 100644 --- a/src/app/shared/api-swagger/model/origineFormationDTO.ts +++ b/src/app/shared/api-swagger/model/origineFormationDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,9 +11,15 @@ */ /** - * Origine d'une formation + * DTO concernant l'origine d'une formation. */ export interface OrigineFormationDTO { + /** + * Id de l'origine de la formation + */ id: number; + /** + * Libellé de l'origine de la formation + */ libelle: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/participationEPDTO.ts b/src/app/shared/api-swagger/model/participationEPDTO.ts index 2b1bb66..046033e 100644 --- a/src/app/shared/api-swagger/model/participationEPDTO.ts +++ b/src/app/shared/api-swagger/model/participationEPDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,10 +11,23 @@ */ /** - * Information des participants d'un EP (autre que le référent et le collaborateur) + * DTO concernant les participants supplémentaires d’un EP en dehors du collaborateur et du référent. */ export interface ParticipationEPDTO { - id: number; - idCollaborateur: string; - collaborateur: string; + /** + * Id de la participation + */ + id?: number; + /** + * Id du participant + */ + idParticipant: string; + /** + * Indique si la participation est juste une participation d'un EP en cours ou des prochains EP en plus + */ + estPermanente: boolean; + /** + * Nom et prénom du participant + */ + participant: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/participationFormationDTO.ts b/src/app/shared/api-swagger/model/participationFormationDTO.ts index 9b759b2..f12fb3f 100644 --- a/src/app/shared/api-swagger/model/participationFormationDTO.ts +++ b/src/app/shared/api-swagger/model/participationFormationDTO.ts @@ -2,21 +2,42 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ +import { CollaborateurDTO } from './collaborateurDTO'; +import { EpInformationDTO } from './epInformationDTO'; +import { StatutFormationDTO } from './statutFormationDTO'; +/** + * DTO concernant la participation à une formation. + */ export interface ParticipationFormationDTO { - id: number; + /** + * Id de la participation formation + */ + id?: number; + /** + * Date à laquelle la participation a été créée + */ dateCreation: Date; - formation: string; - date?: Date; - statut?: string; - idCollaborateur?: string; - collaborateur?: string; + /** + * Intitulé de la formation + */ + intitule: string; + /** + * Date de début de la formation + */ + dateDebut: Date; + statut: StatutFormationDTO; + collaborateur: CollaborateurDTO; + /** + * Indique si le collaborateur a effectué l'évaluation de la formation + */ estEvaluee: boolean; + ep?: EpInformationDTO; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/prochainEPDTO.ts b/src/app/shared/api-swagger/model/prochainEPDTO.ts index 422f7d3..2e64187 100644 --- a/src/app/shared/api-swagger/model/prochainEPDTO.ts +++ b/src/app/shared/api-swagger/model/prochainEPDTO.ts @@ -2,21 +2,34 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ +import { TypeChamps } from './typeChamps'; /** - * Objet contenant les détails du prochain EP non saisi du collaborateur + * DTO permettant au collaborateur d'avoir les informations sur la date de son prochain EP. */ export interface ProchainEPDTO { + /** + * Id de l'EP + */ id: number; - type: number; + type: TypeChamps; + /** + * Date à laquelle l'EP est disponible pour être saisi + */ dateDisponibilite: Date; + /** + * Date à laquelle l'EP est prévu, la date par défaut est celle de l'anniversaire du collaborateur (+6 mois pour EPS) + */ datePrevisionnelle: Date; + /** + * Indique si oui ou non l'EP doit obligatoirement être effectué + */ obligatoire: boolean; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/rDVEntretienDTO.ts b/src/app/shared/api-swagger/model/rDVEntretienDTO.ts index c42fa78..0b20db0 100644 --- a/src/app/shared/api-swagger/model/rDVEntretienDTO.ts +++ b/src/app/shared/api-swagger/model/rDVEntretienDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -12,10 +12,16 @@ import { TypeEntretienDTO } from './typeEntretienDTO'; /** - * RDV pour un entretien + * DTO concernant la proposition d’un rendez-vous pour l’entretien professionnel. */ export interface RDVEntretienDTO { - id: number; + /** + * Id du rendez-vous + */ + id?: number; + /** + * Date proposée/prévue pour l'entretien + */ dateEntretien: Date; typeEntretien: TypeEntretienDTO; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/referentDTO.ts b/src/app/shared/api-swagger/model/referentDTO.ts deleted file mode 100644 index 85403f0..0000000 --- a/src/app/shared/api-swagger/model/referentDTO.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * API du serveur de l'application de digitalisation des EP - * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. - * - * OpenAPI spec version: 1.3.5 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ -import { BusinessUnitDTO } from './businessUnitDTO'; - -/** - * Les informations d'un collaborateur - */ -export interface ReferentDTO { - id: string; - nom: string; - prenom: string; - mailApside: string; - businessUnit?: BusinessUnitDTO; -} \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/creationDemandeFormationDTO.ts b/src/app/shared/api-swagger/model/referentEPDTO.ts similarity index 63% rename from src/app/shared/api-swagger/model/creationDemandeFormationDTO.ts rename to src/app/shared/api-swagger/model/referentEPDTO.ts index c2ade48..15f9249 100644 --- a/src/app/shared/api-swagger/model/creationDemandeFormationDTO.ts +++ b/src/app/shared/api-swagger/model/referentEPDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,11 +11,12 @@ */ /** - * Objet à envoyer lors d'une demande de formation + * DTO permettant de gérer les référents EP */ -export interface CreationDemandeFormationDTO { - id: number; - libelle: string; - description: string; - theme: number; +export interface ReferentEPDTO { + /** + * Id du référent + */ + idReferent: string; + idsCollaborateur?: Array; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/saisieDTO.ts b/src/app/shared/api-swagger/model/saisieDTO.ts index f44da89..e46a006 100644 --- a/src/app/shared/api-swagger/model/saisieDTO.ts +++ b/src/app/shared/api-swagger/model/saisieDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -10,16 +10,24 @@ * Do not edit the class manually. */ import { ChampDTO } from './champDTO'; +import { TypeEp } from './typeEp'; /** - * Saisi d'un collaborateur ou d'un référent sur un champ + * DTO concernant la saisie des documents de l'EP. */ export interface SaisieDTO { + /** + * Id de la saisie + */ id: string; - typeSaisie?: number; + /** + * Note saisie + */ note?: number; + /** + * Texte saisi + */ texte?: string; - texte2?: string; - niveau?: number; champ: ChampDTO; + typeSaisie: TypeEp; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/statutEp.ts b/src/app/shared/api-swagger/model/statutEp.ts new file mode 100644 index 0000000..b366720 --- /dev/null +++ b/src/app/shared/api-swagger/model/statutEp.ts @@ -0,0 +1,29 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * Statut ou état dans lequel se trouve l’EP au cours du processus EP: * `Cree` - L'EP a été créé en base de données mais n'est pas encore disponible * `Disponible` - L'EP est disponible pour être saisi par le collaborateur * `Saisi` - L'EP a été saisi par le collaborateur * `DatesProposees` - Des dates d'entretiens ont été proposées par le référent * `AttenteEntretien` - Indique qu’il s’agit d’un EPS * `Effectue` - Le référent a marqué l'EP comme étant effectué et peut accéder à sa saisie * `SignatureReferent` - Le référent a complété en signé l'EP * `Signe` - Le collaborateur a signé l'EP * `Rejete` - Le collaborateur n'a pas effectué la saisie dans les temps ou a refusé l'EP * `Annule` - Une assistante ou le référent a annulé l'EP du collaborateur + */ +export type StatutEp = 'Cree' | 'Disponible' | 'Saisi' | 'DatesProposees' | 'AttenteEntretien' | 'Effectue' | 'SignatureReferent' | 'Signe' | 'Rejete' | 'Annule'; + +export const StatutEp = { + Cree: 'Cree' as StatutEp, + Disponible: 'Disponible' as StatutEp, + Saisi: 'Saisi' as StatutEp, + DatesProposees: 'DatesProposees' as StatutEp, + AttenteEntretien: 'AttenteEntretien' as StatutEp, + Effectue: 'Effectue' as StatutEp, + SignatureReferent: 'SignatureReferent' as StatutEp, + Signe: 'Signe' as StatutEp, + Rejete: 'Rejete' as StatutEp, + Annule: 'Annule' as StatutEp +}; \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/statutFormationDTO.ts b/src/app/shared/api-swagger/model/statutFormationDTO.ts index ef36e13..c1237ae 100644 --- a/src/app/shared/api-swagger/model/statutFormationDTO.ts +++ b/src/app/shared/api-swagger/model/statutFormationDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,9 +11,15 @@ */ /** - * Statut actuel d'une formation + * DTO concernant le statut d’une formation. */ export interface StatutFormationDTO { + /** + * Id du statut de la formation + */ id: number; + /** + * Libellé du statut de la formation + */ libelle: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/statutObjectif.ts b/src/app/shared/api-swagger/model/statutObjectif.ts new file mode 100644 index 0000000..8d178eb --- /dev/null +++ b/src/app/shared/api-swagger/model/statutObjectif.ts @@ -0,0 +1,22 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * Correspond à l'état d'objectif d'un précédent EP: * `Atteint` - L'objectif a été atteint * `Partiel` - L'objectif a été respecté partiellement * `NonAtteint` - L'objectif n'a pas été atteint + */ +export type StatutObjectif = 'Atteint' | 'Partiel' | 'NonAtteint'; + +export const StatutObjectif = { + Atteint: 'Atteint' as StatutObjectif, + Partiel: 'Partiel' as StatutObjectif, + NonAtteint: 'NonAtteint' as StatutObjectif +}; \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/themeDTO.ts b/src/app/shared/api-swagger/model/themeDTO.ts deleted file mode 100644 index df97328..0000000 --- a/src/app/shared/api-swagger/model/themeDTO.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * API du serveur de l'application de digitalisation des EP - * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. - * - * OpenAPI spec version: 1.3.5 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ -import { DemandeFormationDTO } from './demandeFormationDTO'; - -/** - * Thème d'une demande de formation - */ -export interface ThemeDTO { - id: number; - nom: string; - demandesFormation: Array; -} \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/typeChamps.ts b/src/app/shared/api-swagger/model/typeChamps.ts new file mode 100644 index 0000000..fd10b9f --- /dev/null +++ b/src/app/shared/api-swagger/model/typeChamps.ts @@ -0,0 +1,23 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * Indique a quel type de données appartient le champs ou le document: * `EPS` - Il s'agit d'un champ ou d'un document EPS * `EPA` - Il s'agit d'un champ ou d'un document EPA * `EPASIXANS` - Il s'agit d'un champ ou d'un document EPASIXANS * `Evaluation` - Il s'agit de champ lié à l'évaluation d'une formation + */ +export type TypeChamps = 'EPS' | 'EPA' | 'EPASIXANS' | 'Evaluation'; + +export const TypeChamps = { + EPS: 'EPS' as TypeChamps, + EPA: 'EPA' as TypeChamps, + EPASIXANS: 'EPASIXANS' as TypeChamps, + Evaluation: 'Evaluation' as TypeChamps +}; \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/typeEntretienDTO.ts b/src/app/shared/api-swagger/model/typeEntretienDTO.ts index d8224b8..cd02656 100644 --- a/src/app/shared/api-swagger/model/typeEntretienDTO.ts +++ b/src/app/shared/api-swagger/model/typeEntretienDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,9 +11,15 @@ */ /** - * Type de l'entretien d'un EP + * DTO concernant comment l'entretien va se dérouler. */ export interface TypeEntretienDTO { + /** + * Id du type de l'entretien + */ id: number; + /** + * Texte du type de l'entretien + */ libelle: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/typeEp.ts b/src/app/shared/api-swagger/model/typeEp.ts new file mode 100644 index 0000000..f6a90c2 --- /dev/null +++ b/src/app/shared/api-swagger/model/typeEp.ts @@ -0,0 +1,23 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * Type de l’EP que passe le collaborateur: * `EPS` - Indique qu’il s’agit d’un EPS * `EPA` - Indique qu’il s’agit d’un EPA * `EPASIXANS` - Indique qu’il s’agit d’un EPA à 6 ans * `EPASTAFF` - Indique qu’il s’agit d’un EPA que passe un membre du staff + */ +export type TypeEp = 'EPS' | 'EPA' | 'EPASIXANS' | 'EPASTAFF'; + +export const TypeEp = { + EPS: 'EPS' as TypeEp, + EPA: 'EPA' as TypeEp, + EPASIXANS: 'EPASIXANS' as TypeEp, + EPASTAFF: 'EPASTAFF' as TypeEp +}; \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/typeFormationDTO.ts b/src/app/shared/api-swagger/model/typeFormationDTO.ts index 954a95b..f31fe38 100644 --- a/src/app/shared/api-swagger/model/typeFormationDTO.ts +++ b/src/app/shared/api-swagger/model/typeFormationDTO.ts @@ -2,7 +2,7 @@ * API du serveur de l'application de digitalisation des EP * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * - * OpenAPI spec version: 1.3.5 + * OpenAPI spec version: 1.3.6 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -11,9 +11,15 @@ */ /** - * Type d'une formation + * DTO concernant le type d'une formation. */ export interface TypeFormationDTO { + /** + * Id du type de la formation + */ id: number; + /** + * Libellé du type de la formation + */ libelle: string; } \ No newline at end of file diff --git a/src/app/shared/api-swagger/model/typeSaisie.ts b/src/app/shared/api-swagger/model/typeSaisie.ts new file mode 100644 index 0000000..91a3fe8 --- /dev/null +++ b/src/app/shared/api-swagger/model/typeSaisie.ts @@ -0,0 +1,23 @@ +/** + * API du serveur de l'application de digitalisation des EP + * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. + * + * OpenAPI spec version: 1.3.6 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * Type correspondant à la saisie du champs que le collaborateur ou le référent remplit: * `Commentaire` - Un unique texte * `Competence` - Un texte et un niveau * `Notation` - Une note * `Aucun` - Permet d'avoir un champ sans le lié à une saisie dans le cas où les données sont récupérées et traitées directement avec celles en base + */ +export type TypeSaisie = 'Commentaire' | 'Competence' | 'Notation' | 'Aucun'; + +export const TypeSaisie = { + Commentaire: 'Commentaire' as TypeSaisie, + Competence: 'Competence' as TypeSaisie, + Notation: 'Notation' as TypeSaisie, + Aucun: 'Aucun' as TypeSaisie +}; \ No newline at end of file