diff --git a/src/app/collaborateurs/collaborateurs.component.ts b/src/app/collaborateurs/collaborateurs.component.ts
index c1b4a1b..35e79e1 100644
--- a/src/app/collaborateurs/collaborateurs.component.ts
+++ b/src/app/collaborateurs/collaborateurs.component.ts
@@ -93,7 +93,7 @@ export class CollaborateursComponent implements OnInit {
*/
updateDataSource() {
//récupérer la liste des collaborateur et mettre à jour le tableau
- this.collaborateursDisponiblesSubscription = this.service.getCollaborateurs(this.asc, this.numPage, this.parPage, this.roles, undefined, undefined, this.search, this.tri).subscribe(
+ this.collaborateursDisponiblesSubscription = this.service.getCollaborateurs(this.roles,[1],this.asc, this.numPage, this.parPage, this.search, this.tri).subscribe(
collaborateurs => { console.log(collaborateurs); this.dataSource = new MatTableDataSource(collaborateurs);},
err => console.log(err)
);
diff --git a/src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts b/src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts
index cf7dc30..440919c 100644
--- a/src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts
+++ b/src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts
@@ -110,7 +110,7 @@ export class DetailsCollaborateurComponent implements OnInit {
* La fonction est aussi appelé au début du chargement et à l'utilisation de la barre de recherche.
*/
updateEP() {
- this.epSubscription = this.epService.getEPByCollaborateur(this.asc, this.idCollaborateur, this.numPage, this.parPage, undefined, this.search, this.tri).subscribe(
+ this.epSubscription = this.epService.getEPSignesCollaborateur(this.idCollaborateur).subscribe(
ep =>
{
console.log(ep);
diff --git a/src/app/formations/details-formation/formation.component.html b/src/app/formations/details-formation/formation.component.html
index 8587b2e..efda79c 100644
--- a/src/app/formations/details-formation/formation.component.html
+++ b/src/app/formations/details-formation/formation.component.html
@@ -16,13 +16,13 @@
Type formation : {{ formation.type.libelle}}
-
+
Aucun participant
- 0">
+ 0">
Liste des participants
diff --git a/src/app/formations/formations.component.ts b/src/app/formations/formations.component.ts
index 3959b83..6635e80 100644
--- a/src/app/formations/formations.component.ts
+++ b/src/app/formations/formations.component.ts
@@ -85,30 +85,10 @@ export class FormationsComponent implements OnInit {
}
updateDataSource() {
- switch ((this.etat)) {
- case 0:
- this.formationsDisponiblesSubscription = this.service.getFormations(this.asc,this.numPage, this.parPage, 1, undefined, this.search, this.tri).subscribe(
- formations => this.dataSource = new MatTableDataSource(formations),
- err => console.log(err)
- );
- break;
-
- case 1:
- this.formationsDisponiblesSubscription = this.service.getFormationRealisee(this.asc,this.numPage, this.parPage, 1, this.search, this.tri).subscribe(
- formations => this.dataSource = new MatTableDataSource(formations),
- err => console.log(err)
- );
- break;
- case 2:
- this.formationsDisponiblesSubscription = this.service.getFormationAnnulees(this.asc,this.numPage, this.parPage, 1, this.search, this.tri).subscribe(
- formations => this.dataSource = new MatTableDataSource(formations),
- err => console.log(err)
- );
- break;
- default:
- break;
- }
-
+ this.formationsDisponiblesSubscription = this.service.getFormations(1,[1,2,3,4], this.asc,this.numPage, this.parPage, this.search, this.tri).subscribe(
+ formations => this.dataSource = new MatTableDataSource(formations),
+ err => console.log(err)
+ );
//this.dataSource.paginator = this.paginator;
//this.dataSource.sort = this.sort;
}
diff --git a/src/app/formations/new-formation/new-formation.component.ts b/src/app/formations/new-formation/new-formation.component.ts
index 39a1553..2a6393d 100644
--- a/src/app/formations/new-formation/new-formation.component.ts
+++ b/src/app/formations/new-formation/new-formation.component.ts
@@ -103,7 +103,7 @@ export class NewFormationComponent implements OnInit {
}
ajouterFormation() {
- this.formationSubscription = this.service.ajouterFormation(this.formationForm.value).subscribe(
+ this.formationSubscription = this.service.addFormation(this.formationForm.value).subscribe(
response => {
console.log(response);
this.router.navigate(['/formations',response["id"]]);
diff --git a/src/app/home/home-assistante/home-assistante.component.ts b/src/app/home/home-assistante/home-assistante.component.ts
index c2c57b2..bad3792 100644
--- a/src/app/home/home-assistante/home-assistante.component.ts
+++ b/src/app/home/home-assistante/home-assistante.component.ts
@@ -51,7 +51,7 @@ export class HomeAssistanteComponent implements OnInit, AfterViewInit {
*
* En fonction de son utilisation, pourrait remplacer "choixBU".
*/
- idsBU : number[] = [];
+ idsBU : number[] = [1];
taille = 100;
@@ -110,7 +110,7 @@ export class HomeAssistanteComponent implements OnInit, AfterViewInit {
ngAfterViewInit(){}
updateDataSource() {
- this.epDisponiblesSubscription = this.service.getEPEnCours(this.asc, this.numPage, this.parPage, 1, this.choixBU, this.search, this.tri).
+ this.epDisponiblesSubscription = this.service.getEPEnCours(this.idsBU, this.asc, this.numPage, this.parPage, this.search, this.tri).
subscribe(eps => {
this.dataSource = new MatTableDataSource(eps);
diff --git a/src/app/home/home-rh/home-rh.component.ts b/src/app/home/home-rh/home-rh.component.ts
index e5f2f53..6cf56ec 100644
--- a/src/app/home/home-rh/home-rh.component.ts
+++ b/src/app/home/home-rh/home-rh.component.ts
@@ -93,13 +93,13 @@ export class HomeRHComponent implements OnInit {
updateFormations() {
console.log(this.numPage);
console.log(this.parPage);
- this.formationsDisponiblesSubscription = this.service.getProchainesFormation(this.asc, this.numPage, this.parPage, 1, this.search, this.tri).subscribe(
+ this.formationsDisponiblesSubscription = this.service.getFormations(1,[1,2],this.asc, this.numPage, this.parPage, this.search, this.tri).subscribe(
formations => this.dataSource = new MatTableDataSource(formations),
err => console.log(err)
)
}
- estCertifiee(certifiee) {
+ estCertifiee(certifiee: boolean) {
if(certifiee)
return "Oui";
return "Non";
diff --git a/src/app/referents/details-referent/details-referent.component.ts b/src/app/referents/details-referent/details-referent.component.ts
index 500c587..8fd3761 100644
--- a/src/app/referents/details-referent/details-referent.component.ts
+++ b/src/app/referents/details-referent/details-referent.component.ts
@@ -7,7 +7,7 @@ import {MatTableDataSource} from '@angular/material/table';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
-import { ReferentsService, EpService } from "@shared/api-swagger/api/api";
+import { CollaborateursService, EpService } from "@shared/api-swagger/api/api";
import { CollaborateurDTO, EpDTO } from "@shared/api-swagger/model/models";
@@ -23,12 +23,12 @@ export class DetailsReferentComponent implements OnInit {
idReferent : any;
- constructor(private service:ReferentsService, private route: ActivatedRoute) {}
+ constructor(private service:CollaborateursService, private route: ActivatedRoute) {}
ngOnInit() {
this.idReferent = this.route.snapshot.paramMap.get("id");
- this.referentSubscription = this.service.getReferentById(this.idReferent).subscribe(
+ this.referentSubscription = this.service.getCollaborateurById(this.idReferent).subscribe(
referent => this.initReferent(referent[0]),
err => console.log(err)
)
diff --git a/src/app/referents/referents.component.ts b/src/app/referents/referents.component.ts
index a61ed05..8b8f268 100644
--- a/src/app/referents/referents.component.ts
+++ b/src/app/referents/referents.component.ts
@@ -6,7 +6,7 @@ import {MatTableDataSource} from '@angular/material/table';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
-import { ReferentsService } from "@shared/api-swagger/api/api";
+import { CollaborateursService } from "@shared/api-swagger/api/api";
import { CollaborateurDTO } from "@shared/api-swagger/model/models";
@@ -52,7 +52,7 @@ export class ReferentsComponent implements OnInit {
/**
* Liste des rôles pour préciser que l'on souhaite récupérer les commerciaux
*/
- roles : string[] = ["Commercial"];
+ roles : string[] = ["referent"];
/**
* contenu de la recherche.
*/
@@ -76,7 +76,7 @@ export class ReferentsComponent implements OnInit {
*/
chargement = true;
- constructor(private service: ReferentsService) {}
+ constructor(private service: CollaborateursService) {}
ngOnInit() {
this.updateDataSource();
@@ -87,7 +87,7 @@ export class ReferentsComponent implements OnInit {
* Devra se faire à l'ouverture de la page, au changement de page ou du nombre d'éléments à afficher, au moment d'un tri ou encore lors de l'utilisation de la barre de recherche.
*/
updateDataSource() {
- this.referentsDisponiblesSubscription = this.service.getReferents(this.asc, this.numPage, this.parPage, this.roles, 1, undefined, this.search, this.tri).subscribe(
+ this.referentsDisponiblesSubscription = this.service.getCollaborateurs(this.roles,[1],this.asc, this.numPage, this.parPage, this.search, this.tri).subscribe(
referents => this.dataSource = new MatTableDataSource(referents),
err => console.log(err)
);
diff --git a/src/app/shared/api-swagger/api.module.ts b/src/app/shared/api-swagger/api.module.ts
index 7ab974c..ecba8cd 100644
--- a/src/app/shared/api-swagger/api.module.ts
+++ b/src/app/shared/api-swagger/api.module.ts
@@ -12,12 +12,8 @@ import { EpService } from './api/ep.service';
import { FormationsService } from './api/formations.service';
import { NotesService } from './api/notes.service';
import { ParticipationsFormationsService } from './api/participationsFormations.service';
-import { ReferentsService } from './api/referents.service';
+import { ReferentsEPService } from './api/referentsEP.service';
-/**
- * Module généré par SwaggerHub à partir de la spécification OpenAPI.
- * Lien spécification : https://app.swaggerhub.com/apis/ygrette/api-du_serveur_de_lapplication_de_digitalisation_des_ep/1.3.5
- */
@NgModule({
imports: [],
declarations: [],
@@ -32,7 +28,7 @@ import { ReferentsService } from './api/referents.service';
FormationsService,
NotesService,
ParticipationsFormationsService,
- ReferentsService ]
+ ReferentsEPService ]
})
export class ApiModule {
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders {
diff --git a/src/app/shared/api-swagger/api/api.ts b/src/app/shared/api-swagger/api/api.ts
index e4225b0..1b6a79b 100644
--- a/src/app/shared/api-swagger/api/api.ts
+++ b/src/app/shared/api-swagger/api/api.ts
@@ -16,6 +16,6 @@ export * from './notes.service';
import { NotesService } from './notes.service';
export * from './participationsFormations.service';
import { ParticipationsFormationsService } from './participationsFormations.service';
-export * from './referents.service';
-import { ReferentsService } from './referents.service';
-export const APIS = [CollaborateursService, DemandesDelegationService, DemandesEPIService, DemandesFormationService, EngagementsService, EpService, FormationsService, NotesService, ParticipationsFormationsService, ReferentsService];
+export * from './referentsEP.service';
+import { ReferentsEPService } from './referentsEP.service';
+export const APIS = [CollaborateursService, DemandesDelegationService, DemandesEPIService, DemandesFormationService, EngagementsService, EpService, FormationsService, NotesService, ParticipationsFormationsService, ReferentsEPService];
diff --git a/src/app/shared/api-swagger/api/collaborateurs.service.ts b/src/app/shared/api-swagger/api/collaborateurs.service.ts
index e1205c7..a10f9a9 100644
--- a/src/app/shared/api-swagger/api/collaborateurs.service.ts
+++ b/src/app/shared/api-swagger/api/collaborateurs.service.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
@@ -27,7 +27,7 @@ import { Configuration } from '../configurat
@Injectable()
export class CollaborateursService {
- protected basePath = 'https://localhost:44393/api';
+ protected basePath = 'http://localhost:3000/api';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
@@ -57,9 +57,9 @@ export class CollaborateursService {
/**
- *
- * Récupérer un collaboratuer par son id
- * @param idCollaborateur id collaborateur
+ *
+ * Récupérer un collaborateur par son id.
+ * @param idCollaborateur Id du collaborateur
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
@@ -105,9 +105,9 @@ export class CollaborateursService {
}
/**
- *
- * Récupérer un collaborateur par son mail
- * @param mail mail de l'utilisateur connecté (mail obtenu via le token Keycloak)
+ *
+ * Récupérer un collaborateur par son mail.
+ * @param mail Mail de l'utilisateur connecté (mail obtenu via le token Keycloak)
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
@@ -142,7 +142,7 @@ export class CollaborateursService {
const consumes: string[] = [
];
- return this.httpClient.request('get',`${this.basePath}/collaborateurs/mail/${encodeURIComponent(String(mail))}`,
+ return this.httpClient.request('get',`${this.basePath}/collaborateurs/${encodeURIComponent(String(mail))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@@ -153,35 +153,28 @@ export class CollaborateursService {
}
/**
- *
- * Récupérer la liste des collaborateurs
- * @param asc Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
- * @param numPage Numéro de la page du tableau qui affiche les données
- * @param parPAge Nombre d'éléments affiché sur chaque page du tableau
- * @param fonctions Liste des fonctions des collaborateurs que l'on veut récupérer
- * @param idAgence id de l'agence à laquelle sont rattachées les données à récupérer
- * @param idBU id de la business unit à laquelle sont rattachées les données à récupérer
- * @param texte Texte permettant d'identifier l'objet rechercher
- * @param tri Colonne du tableau sur lequel le tri s'effectue
+ *
+ * Récupérer une liste de collaborateurs.
+ * @param roles Liste des rôles auquels appartiennent les collaborateurs (e.g [”CP”, ”Commerciaux”,”RA”])
+ * @param idBUs liste des ids des BU auxquelles les données sont rattachées
+ * @param asc Indique si les données sont récupérées dans l'ordre croissant ou non
+ * @param numPage Numéro de la page du tableau à afficher
+ * @param parPAge Nombre d’élément maximum à afficher dans le tableau
+ * @param texte Texte permettant de filtrer les données
+ * @param tri Colonne du tableau sur lequel le tri devra être effectué
+ * @param dateDebut Date à partir de laquelle les données son récupérées
+ * @param dateFin Date jusqu'à laquelle les données sont récupérées
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public getCollaborateurs(asc: boolean, numPage: number, parPAge: number, fonctions?: Array, idAgence?: number, idBU?: number, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable>;
- public getCollaborateurs(asc: boolean, numPage: number, parPAge: number, fonctions?: Array, idAgence?: number, idBU?: number, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable>>;
- public getCollaborateurs(asc: boolean, numPage: number, parPAge: number, fonctions?: Array, idAgence?: number, idBU?: number, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable>>;
- public getCollaborateurs(asc: boolean, numPage: number, parPAge: number, fonctions?: Array, idAgence?: number, idBU?: number, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public getCollaborateurs(roles?: Array, idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>;
+ public getCollaborateurs(roles?: Array, idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>;
+ public getCollaborateurs(roles?: Array, idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>;
+ public getCollaborateurs(roles?: Array, idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable {
+
- if (asc === null || asc === undefined) {
- throw new Error('Required parameter asc was null or undefined when calling getCollaborateurs.');
- }
- if (numPage === null || numPage === undefined) {
- throw new Error('Required parameter numPage was null or undefined when calling getCollaborateurs.');
- }
- if (parPAge === null || parPAge === undefined) {
- throw new Error('Required parameter parPAge was null or undefined when calling getCollaborateurs.');
- }
@@ -189,19 +182,18 @@ export class CollaborateursService {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
- if (asc !== undefined && asc !== null) {
- queryParameters = queryParameters.set('asc', asc);
- }
- if (fonctions) {
- fonctions.forEach((element) => {
- queryParameters = queryParameters.append('fonctions', element);
+ if (roles) {
+ roles.forEach((element) => {
+ queryParameters = queryParameters.append('roles', element);
})
}
- if (idAgence !== undefined && idAgence !== null) {
- queryParameters = queryParameters.set('idAgence', idAgence);
+ if (idBUs) {
+ idBUs.forEach((element) => {
+ queryParameters = queryParameters.append('idBUs', element);
+ })
}
- if (idBU !== undefined && idBU !== null) {
- queryParameters = queryParameters.set('idBU', idBU);
+ if (asc !== undefined && asc !== null) {
+ queryParameters = queryParameters.set('asc', asc);
}
if (numPage !== undefined && numPage !== null) {
queryParameters = queryParameters.set('numPage', numPage);
@@ -215,6 +207,12 @@ export class CollaborateursService {
if (tri !== undefined && tri !== null) {
queryParameters = queryParameters.set('tri', tri);
}
+ if (dateDebut !== undefined && dateDebut !== null) {
+ queryParameters = queryParameters.set('dateDebut', dateDebut.toISOString());
+ }
+ if (dateFin !== undefined && dateFin !== null) {
+ queryParameters = queryParameters.set('dateFin', dateFin.toISOString());
+ }
let headers = this.defaultHeaders;
@@ -250,41 +248,197 @@ export class CollaborateursService {
}
/**
- *
- * Récupérer la liste des collaborateurs dont le référent à la charge
- * @param asc Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
- * @param idReferent id referent
- * @param numPage Numéro de la page du tableau qui affiche les données
- * @param parPAge Nombre d'éléments affiché sur chaque page du tableau
- * @param texte Texte permettant d'identifier l'objet rechercher
- * @param tri Colonne du tableau sur lequel le tri s'effectue
+ *
+ * Récupérer la liste des collaborateurs d’un référent.
+ * @param idReferent Id d'un référent
+ * @param asc Indique si les données sont récupérées dans l'ordre croissant ou non
+ * @param numPage Numéro de la page du tableau à afficher
+ * @param parPAge Nombre d’élément maximum à afficher dans le tableau
+ * @param texte Texte permettant de filtrer les données
+ * @param tri Colonne du tableau sur lequel le tri devra être effectué
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public getCollaborateursByReferent(asc: boolean, idReferent: string, numPage: number, parPAge: number, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable>;
- public getCollaborateursByReferent(asc: boolean, idReferent: string, numPage: number, parPAge: number, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable>>;
- public getCollaborateursByReferent(asc: boolean, idReferent: string, numPage: number, parPAge: number, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable>>;
- public getCollaborateursByReferent(asc: boolean, idReferent: string, numPage: number, parPAge: number, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public getCollaborateursByReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable>;
+ public getCollaborateursByReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable>>;
+ public getCollaborateursByReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable>>;
+ public getCollaborateursByReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
+
+ if (idReferent === null || idReferent === undefined) {
+ throw new Error('Required parameter idReferent was null or undefined when calling getCollaborateursByReferent.');
+ }
+
+
+
+
+
+
+ let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
+ if (asc !== undefined && asc !== null) {
+ queryParameters = queryParameters.set('asc', asc);
+ }
+ if (numPage !== undefined && numPage !== null) {
+ queryParameters = queryParameters.set('numPage', numPage);
+ }
+ if (parPAge !== undefined && parPAge !== null) {
+ queryParameters = queryParameters.set('parPAge', parPAge);
+ }
+ if (texte !== undefined && texte !== null) {
+ queryParameters = queryParameters.set('texte', texte);
+ }
+ if (tri !== undefined && tri !== null) {
+ queryParameters = queryParameters.set('tri', tri);
+ }
+
+ let headers = this.defaultHeaders;
- if (asc === null || asc === undefined) {
- throw new Error('Required parameter asc was null or undefined when calling getCollaborateursByReferent.');
+ // authentication (bearerAuth) required
+ if (this.configuration.accessToken) {
+ const accessToken = typeof this.configuration.accessToken === 'function'
+ ? this.configuration.accessToken()
+ : this.configuration.accessToken;
+ headers = headers.set('Authorization', 'Bearer ' + accessToken);
+ }
+ // to determine the Accept header
+ let httpHeaderAccepts: string[] = [
+ 'application/json'
+ ];
+ const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+ if (httpHeaderAcceptSelected != undefined) {
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
}
+ // to determine the Content-Type header
+ const consumes: string[] = [
+ ];
+
+ return this.httpClient.request>('get',`${this.basePath}/collaborateurs/referent/${encodeURIComponent(String(idReferent))}`,
+ {
+ params: queryParameters,
+ withCredentials: this.configuration.withCredentials,
+ headers: headers,
+ observe: observe,
+ reportProgress: reportProgress
+ }
+ );
+ }
+
+ /**
+ *
+ * Récupérer le nombre total de collaborateurs d’un référent.
+ * @param idReferent Id d'un référent
+ * @param asc Indique si les données sont récupérées dans l'ordre croissant ou non
+ * @param numPage Numéro de la page du tableau à afficher
+ * @param parPAge Nombre d’élément maximum à afficher dans le tableau
+ * @param texte Texte permettant de filtrer les données
+ * @param tri Colonne du tableau sur lequel le tri devra être effectué
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getCollaborateursByReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable;
+ public getCollaborateursByReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable>;
+ public getCollaborateursByReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable>;
+ public getCollaborateursByReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
+
if (idReferent === null || idReferent === undefined) {
- throw new Error('Required parameter idReferent was null or undefined when calling getCollaborateursByReferent.');
+ throw new Error('Required parameter idReferent was null or undefined when calling getCollaborateursByReferentCount.');
}
- if (numPage === null || numPage === undefined) {
- throw new Error('Required parameter numPage was null or undefined when calling getCollaborateursByReferent.');
+
+
+
+
+
+ let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
+ if (asc !== undefined && asc !== null) {
+ queryParameters = queryParameters.set('asc', asc);
+ }
+ if (numPage !== undefined && numPage !== null) {
+ queryParameters = queryParameters.set('numPage', numPage);
+ }
+ if (parPAge !== undefined && parPAge !== null) {
+ queryParameters = queryParameters.set('parPAge', parPAge);
+ }
+ if (texte !== undefined && texte !== null) {
+ queryParameters = queryParameters.set('texte', texte);
+ }
+ if (tri !== undefined && tri !== null) {
+ queryParameters = queryParameters.set('tri', tri);
}
- if (parPAge === null || parPAge === undefined) {
- throw new Error('Required parameter parPAge was null or undefined when calling getCollaborateursByReferent.');
+ let headers = this.defaultHeaders;
+
+ // authentication (bearerAuth) required
+ if (this.configuration.accessToken) {
+ const accessToken = typeof this.configuration.accessToken === 'function'
+ ? this.configuration.accessToken()
+ : this.configuration.accessToken;
+ headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
+ // to determine the Accept header
+ let httpHeaderAccepts: string[] = [
+ 'application/json'
+ ];
+ const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+ if (httpHeaderAcceptSelected != undefined) {
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
+ }
+
+ // to determine the Content-Type header
+ const consumes: string[] = [
+ ];
+
+ return this.httpClient.request('get',`${this.basePath}/collaborateurs/referent/${encodeURIComponent(String(idReferent))}/count`,
+ {
+ params: queryParameters,
+ withCredentials: this.configuration.withCredentials,
+ headers: headers,
+ observe: observe,
+ reportProgress: reportProgress
+ }
+ );
+ }
+
+ /**
+ *
+ * Récupérer le nombre total de collaborateurs.
+ * @param roles Liste des rôles auquels appartiennent les collaborateurs (e.g [”CP”, ”Commerciaux”,”RA”])
+ * @param idBUs liste des ids des BU auxquelles les données sont rattachées
+ * @param asc Indique si les données sont récupérées dans l'ordre croissant ou non
+ * @param numPage Numéro de la page du tableau à afficher
+ * @param parPAge Nombre d’élément maximum à afficher dans le tableau
+ * @param texte Texte permettant de filtrer les données
+ * @param tri Colonne du tableau sur lequel le tri devra être effectué
+ * @param dateDebut Date à partir de laquelle les données son récupérées
+ * @param dateFin Date jusqu'à laquelle les données sont récupérées
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getCollaborateursCount(roles?: Array, idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable;
+ public getCollaborateursCount(roles?: Array, idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>;
+ public getCollaborateursCount(roles?: Array, idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>;
+ public getCollaborateursCount(roles?: Array, idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable {
+
+
+
+
+
+
+
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
+ if (roles) {
+ roles.forEach((element) => {
+ queryParameters = queryParameters.append('roles', element);
+ })
+ }
+ if (idBUs) {
+ idBUs.forEach((element) => {
+ queryParameters = queryParameters.append('idBUs', element);
+ })
+ }
if (asc !== undefined && asc !== null) {
queryParameters = queryParameters.set('asc', asc);
}
@@ -300,6 +454,12 @@ export class CollaborateursService {
if (tri !== undefined && tri !== null) {
queryParameters = queryParameters.set('tri', tri);
}
+ if (dateDebut !== undefined && dateDebut !== null) {
+ queryParameters = queryParameters.set('dateDebut', dateDebut.toISOString());
+ }
+ if (dateFin !== undefined && dateFin !== null) {
+ queryParameters = queryParameters.set('dateFin', dateFin.toISOString());
+ }
let headers = this.defaultHeaders;
@@ -323,7 +483,7 @@ export class CollaborateursService {
const consumes: string[] = [
];
- return this.httpClient.request>('get',`${this.basePath}/collaborateurs/referent/${encodeURIComponent(String(idReferent))}`,
+ return this.httpClient.request('get',`${this.basePath}/collaborateurs/count`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
@@ -334,4 +494,52 @@ export class CollaborateursService {
);
}
+ /**
+ *
+ * Récupérer la liste des référents des précédents EP du collaborateur.
+ * @param idCollaborateur Id du collaborateur
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getReferentsPrecedentEPCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable>;
+ public getReferentsPrecedentEPCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>>;
+ public getReferentsPrecedentEPCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>>;
+ public getReferentsPrecedentEPCollaborateur(idCollaborateur: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
+
+ if (idCollaborateur === null || idCollaborateur === undefined) {
+ throw new Error('Required parameter idCollaborateur was null or undefined when calling getReferentsPrecedentEPCollaborateur.');
+ }
+
+ let headers = this.defaultHeaders;
+
+ // authentication (bearerAuth) required
+ if (this.configuration.accessToken) {
+ const accessToken = typeof this.configuration.accessToken === 'function'
+ ? this.configuration.accessToken()
+ : this.configuration.accessToken;
+ headers = headers.set('Authorization', 'Bearer ' + accessToken);
+ }
+ // to determine the Accept header
+ let httpHeaderAccepts: string[] = [
+ 'application/json'
+ ];
+ const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+ if (httpHeaderAcceptSelected != undefined) {
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
+ }
+
+ // to determine the Content-Type header
+ const consumes: string[] = [
+ ];
+
+ return this.httpClient.request>('get',`${this.basePath}/collaborateurs/${encodeURIComponent(String(idCollaborateur))}/ep/referents`,
+ {
+ withCredentials: this.configuration.withCredentials,
+ headers: headers,
+ observe: observe,
+ reportProgress: reportProgress
+ }
+ );
+ }
+
}
diff --git a/src/app/shared/api-swagger/api/demandesDelegation.service.ts b/src/app/shared/api-swagger/api/demandesDelegation.service.ts
index c73a8de..c62c2d4 100644
--- a/src/app/shared/api-swagger/api/demandesDelegation.service.ts
+++ b/src/app/shared/api-swagger/api/demandesDelegation.service.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
@@ -17,7 +17,6 @@ import { CustomHttpUrlEncodingCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { CreationDemandeDelegationDTO } from '../model/creationDemandeDelegationDTO';
import { DemandeDelegationDTO } from '../model/demandeDelegationDTO';
import { ErreurDTO } from '../model/erreurDTO';
@@ -28,7 +27,7 @@ import { Configuration } from '../configurat
@Injectable()
export class DemandesDelegationService {
- protected basePath = 'https://localhost:44393/api';
+ protected basePath = 'http://localhost:3000/api';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
@@ -58,115 +57,19 @@ export class DemandesDelegationService {
/**
- *
- * Faire une demande de délégation à une autre personne
- * @param idCollaborateur id collaborateur
- * @param idEP id EP
+ *
+ * Récupérer la liste des demandes de délégation d’un référent.
+ * @param idReferent Id d'un référent
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public faireDemandeDelegation(idCollaborateur: string, idEP: number, observe?: 'body', reportProgress?: boolean): Observable;
- public faireDemandeDelegation(idCollaborateur: string, idEP: number, observe?: 'response', reportProgress?: boolean): Observable>;
- public faireDemandeDelegation(idCollaborateur: string, idEP: number, observe?: 'events', reportProgress?: boolean): Observable>;
- public faireDemandeDelegation(idCollaborateur: string, idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable {
-
- if (idCollaborateur === null || idCollaborateur === undefined) {
- throw new Error('Required parameter idCollaborateur was null or undefined when calling faireDemandeDelegation.');
- }
-
- if (idEP === null || idEP === undefined) {
- throw new Error('Required parameter idEP was null or undefined when calling faireDemandeDelegation.');
- }
-
- let headers = this.defaultHeaders;
+ public getDemandesDelegationReferent(idReferent: string, observe?: 'body', reportProgress?: boolean): Observable>;
+ public getDemandesDelegationReferent(idReferent: string, observe?: 'response', reportProgress?: boolean): Observable>>;
+ public getDemandesDelegationReferent(idReferent: string, observe?: 'events', reportProgress?: boolean): Observable>>;
+ public getDemandesDelegationReferent(idReferent: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
- // authentication (bearerAuth) required
- if (this.configuration.accessToken) {
- const accessToken = typeof this.configuration.accessToken === 'function'
- ? this.configuration.accessToken()
- : this.configuration.accessToken;
- headers = headers.set('Authorization', 'Bearer ' + accessToken);
- }
- // to determine the Accept header
- let httpHeaderAccepts: string[] = [
- 'application/json'
- ];
- const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
- if (httpHeaderAcceptSelected != undefined) {
- headers = headers.set('Accept', httpHeaderAcceptSelected);
- }
-
- // to determine the Content-Type header
- const consumes: string[] = [
- ];
-
- return this.httpClient.request('get',`${this.basePath}/demandesdelegation/ep/${encodeURIComponent(String(idEP))}/${encodeURIComponent(String(idCollaborateur))}`,
- {
- withCredentials: this.configuration.withCredentials,
- headers: headers,
- observe: observe,
- reportProgress: reportProgress
- }
- );
- }
-
- /**
- *
- * Récupération de la liste des demandes de délégation
- * @param asc Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
- * @param idCollaborateur id collaborateur
- * @param numPage Numéro de la page du tableau qui affiche les données
- * @param parPAge Nombre d'éléments affiché sur chaque page du tableau
- * @param fonctions Liste des fonctions des collaborateurs que l'on veut récupérer
- * @param texte Texte permettant d'identifier l'objet rechercher
- * @param tri Colonne du tableau sur lequel le tri s'effectue
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
- * @param reportProgress flag to report request and response progress.
- */
- public getDemandesDelegation(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable>;
- public getDemandesDelegation(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable>>;
- public getDemandesDelegation(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable>>;
- public getDemandesDelegation(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
-
- if (asc === null || asc === undefined) {
- throw new Error('Required parameter asc was null or undefined when calling getDemandesDelegation.');
- }
-
- if (idCollaborateur === null || idCollaborateur === undefined) {
- throw new Error('Required parameter idCollaborateur was null or undefined when calling getDemandesDelegation.');
- }
-
- if (numPage === null || numPage === undefined) {
- throw new Error('Required parameter numPage was null or undefined when calling getDemandesDelegation.');
- }
-
- if (parPAge === null || parPAge === undefined) {
- throw new Error('Required parameter parPAge was null or undefined when calling getDemandesDelegation.');
- }
-
-
-
-
- let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
- if (asc !== undefined && asc !== null) {
- queryParameters = queryParameters.set('asc', asc);
- }
- if (fonctions) {
- fonctions.forEach((element) => {
- queryParameters = queryParameters.append('fonctions', element);
- })
- }
- if (numPage !== undefined && numPage !== null) {
- queryParameters = queryParameters.set('numPage', numPage);
- }
- if (parPAge !== undefined && parPAge !== null) {
- queryParameters = queryParameters.set('parPAge', parPAge);
- }
- if (texte !== undefined && texte !== null) {
- queryParameters = queryParameters.set('texte', texte);
- }
- if (tri !== undefined && tri !== null) {
- queryParameters = queryParameters.set('tri', tri);
+ if (idReferent === null || idReferent === undefined) {
+ throw new Error('Required parameter idReferent was null or undefined when calling getDemandesDelegationReferent.');
}
let headers = this.defaultHeaders;
@@ -191,9 +94,8 @@ export class DemandesDelegationService {
const consumes: string[] = [
];
- return this.httpClient.request>('get',`${this.basePath}/demandesdelegation/${encodeURIComponent(String(idCollaborateur))}`,
+ return this.httpClient.request>('get',`${this.basePath}/demandesdelegation/referent/${encodeURIComponent(String(idReferent))}`,
{
- params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -203,24 +105,24 @@ export class DemandesDelegationService {
}
/**
- *
- * Faire une demande de délégation à une autre personne
- * @param body
- * @param idDemandeDelegation id demande delegation
+ *
+ * Répondre à une demande de délégation.
+ * @param body
+ * @param idDemandeDelegation Id d'une demande delegation
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public repondreDemandeDelegation(body: CreationDemandeDelegationDTO, idDemandeDelegation: number, observe?: 'body', reportProgress?: boolean): Observable;
- public repondreDemandeDelegation(body: CreationDemandeDelegationDTO, idDemandeDelegation: number, observe?: 'response', reportProgress?: boolean): Observable>;
- public repondreDemandeDelegation(body: CreationDemandeDelegationDTO, idDemandeDelegation: number, observe?: 'events', reportProgress?: boolean): Observable>;
- public repondreDemandeDelegation(body: CreationDemandeDelegationDTO, idDemandeDelegation: number, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public updateDemandeDelegation(body: DemandeDelegationDTO, idDemandeDelegation: number, observe?: 'body', reportProgress?: boolean): Observable;
+ public updateDemandeDelegation(body: DemandeDelegationDTO, idDemandeDelegation: number, observe?: 'response', reportProgress?: boolean): Observable>;
+ public updateDemandeDelegation(body: DemandeDelegationDTO, idDemandeDelegation: number, observe?: 'events', reportProgress?: boolean): Observable>;
+ public updateDemandeDelegation(body: DemandeDelegationDTO, idDemandeDelegation: number, observe: any = 'body', reportProgress: boolean = false ): Observable {
if (body === null || body === undefined) {
- throw new Error('Required parameter body was null or undefined when calling repondreDemandeDelegation.');
+ throw new Error('Required parameter body was null or undefined when calling updateDemandeDelegation.');
}
if (idDemandeDelegation === null || idDemandeDelegation === undefined) {
- throw new Error('Required parameter idDemandeDelegation was null or undefined when calling repondreDemandeDelegation.');
+ throw new Error('Required parameter idDemandeDelegation was null or undefined when calling updateDemandeDelegation.');
}
let headers = this.defaultHeaders;
@@ -250,7 +152,7 @@ export class DemandesDelegationService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
- return this.httpClient.request('put',`${this.basePath}/demandesdelegation/${encodeURIComponent(String(idDemandeDelegation))}/repondre`,
+ return this.httpClient.request('put',`${this.basePath}/demandesdelegation/${encodeURIComponent(String(idDemandeDelegation))}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
diff --git a/src/app/shared/api-swagger/api/demandesEPI.service.ts b/src/app/shared/api-swagger/api/demandesEPI.service.ts
index e9feaeb..f1c96b6 100644
--- a/src/app/shared/api-swagger/api/demandesEPI.service.ts
+++ b/src/app/shared/api-swagger/api/demandesEPI.service.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
@@ -19,6 +19,7 @@ import { Observable } from 'rxjs';
import { DemandeEPIDTO } from '../model/demandeEPIDTO';
import { ErreurDTO } from '../model/erreurDTO';
+import { EtatDemande } from '../model/etatDemande';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -27,7 +28,7 @@ import { Configuration } from '../configurat
@Injectable()
export class DemandesEPIService {
- protected basePath = 'https://localhost:44393/api';
+ protected basePath = 'http://localhost:3000/api';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
@@ -57,19 +58,19 @@ export class DemandesEPIService {
/**
- *
- * Annuler la demande d'EPI
- * @param idDemandeEPI id demande EPI
+ *
+ * Effectuer la création d’une demande d’EPI par l'assistant ou bien un responsable d'agence.
+ * @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public annulerDemandeEPI(idDemandeEPI: number, observe?: 'body', reportProgress?: boolean): Observable;
- public annulerDemandeEPI(idDemandeEPI: number, observe?: 'response', reportProgress?: boolean): Observable>;
- public annulerDemandeEPI(idDemandeEPI: number, observe?: 'events', reportProgress?: boolean): Observable>;
- public annulerDemandeEPI(idDemandeEPI: number, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public addDemandeEpiAssistant(body: DemandeEPIDTO, observe?: 'body', reportProgress?: boolean): Observable;
+ public addDemandeEpiAssistant(body: DemandeEPIDTO, observe?: 'response', reportProgress?: boolean): Observable>;
+ public addDemandeEpiAssistant(body: DemandeEPIDTO, observe?: 'events', reportProgress?: boolean): Observable>;
+ public addDemandeEpiAssistant(body: DemandeEPIDTO, observe: any = 'body', reportProgress: boolean = false ): Observable {
- if (idDemandeEPI === null || idDemandeEPI === undefined) {
- throw new Error('Required parameter idDemandeEPI was null or undefined when calling annulerDemandeEPI.');
+ if (body === null || body === undefined) {
+ throw new Error('Required parameter body was null or undefined when calling addDemandeEpiAssistant.');
}
let headers = this.defaultHeaders;
@@ -92,10 +93,16 @@ export class DemandesEPIService {
// to determine the Content-Type header
const consumes: string[] = [
+ 'application/json'
];
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
+ if (httpContentTypeSelected != undefined) {
+ headers = headers.set('Content-Type', httpContentTypeSelected);
+ }
- return this.httpClient.request('get',`${this.basePath}/demandesepi/${encodeURIComponent(String(idDemandeEPI))}/annuler`,
+ return this.httpClient.request('post',`${this.basePath}/demandesepi/demande/assistant`,
{
+ body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -105,24 +112,19 @@ export class DemandesEPIService {
}
/**
- *
- * Lancer la procedure pour un entretien professionnel intermediaire, une demande d'EPI validée est créé par la même occasion
- * @param idCollaborateur id collaborateur
- * @param idReferent id referent
+ *
+ * Effectuer la création d’une demande d’EPI par le collaborateur.
+ * @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public createEPI(idCollaborateur: string, idReferent: string, observe?: 'body', reportProgress?: boolean): Observable;
- public createEPI(idCollaborateur: string, idReferent: string, observe?: 'response', reportProgress?: boolean): Observable>;
- public createEPI(idCollaborateur: string, idReferent: string, observe?: 'events', reportProgress?: boolean): Observable>;
- public createEPI(idCollaborateur: string, idReferent: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
-
- if (idCollaborateur === null || idCollaborateur === undefined) {
- throw new Error('Required parameter idCollaborateur was null or undefined when calling createEPI.');
- }
+ public addDemandeEpiCollaborateur(body: DemandeEPIDTO, observe?: 'body', reportProgress?: boolean): Observable;
+ public addDemandeEpiCollaborateur(body: DemandeEPIDTO, observe?: 'response', reportProgress?: boolean): Observable>;
+ public addDemandeEpiCollaborateur(body: DemandeEPIDTO, observe?: 'events', reportProgress?: boolean): Observable>;
+ public addDemandeEpiCollaborateur(body: DemandeEPIDTO, observe: any = 'body', reportProgress: boolean = false ): Observable {
- if (idReferent === null || idReferent === undefined) {
- throw new Error('Required parameter idReferent was null or undefined when calling createEPI.');
+ if (body === null || body === undefined) {
+ throw new Error('Required parameter body was null or undefined when calling addDemandeEpiCollaborateur.');
}
let headers = this.defaultHeaders;
@@ -145,10 +147,16 @@ export class DemandesEPIService {
// to determine the Content-Type header
const consumes: string[] = [
+ 'application/json'
];
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
+ if (httpContentTypeSelected != undefined) {
+ headers = headers.set('Content-Type', httpContentTypeSelected);
+ }
- return this.httpClient.request('get',`${this.basePath}/demandesepi/referent/${encodeURIComponent(String(idReferent))}/demande/${encodeURIComponent(String(idCollaborateur))}`,
+ return this.httpClient.request('post',`${this.basePath}/demandesepi/demande/collaborateur`,
{
+ body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -158,19 +166,19 @@ export class DemandesEPIService {
}
/**
- *
- * Demande d'EPI par un collaborateur
- * @param idCollaborateur id collaborateur
+ *
+ * Effectuer la création d’une demande d’EPI par le référent.
+ * @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public demandeEPI(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable;
- public demandeEPI(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>;
- public demandeEPI(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>;
- public demandeEPI(idCollaborateur: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public addDemandeEpiReferent(body: DemandeEPIDTO, observe?: 'body', reportProgress?: boolean): Observable;
+ public addDemandeEpiReferent(body: DemandeEPIDTO, observe?: 'response', reportProgress?: boolean): Observable>;
+ public addDemandeEpiReferent(body: DemandeEPIDTO, observe?: 'events', reportProgress?: boolean): Observable>;
+ public addDemandeEpiReferent(body: DemandeEPIDTO, observe: any = 'body', reportProgress: boolean = false ): Observable {
- if (idCollaborateur === null || idCollaborateur === undefined) {
- throw new Error('Required parameter idCollaborateur was null or undefined when calling demandeEPI.');
+ if (body === null || body === undefined) {
+ throw new Error('Required parameter body was null or undefined when calling addDemandeEpiReferent.');
}
let headers = this.defaultHeaders;
@@ -193,10 +201,16 @@ export class DemandesEPIService {
// to determine the Content-Type header
const consumes: string[] = [
+ 'application/json'
];
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
+ if (httpContentTypeSelected != undefined) {
+ headers = headers.set('Content-Type', httpContentTypeSelected);
+ }
- return this.httpClient.request('get',`${this.basePath}/demandesepi/collaborateur/${encodeURIComponent(String(idCollaborateur))}/demande`,
+ return this.httpClient.request('post',`${this.basePath}/demandesepi/demande/referent`,
{
+ body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -206,19 +220,19 @@ export class DemandesEPIService {
}
/**
- *
- * Demande d'EPI et par l'assistant et création automatique de l'EPI
- * @param idCollaborateur id collaborateur
+ *
+ * Annuler une demande d’EPI.
+ * @param idDemandeEPI Id d'une demande d'EPI
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public demandeEPIAssistante(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable;
- public demandeEPIAssistante(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>;
- public demandeEPIAssistante(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>;
- public demandeEPIAssistante(idCollaborateur: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public deleteDemandeEPI(idDemandeEPI: number, observe?: 'body', reportProgress?: boolean): Observable;
+ public deleteDemandeEPI(idDemandeEPI: number, observe?: 'response', reportProgress?: boolean): Observable>;
+ public deleteDemandeEPI(idDemandeEPI: number, observe?: 'events', reportProgress?: boolean): Observable>;
+ public deleteDemandeEPI(idDemandeEPI: number, observe: any = 'body', reportProgress: boolean = false ): Observable {
- if (idCollaborateur === null || idCollaborateur === undefined) {
- throw new Error('Required parameter idCollaborateur was null or undefined when calling demandeEPIAssistante.');
+ if (idDemandeEPI === null || idDemandeEPI === undefined) {
+ throw new Error('Required parameter idDemandeEPI was null or undefined when calling deleteDemandeEPI.');
}
let headers = this.defaultHeaders;
@@ -243,7 +257,7 @@ export class DemandesEPIService {
const consumes: string[] = [
];
- return this.httpClient.request('get',`${this.basePath}/demandesepi/demandeassistante/${encodeURIComponent(String(idCollaborateur))}`,
+ return this.httpClient.request('delete',`${this.basePath}/demandesepi/${encodeURIComponent(String(idDemandeEPI))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
@@ -254,63 +268,29 @@ export class DemandesEPIService {
}
/**
- *
- * Récupération de la liste des demandes EPI d'un collaborateur
- * @param asc Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
- * @param idCollaborateur id collaborateur
- * @param numPage Numéro de la page du tableau qui affiche les données
- * @param parPAge Nombre d'éléments affiché sur chaque page du tableau
- * @param fonctions Liste des fonctions des collaborateurs que l'on veut récupérer
- * @param texte Texte permettant d'identifier l'objet rechercher
- * @param tri Colonne du tableau sur lequel le tri s'effectue
+ *
+ * Récupérer la liste des demandes d’EPI d’un collaborateur.
+ * @param idCollaborateur Id du collaborateur
+ * @param etatsDemande Liste des états des demandes à afficher
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public getDemandeEPICollaborateur(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable>;
- public getDemandeEPICollaborateur(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable>>;
- public getDemandeEPICollaborateur(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable>>;
- public getDemandeEPICollaborateur(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
-
- if (asc === null || asc === undefined) {
- throw new Error('Required parameter asc was null or undefined when calling getDemandeEPICollaborateur.');
- }
+ public getDemandeEPICollaborateur(idCollaborateur: string, etatsDemande?: Array, observe?: 'body', reportProgress?: boolean): Observable>;
+ public getDemandeEPICollaborateur(idCollaborateur: string, etatsDemande?: Array, observe?: 'response', reportProgress?: boolean): Observable>>;
+ public getDemandeEPICollaborateur(idCollaborateur: string, etatsDemande?: Array, observe?: 'events', reportProgress?: boolean): Observable>>;
+ public getDemandeEPICollaborateur(idCollaborateur: string, etatsDemande?: Array, observe: any = 'body', reportProgress: boolean = false ): Observable {
if (idCollaborateur === null || idCollaborateur === undefined) {
throw new Error('Required parameter idCollaborateur was null or undefined when calling getDemandeEPICollaborateur.');
}
- if (numPage === null || numPage === undefined) {
- throw new Error('Required parameter numPage was null or undefined when calling getDemandeEPICollaborateur.');
- }
-
- if (parPAge === null || parPAge === undefined) {
- throw new Error('Required parameter parPAge was null or undefined when calling getDemandeEPICollaborateur.');
- }
-
-
-
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
- if (asc !== undefined && asc !== null) {
- queryParameters = queryParameters.set('asc', asc);
- }
- if (fonctions) {
- fonctions.forEach((element) => {
- queryParameters = queryParameters.append('fonctions', element);
+ if (etatsDemande) {
+ etatsDemande.forEach((element) => {
+ queryParameters = queryParameters.append('etatsDemande', element);
})
}
- if (numPage !== undefined && numPage !== null) {
- queryParameters = queryParameters.set('numPage', numPage);
- }
- if (parPAge !== undefined && parPAge !== null) {
- queryParameters = queryParameters.set('parPAge', parPAge);
- }
- if (texte !== undefined && texte !== null) {
- queryParameters = queryParameters.set('texte', texte);
- }
- if (tri !== undefined && tri !== null) {
- queryParameters = queryParameters.set('tri', tri);
- }
let headers = this.defaultHeaders;
@@ -346,19 +326,28 @@ export class DemandesEPIService {
}
/**
- *
- * Récupération de l'EPI en cours d'un collaborateur
- * @param idCollaborateur id collaborateur
+ *
+ * Récupérer le nombre total de demandes d’EPI d’un collaborateur.
+ * @param idCollaborateur Id du collaborateur
+ * @param etatsDemande Liste des états des demandes à afficher
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public getDemandeEPIEnCours(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable;
- public getDemandeEPIEnCours(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>;
- public getDemandeEPIEnCours(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>;
- public getDemandeEPIEnCours(idCollaborateur: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public getDemandeEPICollaborateurCount(idCollaborateur: string, etatsDemande?: Array, observe?: 'body', reportProgress?: boolean): Observable;
+ public getDemandeEPICollaborateurCount(idCollaborateur: string, etatsDemande?: Array, observe?: 'response', reportProgress?: boolean): Observable>;
+ public getDemandeEPICollaborateurCount(idCollaborateur: string, etatsDemande?: Array, observe?: 'events', reportProgress?: boolean): Observable>;
+ public getDemandeEPICollaborateurCount(idCollaborateur: string, etatsDemande?: Array, observe: any = 'body', reportProgress: boolean = false ): Observable {
if (idCollaborateur === null || idCollaborateur === undefined) {
- throw new Error('Required parameter idCollaborateur was null or undefined when calling getDemandeEPIEnCours.');
+ throw new Error('Required parameter idCollaborateur was null or undefined when calling getDemandeEPICollaborateurCount.');
+ }
+
+
+ let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
+ if (etatsDemande) {
+ etatsDemande.forEach((element) => {
+ queryParameters = queryParameters.append('etatsDemande', element);
+ })
}
let headers = this.defaultHeaders;
@@ -383,8 +372,9 @@ export class DemandesEPIService {
const consumes: string[] = [
];
- return this.httpClient.request('get',`${this.basePath}/demandesepi/collaborateur/${encodeURIComponent(String(idCollaborateur))}/enCours`,
+ return this.httpClient.request('get',`${this.basePath}/demandesepi/collaborateur/${encodeURIComponent(String(idCollaborateur))}/count`,
{
+ params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
@@ -394,63 +384,87 @@ export class DemandesEPIService {
}
/**
- *
- * Récupération de la liste des demandes EPI d'un referent
- * @param asc Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
- * @param idReferent id referent
- * @param numPage Numéro de la page du tableau qui affiche les données
- * @param parPAge Nombre d'éléments affiché sur chaque page du tableau
- * @param fonctions Liste des fonctions des collaborateurs que l'on veut récupérer
- * @param texte Texte permettant d'identifier l'objet rechercher
- * @param tri Colonne du tableau sur lequel le tri s'effectue
+ *
+ * Récupérer la liste des demandes d’EPI qu’un référent a reçu.
+ * @param idReferent Id d'un référent
+ * @param etatsDemande Liste des états des demandes à afficher
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public getDemandeEPIReferent(asc: boolean, idReferent: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable>;
- public getDemandeEPIReferent(asc: boolean, idReferent: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable>>;
- public getDemandeEPIReferent(asc: boolean, idReferent: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable>>;
- public getDemandeEPIReferent(asc: boolean, idReferent: string, numPage: number, parPAge: number, fonctions?: Array, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {
-
- if (asc === null || asc === undefined) {
- throw new Error('Required parameter asc was null or undefined when calling getDemandeEPIReferent.');
- }
+ public getDemandeEPIReferent(idReferent: string, etatsDemande?: Array, observe?: 'body', reportProgress?: boolean): Observable>;
+ public getDemandeEPIReferent(idReferent: string, etatsDemande?: Array, observe?: 'response', reportProgress?: boolean): Observable>>;
+ public getDemandeEPIReferent(idReferent: string, etatsDemande?: Array, observe?: 'events', reportProgress?: boolean): Observable>>;
+ public getDemandeEPIReferent(idReferent: string, etatsDemande?: Array, observe: any = 'body', reportProgress: boolean = false ): Observable {
if (idReferent === null || idReferent === undefined) {
throw new Error('Required parameter idReferent was null or undefined when calling getDemandeEPIReferent.');
}
- if (numPage === null || numPage === undefined) {
- throw new Error('Required parameter numPage was null or undefined when calling getDemandeEPIReferent.');
+
+ let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
+ if (etatsDemande) {
+ etatsDemande.forEach((element) => {
+ queryParameters = queryParameters.append('etatsDemande', element);
+ })
}
- if (parPAge === null || parPAge === undefined) {
- throw new Error('Required parameter parPAge was null or undefined when calling getDemandeEPIReferent.');
+ let headers = this.defaultHeaders;
+
+ // authentication (bearerAuth) required
+ if (this.configuration.accessToken) {
+ const accessToken = typeof this.configuration.accessToken === 'function'
+ ? this.configuration.accessToken()
+ : this.configuration.accessToken;
+ headers = headers.set('Authorization', 'Bearer ' + accessToken);
+ }
+ // to determine the Accept header
+ let httpHeaderAccepts: string[] = [
+ 'application/json'
+ ];
+ const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
+ if (httpHeaderAcceptSelected != undefined) {
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
}
+ // to determine the Content-Type header
+ const consumes: string[] = [
+ ];
+
+ return this.httpClient.request>('get',`${this.basePath}/demandesepi/referent/${encodeURIComponent(String(idReferent))}`,
+ {
+ params: queryParameters,
+ withCredentials: this.configuration.withCredentials,
+ headers: headers,
+ observe: observe,
+ reportProgress: reportProgress
+ }
+ );
+ }
+
+ /**
+ *
+ * Récupérer le nombre total de demandes d’EPI qu’un référent a reçu.
+ * @param idReferent Id d'un référent
+ * @param etatsDemande Liste des états des demandes à afficher
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
+ * @param reportProgress flag to report request and response progress.
+ */
+ public getDemandeEPIReferentCount(idReferent: string, etatsDemande?: Array, observe?: 'body', reportProgress?: boolean): Observable;
+ public getDemandeEPIReferentCount(idReferent: string, etatsDemande?: Array, observe?: 'response', reportProgress?: boolean): Observable>;
+ public getDemandeEPIReferentCount(idReferent: string, etatsDemande?: Array, observe?: 'events', reportProgress?: boolean): Observable>;
+ public getDemandeEPIReferentCount(idReferent: string, etatsDemande?: Array, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ if (idReferent === null || idReferent === undefined) {
+ throw new Error('Required parameter idReferent was null or undefined when calling getDemandeEPIReferentCount.');
+ }
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
- if (asc !== undefined && asc !== null) {
- queryParameters = queryParameters.set('asc', asc);
- }
- if (fonctions) {
- fonctions.forEach((element) => {
- queryParameters = queryParameters.append('fonctions', element);
+ if (etatsDemande) {
+ etatsDemande.forEach((element) => {
+ queryParameters = queryParameters.append('etatsDemande', element);
})
}
- if (numPage !== undefined && numPage !== null) {
- queryParameters = queryParameters.set('numPage', numPage);
- }
- if (parPAge !== undefined && parPAge !== null) {
- queryParameters = queryParameters.set('parPAge', parPAge);
- }
- if (texte !== undefined && texte !== null) {
- queryParameters = queryParameters.set('texte', texte);
- }
- if (tri !== undefined && tri !== null) {
- queryParameters = queryParameters.set('tri', tri);
- }
let headers = this.defaultHeaders;
@@ -474,7 +488,7 @@ export class DemandesEPIService {
const consumes: string[] = [
];
- return this.httpClient.request>('get',`${this.basePath}/demandesepi/referent/${encodeURIComponent(String(idReferent))}`,
+ return this.httpClient.request('get',`${this.basePath}/demandesepi/referent/${encodeURIComponent(String(idReferent))}/count`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
@@ -486,24 +500,24 @@ export class DemandesEPIService {
}
/**
- *
- * Répondre à une demande EPI en attente
- * @param body
- * @param idDemandeEPI id demande EPI
+ *
+ * Répondre à une demande d’EPI.
+ * @param body
+ * @param idDemandeEPI Id d'une demande d'EPI
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public repondreDemandeEPI(body: DemandeEPIDTO, idDemandeEPI: number, observe?: 'body', reportProgress?: boolean): Observable;
- public repondreDemandeEPI(body: DemandeEPIDTO, idDemandeEPI: number, observe?: 'response', reportProgress?: boolean): Observable>;
- public repondreDemandeEPI(body: DemandeEPIDTO, idDemandeEPI: number, observe?: 'events', reportProgress?: boolean): Observable>;
- public repondreDemandeEPI(body: DemandeEPIDTO, idDemandeEPI: number, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public updateDemandeEPI(body: DemandeEPIDTO, idDemandeEPI: number, observe?: 'body', reportProgress?: boolean): Observable;
+ public updateDemandeEPI(body: DemandeEPIDTO, idDemandeEPI: number, observe?: 'response', reportProgress?: boolean): Observable>;
+ public updateDemandeEPI(body: DemandeEPIDTO, idDemandeEPI: number, observe?: 'events', reportProgress?: boolean): Observable>;
+ public updateDemandeEPI(body: DemandeEPIDTO, idDemandeEPI: number, observe: any = 'body', reportProgress: boolean = false ): Observable {
if (body === null || body === undefined) {
- throw new Error('Required parameter body was null or undefined when calling repondreDemandeEPI.');
+ throw new Error('Required parameter body was null or undefined when calling updateDemandeEPI.');
}
if (idDemandeEPI === null || idDemandeEPI === undefined) {
- throw new Error('Required parameter idDemandeEPI was null or undefined when calling repondreDemandeEPI.');
+ throw new Error('Required parameter idDemandeEPI was null or undefined when calling updateDemandeEPI.');
}
let headers = this.defaultHeaders;
@@ -533,7 +547,7 @@ export class DemandesEPIService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
- return this.httpClient.request('put',`${this.basePath}/demandesepi/${encodeURIComponent(String(idDemandeEPI))}/repondre`,
+ return this.httpClient.request('put',`${this.basePath}/demandesepi/${encodeURIComponent(String(idDemandeEPI))}`,
{
body: body,
withCredentials: this.configuration.withCredentials,
diff --git a/src/app/shared/api-swagger/api/demandesformation.service.ts b/src/app/shared/api-swagger/api/demandesformation.service.ts
index 37394ed..62fc2a9 100644
--- a/src/app/shared/api-swagger/api/demandesformation.service.ts
+++ b/src/app/shared/api-swagger/api/demandesformation.service.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
@@ -17,11 +17,10 @@ import { CustomHttpUrlEncodingCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { CreationDemandeFormationDTO } from '../model/creationDemandeFormationDTO';
import { DemandeFormationDTO } from '../model/demandeFormationDTO';
import { ErreurDTO } from '../model/erreurDTO';
+import { EtatDemande } from '../model/etatDemande';
import { OrigineDemandeFormationDTO } from '../model/origineDemandeFormationDTO';
-import { ThemeDTO } from '../model/themeDTO';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -30,7 +29,7 @@ import { Configuration } from '../configurat
@Injectable()
export class DemandesFormationService {
- protected basePath = 'https://localhost:44393/api';
+ protected basePath = 'http://localhost:3000/api';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
@@ -60,19 +59,19 @@ export class DemandesFormationService {
/**
- *
- * Créer une demande de formation pour un collaborateur
- * @param body
+ *
+ * Créer demande de formation pour un collaborateur.
+ * @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
- public creerDemandeFormation(body: CreationDemandeFormationDTO, observe?: 'body', reportProgress?: boolean): Observable;
- public creerDemandeFormation(body: CreationDemandeFormationDTO, observe?: 'response', reportProgress?: boolean): Observable>;
- public creerDemandeFormation(body: CreationDemandeFormationDTO, observe?: 'events', reportProgress?: boolean): Observable>;
- public creerDemandeFormation(body: CreationDemandeFormationDTO, observe: any = 'body', reportProgress: boolean = false ): Observable {
+ public addDemandeFormation(body: DemandeFormationDTO, observe?: 'body', reportProgress?: boolean): Observable;
+ public addDemandeFormation(body: DemandeFormationDTO, observe?: 'response', reportProgress?: boolean): Observable>;
+ public addDemandeFormation(body: DemandeFormationDTO, observe?: 'events', reportProgress?: boolean): Observable>;
+ public addDemandeFormation(body: DemandeFormationDTO, observe: any = 'body', reportProgress: boolean = false ): Observable {
if (body === null || body === undefined) {
- throw new Error('Required parameter body was null or undefined when calling creerDemandeFormation.');
+ throw new Error('Required parameter body was null or undefined when calling addDemandeFormation.');
}
let headers = this.defaultHeaders;
@@ -102,7 +101,7 @@ export class DemandesFormationService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
- return this.httpClient.request('post',`${this.basePath}/demandeformation`,
+ return this.httpClient.request