From 2e6b60f5c0340949a1739a225bcd6de569c3e21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Tue, 16 Mar 2021 16:25:42 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20suite=20=C3=A0=20des=20m?= =?UTF-8?q?odifications=20OpenApi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ep/details-ep/details-ep.component.ts | 8 +- .../home-collaborateur.component.ts | 2 +- .../home-commercial.component.ts | 2 +- src/app/shared/api-swagger/api/ep.service.ts | 2663 ++++++++--------- src/app/shared/api-swagger/model/epDTO.ts | 2 +- .../shared/mat-tables/ep-table/ep-table.ts | 8 +- 6 files changed, 1331 insertions(+), 1354 deletions(-) diff --git a/src/app/ep/details-ep/details-ep.component.ts b/src/app/ep/details-ep/details-ep.component.ts index 4c0d0c9..253d9b9 100644 --- a/src/app/ep/details-ep/details-ep.component.ts +++ b/src/app/ep/details-ep/details-ep.component.ts @@ -25,11 +25,13 @@ export class DetailsEPComponent implements OnInit { } ngOnInit() { - /* this.idEp = this.route.snapshot.paramMap.get("id"); this.epSubscription = this.epService.getEPById(this.idEp).subscribe( - ep => this.ep = ep, + ep => { + this.ep = ep; + console.log(this.ep); + }, err => console.log(err) - );*/ + ); } } \ No newline at end of file diff --git a/src/app/home/home-collaborateur/home-collaborateur.component.ts b/src/app/home/home-collaborateur/home-collaborateur.component.ts index 6b8902f..d3e2a37 100644 --- a/src/app/home/home-collaborateur/home-collaborateur.component.ts +++ b/src/app/home/home-collaborateur/home-collaborateur.component.ts @@ -63,7 +63,7 @@ export class HomeCollaborateurComponent implements OnInit { } checkEPReferent() { - this.countEPReferent = this.epService.getEPEnCoursReferentCount(this.collaborateurConnecte.id, true, 1, 15, "", "", true, undefined, undefined).subscribe( + this.countEPReferent = this.epService.getEPEnCoursReferentCount(this.collaborateurConnecte.id, "", undefined, undefined).subscribe( count => this.estReferentEPEnCours = count > 0, err => console.log(err) ); diff --git a/src/app/home/home-commercial/home-commercial.component.ts b/src/app/home/home-commercial/home-commercial.component.ts index f1bb52e..9598ee5 100644 --- a/src/app/home/home-commercial/home-commercial.component.ts +++ b/src/app/home/home-commercial/home-commercial.component.ts @@ -45,7 +45,7 @@ export class HomeCommercialComponent implements OnInit { } checkEPReferent() { - this.countEPReferent = this.epService.getEPEnCoursReferentCount(this.collaborateurConnecte.id, true, 1, 15, "", "", true, undefined, undefined).subscribe( + this.countEPReferent = this.epService.getEPEnCoursReferentCount(this.collaborateurConnecte.id, "",undefined, undefined).subscribe( count => this.estReferentEPEnCours = count > 0, err => console.log(err) ); diff --git a/src/app/shared/api-swagger/api/ep.service.ts b/src/app/shared/api-swagger/api/ep.service.ts index 884eb84..c2b9e8d 100644 --- a/src/app/shared/api-swagger/api/ep.service.ts +++ b/src/app/shared/api-swagger/api/ep.service.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.6 + * OpenAPI spec version: 1.3.7 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -10,1346 +10,1321 @@ * Do not edit the class manually. *//* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent } from '@angular/common/http'; -import { CustomHttpUrlEncodingCodec } from '../encoder'; - -import { Observable } from 'rxjs'; - -import { EpDTO } from '../model/epDTO'; -import { EpInformationDTO } from '../model/epInformationDTO'; -import { EpSaisieDTO } from '../model/epSaisieDTO'; -import { ErreurDTO } from '../model/erreurDTO'; - -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; - - -@Injectable() -export class EpService { - - protected basePath = 'https://localhost:44393/api'; - public defaultHeaders = new HttpHeaders(); - public configuration = new Configuration(); - - constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) { - if (basePath) { - this.basePath = basePath; - } - if (configuration) { - this.configuration = configuration; - this.basePath = basePath || configuration.basePath || this.basePath; - } - } - - /** - * @param consumes string[] mime-types - * @return true: consumes contains 'multipart/form-data', false: otherwise - */ - private canConsumeForm(consumes: string[]): boolean { - const form = 'multipart/form-data'; - for (const consume of consumes) { - if (form === consume) { - return true; - } - } - return false; - } - - - /** - * - * Annuler/Supprimer un EP d’un collaborateur. - * @param idEP Id d'un EP - * @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 deleteEP(idEP: number, observe?: 'body', reportProgress?: boolean): Observable; - public deleteEP(idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; - public deleteEP(idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; - public deleteEP(idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (idEP === null || idEP === undefined) { - throw new Error('Required parameter idEP was null or undefined when calling deleteEP.'); - } - - 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('delete',`${this.basePath}/ep/${encodeURIComponent(String(idEP))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Supprimer les EP d’un 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 deleteEPCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable; - public deleteEPCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>; - public deleteEPCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>; - public deleteEPCollaborateur(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 deleteEPCollaborateur.'); - } - - 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('delete',`${this.basePath}/ep/${encodeURIComponent(String(idCollaborateur))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer un EP par son id. - * @param idEP Id d'un EP - * @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 getEPById(idEP: number, observe?: 'body', reportProgress?: boolean): Observable; - public getEPById(idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; - public getEPById(idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; - public getEPById(idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (idEP === null || idEP === undefined) { - throw new Error('Required parameter idEP was null or undefined when calling getEPById.'); - } - - 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}/ep/${encodeURIComponent(String(idEP))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer la liste des EP en cours. - * @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 epObligatoire Récupérer la liste des EP obligatoires - * @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 getEPEnCours(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, epObligatoire?: boolean, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>; - public getEPEnCours(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, epObligatoire?: boolean, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>; - public getEPEnCours(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, epObligatoire?: boolean, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>; - public getEPEnCours(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, epObligatoire?: boolean, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (idBUs) { - idBUs.forEach((element) => { - queryParameters = queryParameters.append('idBUs', element); - }) - } - 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 (epObligatoire !== undefined && epObligatoire !== null) { - queryParameters = queryParameters.set('epObligatoire', epObligatoire); - } - 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; - - // 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}/ep/encours`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer les informations des EP en cours auxquels le collaborateur est participant. - * @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 getEPEnCoursCollaborateurParticipant(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable>; - public getEPEnCoursCollaborateurParticipant(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>>; - public getEPEnCoursCollaborateurParticipant(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>>; - public getEPEnCoursCollaborateurParticipant(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 getEPEnCoursCollaborateurParticipant.'); - } - - 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}/ep/participation/${encodeURIComponent(String(idCollaborateur))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer le nombre total d’informations des EP en cours auxquels le collaborateur est participant. - * @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 getEPEnCoursCollaborateurParticipantCount(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable; - public getEPEnCoursCollaborateurParticipantCount(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>; - public getEPEnCoursCollaborateurParticipantCount(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>; - public getEPEnCoursCollaborateurParticipantCount(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 getEPEnCoursCollaborateurParticipantCount.'); - } - - 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}/ep/participation/${encodeURIComponent(String(idCollaborateur))}/count`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer le nombre total d’EP en cours. - * @param idBUs liste des ids des BU auxquelles les données sont rattachées - * @param texte Texte permettant de filtrer les données - * @param epObligatoire Récupérer la liste des EP obligatoires - * @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 getEPEnCoursCount(idBUs?: Array, texte?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable; - public getEPEnCoursCount(idBUs?: Array, texte?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>; - public getEPEnCoursCount(idBUs?: Array, texte?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>; - public getEPEnCoursCount(idBUs?: Array, texte?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { - - - - - - - let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); - if (idBUs) { - idBUs.forEach((element) => { - queryParameters = queryParameters.append('idBUs', element); - }) - } - if (texte !== undefined && texte !== null) { - queryParameters = queryParameters.set('texte', texte); - } - if (epObligatoire !== undefined && epObligatoire !== null) { - queryParameters = queryParameters.set('epObligatoire', epObligatoire); - } - 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; - - // 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}/ep/encours/count`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer la liste des prochains EP 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 epObligatoire Récupérer la liste des EP obligatoires - * @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 getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>; - public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>; - public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>; - public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (idReferent === null || idReferent === undefined) { - throw new Error('Required parameter idReferent was null or undefined when calling getEPEnCoursReferent.'); - } - - - - - - - - - - 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 (epObligatoire !== undefined && epObligatoire !== null) { - queryParameters = queryParameters.set('epObligatoire', epObligatoire); - } - 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; - - // 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}/ep/encours/referent/${encodeURIComponent(String(idReferent))}`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer le nombre total de prochains EP 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 epObligatoire Récupérer la liste des EP obligatoires - * @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 getEPEnCoursReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable; - public getEPEnCoursReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>; - public getEPEnCoursReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>; - public getEPEnCoursReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (idReferent === null || idReferent === undefined) { - throw new Error('Required parameter idReferent was null or undefined when calling getEPEnCoursReferentCount.'); - } - - - - - - - - - - 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 (epObligatoire !== undefined && epObligatoire !== null) { - queryParameters = queryParameters.set('epObligatoire', epObligatoire); - } - 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; - - // 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}/ep/encours/referent/${encodeURIComponent(String(idReferent))}/count`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer l’EP à saisir d’un 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 getEPSaisieCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable; - public getEPSaisieCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>; - public getEPSaisieCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>; - public getEPSaisieCollaborateur(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 getEPSaisieCollaborateur.'); - } - - 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}/ep/saisie/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer l’EP à saisir d’un référent. - * @param idEP Id d'un EP - * @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 getEPSaisieReferent(idEP: number, observe?: 'body', reportProgress?: boolean): Observable; - public getEPSaisieReferent(idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; - public getEPSaisieReferent(idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; - public getEPSaisieReferent(idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (idEP === null || idEP === undefined) { - throw new Error('Required parameter idEP was null or undefined when calling getEPSaisieReferent.'); - } - - 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}/ep/saisie/referent/${encodeURIComponent(String(idEP))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer la liste des EP signés. - * @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 getEPSignes(idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>; - public getEPSignes(idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>; - public getEPSignes(idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>; - public getEPSignes(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 (idBUs) { - idBUs.forEach((element) => { - queryParameters = queryParameters.append('idBUs', element); - }) - } - 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 (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; - - // 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}/ep/signes`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer la liste des EP signés d’un 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 getEPSignesCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable>; - public getEPSignesCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>>; - public getEPSignesCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>>; - public getEPSignesCollaborateur(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 getEPSignesCollaborateur.'); - } - - 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}/ep/signes/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer le nombre total d’EP signés. - * @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 getEPSignesCount(idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable; - public getEPSignesCount(idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>; - public getEPSignesCount(idBUs?: Array, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>; - public getEPSignesCount(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 (idBUs) { - idBUs.forEach((element) => { - queryParameters = queryParameters.append('idBUs', element); - }) - } - 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 (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; - - // 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}/ep/signes/count`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer la liste des EP signés qu’un référent à fait passer. - * @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 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 getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>; - public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>; - public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>; - public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (idReferent === null || idReferent === undefined) { - throw new Error('Required parameter idReferent was null or undefined when calling getEPSignesReferent.'); - } - - - - - - - - - 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 (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; - - // 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}/ep/signes/referent/${encodeURIComponent(String(idReferent))}`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer le nombre total d’EP signés qu’un référent à fait passer. - * @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 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 getEPSignesReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable; - public getEPSignesReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>; - public getEPSignesReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>; - public getEPSignesReferentCount(idReferent: string, asc?: boolean, numPage?: number, parPAge?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (idReferent === null || idReferent === undefined) { - throw new Error('Required parameter idReferent was null or undefined when calling getEPSignesReferentCount.'); - } - - - - - - - - - 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 (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; - - // 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}/ep/signes/referent/${encodeURIComponent(String(idReferent))}/count`, - { - params: queryParameters, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Récupérer le prochain 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 getProchainEPCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable; - public getProchainEPCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>; - public getProchainEPCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>; - public getProchainEPCollaborateur(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 getProchainEPCollaborateur.'); - } - - 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}/ep/encours/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Effectuer un rappel de signature. - * @param idEP Id d'un EP - * @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 rappelSignature(idEP: number, observe?: 'body', reportProgress?: boolean): Observable; - public rappelSignature(idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; - public rappelSignature(idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; - public rappelSignature(idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable { - - if (idEP === null || idEP === undefined) { - throw new Error('Required parameter idEP was null or undefined when calling rappelSignature.'); - } - - 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}/ep/${encodeURIComponent(String(idEP))}/rappelsignature`, - { - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Mettre à jour les informations d’un EP. - * @param body - * @param idEP Id d'un EP - * @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 updateEP(body: EpDTO, idEP: number, observe?: 'body', reportProgress?: boolean): Observable; - public updateEP(body: EpDTO, idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; - public updateEP(body: EpDTO, idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; - public updateEP(body: EpDTO, idEP: 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 updateEP.'); - } - - if (idEP === null || idEP === undefined) { - throw new Error('Required parameter idEP was null or undefined when calling updateEP.'); - } - - 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[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/ep/${encodeURIComponent(String(idEP))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - - /** - * - * Sauvegarder une saisie EP. - * @param body - * @param idEP Id d'un EP - * @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 updateEPSaisie(body: EpSaisieDTO, idEP: number, observe?: 'body', reportProgress?: boolean): Observable; - public updateEPSaisie(body: EpSaisieDTO, idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; - public updateEPSaisie(body: EpSaisieDTO, idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; - public updateEPSaisie(body: EpSaisieDTO, idEP: 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 updateEPSaisie.'); - } - - if (idEP === null || idEP === undefined) { - throw new Error('Required parameter idEP was null or undefined when calling updateEPSaisie.'); - } - - 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[] = [ - 'application/json' - ]; - const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); - if (httpContentTypeSelected != undefined) { - headers = headers.set('Content-Type', httpContentTypeSelected); - } - - return this.httpClient.request('put',`${this.basePath}/ep/saisie/${encodeURIComponent(String(idEP))}`, - { - body: body, - withCredentials: this.configuration.withCredentials, - headers: headers, - observe: observe, - reportProgress: reportProgress - } - ); - } - -} + import { Inject, Injectable, Optional } from '@angular/core'; + import { HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent } from '@angular/common/http'; + import { CustomHttpUrlEncodingCodec } from '../encoder'; + + import { Observable } from 'rxjs'; + + import { EpDTO } from '../model/epDTO'; + import { EpInformationDTO } from '../model/epInformationDTO'; + import { EpSaisieDTO } from '../model/epSaisieDTO'; + import { ErreurDTO } from '../model/erreurDTO'; + import { TypeEntretienDTO } from '../model/typeEntretienDTO'; + + import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; + import { Configuration } from '../configuration'; + + + @Injectable() + export class EpService { + + protected basePath = 'https://localhost:44393/api'; + public defaultHeaders = new HttpHeaders(); + public configuration = new Configuration(); + + constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) { + if (basePath) { + this.basePath = basePath; + } + if (configuration) { + this.configuration = configuration; + this.basePath = basePath || configuration.basePath || this.basePath; + } + } + + /** + * @param consumes string[] mime-types + * @return true: consumes contains 'multipart/form-data', false: otherwise + */ + private canConsumeForm(consumes: string[]): boolean { + const form = 'multipart/form-data'; + for (const consume of consumes) { + if (form === consume) { + return true; + } + } + return false; + } + + + /** + * + * Annuler/Supprimer un EP d’un collaborateur. + * @param idEP Id d'un EP + * @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 deleteEP(idEP: number, observe?: 'body', reportProgress?: boolean): Observable; + public deleteEP(idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; + public deleteEP(idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; + public deleteEP(idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (idEP === null || idEP === undefined) { + throw new Error('Required parameter idEP was null or undefined when calling deleteEP.'); + } + + 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('delete',`${this.basePath}/ep/${encodeURIComponent(String(idEP))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Supprimer les EP d’un 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 deleteEPCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable; + public deleteEPCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>; + public deleteEPCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>; + public deleteEPCollaborateur(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 deleteEPCollaborateur.'); + } + + 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('delete',`${this.basePath}/ep/${encodeURIComponent(String(idCollaborateur))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer un EP par son id. + * @param idEP Id d'un EP + * @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 getEPById(idEP: number, observe?: 'body', reportProgress?: boolean): Observable; + public getEPById(idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; + public getEPById(idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; + public getEPById(idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (idEP === null || idEP === undefined) { + throw new Error('Required parameter idEP was null or undefined when calling getEPById.'); + } + + 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}/ep/${encodeURIComponent(String(idEP))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer la liste des EP en cours. + * @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 epObligatoire Récupérer la liste des EP obligatoires + * @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 getEPEnCours(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, epObligatoire?: boolean, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>; + public getEPEnCours(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, epObligatoire?: boolean, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>; + public getEPEnCours(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, epObligatoire?: boolean, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>; + public getEPEnCours(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, epObligatoire?: boolean, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (idBUs) { + idBUs.forEach((element) => { + queryParameters = queryParameters.append('idBUs', element); + }) + } + 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 (epObligatoire !== undefined && epObligatoire !== null) { + queryParameters = queryParameters.set('epObligatoire', epObligatoire); + } + 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; + + // 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}/ep/encours`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer les informations des EP en cours auxquels le collaborateur est participant. + * @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 getEPEnCoursCollaborateurParticipant(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable>; + public getEPEnCoursCollaborateurParticipant(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>>; + public getEPEnCoursCollaborateurParticipant(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>>; + public getEPEnCoursCollaborateurParticipant(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 getEPEnCoursCollaborateurParticipant.'); + } + + 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}/ep/participation/${encodeURIComponent(String(idCollaborateur))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer le nombre total d’informations des EP en cours auxquels le collaborateur est participant. + * @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 getEPEnCoursCollaborateurParticipantCount(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable; + public getEPEnCoursCollaborateurParticipantCount(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>; + public getEPEnCoursCollaborateurParticipantCount(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>; + public getEPEnCoursCollaborateurParticipantCount(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 getEPEnCoursCollaborateurParticipantCount.'); + } + + 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}/ep/participation/${encodeURIComponent(String(idCollaborateur))}/count`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer le nombre total d’EP en cours. + * @param idBUs liste des ids des BU auxquelles les données sont rattachées + * @param texte Texte permettant de filtrer les données + * @param epObligatoire Récupérer la liste des EP obligatoires + * @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 getEPEnCoursCount(idBUs?: Array, texte?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable; + public getEPEnCoursCount(idBUs?: Array, texte?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>; + public getEPEnCoursCount(idBUs?: Array, texte?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>; + public getEPEnCoursCount(idBUs?: Array, texte?: string, epObligatoire?: boolean, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (idBUs) { + idBUs.forEach((element) => { + queryParameters = queryParameters.append('idBUs', element); + }) + } + if (texte !== undefined && texte !== null) { + queryParameters = queryParameters.set('texte', texte); + } + if (epObligatoire !== undefined && epObligatoire !== null) { + queryParameters = queryParameters.set('epObligatoire', epObligatoire); + } + 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; + + // 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}/ep/encours/count`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer la liste des prochains EP 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 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 getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>; + public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>; + public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>; + public getEPEnCoursReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (idReferent === null || idReferent === undefined) { + throw new Error('Required parameter idReferent was null or undefined when calling getEPEnCoursReferent.'); + } + + + + + + + + + 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 (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; + + // 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}/ep/encours/referent/${encodeURIComponent(String(idReferent))}`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer le nombre total de prochains EP d’un référent. + * @param idReferent Id d'un référent + * @param texte Texte permettant de filtrer les données + * @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 getEPEnCoursReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable; + public getEPEnCoursReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>; + public getEPEnCoursReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>; + public getEPEnCoursReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (idReferent === null || idReferent === undefined) { + throw new Error('Required parameter idReferent was null or undefined when calling getEPEnCoursReferentCount.'); + } + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (texte !== undefined && texte !== null) { + queryParameters = queryParameters.set('texte', texte); + } + 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; + + // 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}/ep/encours/referent/${encodeURIComponent(String(idReferent))}/count`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer l’EP à saisir d’un 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 getEPSaisieCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable; + public getEPSaisieCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>; + public getEPSaisieCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>; + public getEPSaisieCollaborateur(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 getEPSaisieCollaborateur.'); + } + + 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}/ep/saisie/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer l’EP à saisir d’un référent. + * @param idEP Id d'un EP + * @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 getEPSaisieReferent(idEP: number, observe?: 'body', reportProgress?: boolean): Observable; + public getEPSaisieReferent(idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; + public getEPSaisieReferent(idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; + public getEPSaisieReferent(idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (idEP === null || idEP === undefined) { + throw new Error('Required parameter idEP was null or undefined when calling getEPSaisieReferent.'); + } + + 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}/ep/saisie/referent/${encodeURIComponent(String(idEP))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer la liste des EP signés. + * @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 getEPSignes(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>; + public getEPSignes(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>; + public getEPSignes(idBUs?: Array, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>; + public getEPSignes(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 (idBUs) { + idBUs.forEach((element) => { + queryParameters = queryParameters.append('idBUs', element); + }) + } + 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 (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; + + // 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}/ep/signes`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer la liste des EP signés d’un 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 getEPSignesCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable>; + public getEPSignesCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>>; + public getEPSignesCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>>; + public getEPSignesCollaborateur(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 getEPSignesCollaborateur.'); + } + + 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}/ep/signes/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer le nombre total d’EP signés. + * @param idBUs liste des ids des BU auxquelles les données sont rattachées + * @param texte Texte permettant de filtrer les données + * @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 getEPSignesCount(idBUs?: Array, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable; + public getEPSignesCount(idBUs?: Array, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>; + public getEPSignesCount(idBUs?: Array, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>; + public getEPSignesCount(idBUs?: Array, texte?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { + + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (idBUs) { + idBUs.forEach((element) => { + queryParameters = queryParameters.append('idBUs', element); + }) + } + if (texte !== undefined && texte !== null) { + queryParameters = queryParameters.set('texte', texte); + } + 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; + + // 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}/ep/signes/count`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer la liste des EP signés qu’un référent à fait passer. + * @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 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 getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable>; + public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>>; + public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>>; + public getEPSignesReferent(idReferent: string, asc?: boolean, numPage?: number, parPage?: number, texte?: string, tri?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (idReferent === null || idReferent === undefined) { + throw new Error('Required parameter idReferent was null or undefined when calling getEPSignesReferent.'); + } + + + + + + + + + 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 (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; + + // 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}/ep/signes/referent/${encodeURIComponent(String(idReferent))}`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer le nombre total d’EP signés qu’un référent à fait passer. + * @param idReferent Id d'un référent + * @param texte Texte permettant de filtrer les données + * @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 getEPSignesReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'body', reportProgress?: boolean): Observable; + public getEPSignesReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'response', reportProgress?: boolean): Observable>; + public getEPSignesReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe?: 'events', reportProgress?: boolean): Observable>; + public getEPSignesReferentCount(idReferent: string, texte?: string, dateDebut?: Date, dateFin?: Date, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (idReferent === null || idReferent === undefined) { + throw new Error('Required parameter idReferent was null or undefined when calling getEPSignesReferentCount.'); + } + + + + + let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); + if (texte !== undefined && texte !== null) { + queryParameters = queryParameters.set('texte', texte); + } + 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; + + // 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}/ep/signes/referent/${encodeURIComponent(String(idReferent))}/count`, + { + params: queryParameters, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer le prochain 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 getProchainEPCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable; + public getProchainEPCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable>; + public getProchainEPCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable>; + public getProchainEPCollaborateur(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 getProchainEPCollaborateur.'); + } + + 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}/ep/encours/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Récupérer la liste des types d'entretiens EP possible + * @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 getTypesEntretien(observe?: 'body', reportProgress?: boolean): Observable>; + public getTypesEntretien(observe?: 'response', reportProgress?: boolean): Observable>>; + public getTypesEntretien(observe?: 'events', reportProgress?: boolean): Observable>>; + public getTypesEntretien(observe: any = 'body', reportProgress: boolean = false ): Observable { + + 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}/typesentretien`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Effectuer un rappel de signature. + * @param idEP Id d'un EP + * @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 rappelSignature(idEP: number, observe?: 'body', reportProgress?: boolean): Observable; + public rappelSignature(idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; + public rappelSignature(idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; + public rappelSignature(idEP: number, observe: any = 'body', reportProgress: boolean = false ): Observable { + + if (idEP === null || idEP === undefined) { + throw new Error('Required parameter idEP was null or undefined when calling rappelSignature.'); + } + + 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}/ep/${encodeURIComponent(String(idEP))}/rappelsignature`, + { + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Mettre à jour les informations d’un EP. + * @param body + * @param idEP Id d'un EP + * @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 updateEP(body: EpDTO, idEP: number, observe?: 'body', reportProgress?: boolean): Observable; + public updateEP(body: EpDTO, idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; + public updateEP(body: EpDTO, idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; + public updateEP(body: EpDTO, idEP: 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 updateEP.'); + } + + if (idEP === null || idEP === undefined) { + throw new Error('Required parameter idEP was null or undefined when calling updateEP.'); + } + + 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[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/ep/${encodeURIComponent(String(idEP))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + /** + * + * Sauvegarder une saisie EP. + * @param body + * @param idEP Id d'un EP + * @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 updateEPSaisie(body: EpSaisieDTO, idEP: number, observe?: 'body', reportProgress?: boolean): Observable; + public updateEPSaisie(body: EpSaisieDTO, idEP: number, observe?: 'response', reportProgress?: boolean): Observable>; + public updateEPSaisie(body: EpSaisieDTO, idEP: number, observe?: 'events', reportProgress?: boolean): Observable>; + public updateEPSaisie(body: EpSaisieDTO, idEP: 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 updateEPSaisie.'); + } + + if (idEP === null || idEP === undefined) { + throw new Error('Required parameter idEP was null or undefined when calling updateEPSaisie.'); + } + + 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[] = [ + 'application/json' + ]; + const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes); + if (httpContentTypeSelected != undefined) { + headers = headers.set('Content-Type', httpContentTypeSelected); + } + + return this.httpClient.request('put',`${this.basePath}/ep/saisie/${encodeURIComponent(String(idEP))}`, + { + body: body, + withCredentials: this.configuration.withCredentials, + headers: headers, + observe: observe, + reportProgress: reportProgress + } + ); + } + + } + \ 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 e1bd137..abf95df 100644 --- a/src/app/shared/api-swagger/model/epDTO.ts +++ b/src/app/shared/api-swagger/model/epDTO.ts @@ -61,7 +61,7 @@ export interface EpDTO { cv: string; propositionsEntretien?: Array; rdvEntretien?: RDVEntretienDTO; - choixTypeEntretien?: TypeEntretienDTO; + choixTypeEntretien?: Array; /** * Indique si oui ou non l'EP doit obligatoirement être effectué */ diff --git a/src/app/shared/mat-tables/ep-table/ep-table.ts b/src/app/shared/mat-tables/ep-table/ep-table.ts index 45cd444..fe0ab6c 100644 --- a/src/app/shared/mat-tables/ep-table/ep-table.ts +++ b/src/app/shared/mat-tables/ep-table/ep-table.ts @@ -133,7 +133,7 @@ export class EpTableComponent implements OnInit{ this.epSubscription = this.epService.getEPSignesReferent(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe( eps => { this.dataSource = new MatTableDataSource(eps); - this.epCountSubscription = this.epService.getEPSignesReferentCount(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe( + this.epCountSubscription = this.epService.getEPSignesReferentCount(this.idCollaborateur, this.search, this.dateDebut, this.dateFin).subscribe( count => this.taille = count, err => console.log(err) ); @@ -143,10 +143,10 @@ export class EpTableComponent implements OnInit{ } getEPEnCoursReferent() { - this.epSubscription = this.epService.getEPEnCoursReferent(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, true, this.dateDebut, this.dateFin ).subscribe( + this.epSubscription = this.epService.getEPEnCoursReferent(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin ).subscribe( eps => { this.dataSource = new MatTableDataSource(eps); - this.epCountSubscription = this.epService.getEPSignesReferentCount(this.idCollaborateur, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin ).subscribe( + this.epCountSubscription = this.epService.getEPSignesReferentCount(this.idCollaborateur, this.search, this.dateDebut, this.dateFin ).subscribe( count => this.taille = count, err => console.log(err) ); @@ -185,7 +185,7 @@ export class EpTableComponent implements OnInit{ eps => { console.log(eps); this.dataSource = new MatTableDataSource(eps); - this.epCountSubscription = this.epService.getEPSignesCount(this.busIds, this.asc, this.numPage, this.parPage, this.search, this.tri, this.dateDebut, this.dateFin).subscribe( + this.epCountSubscription = this.epService.getEPSignesCount(this.busIds, this.search, this.dateDebut, this.dateFin).subscribe( count => this.taille = count, err => console.log(err) );