parent
08326f07ac
commit
4441911026
File diff suppressed because it is too large
Load Diff
@ -1,337 +0,0 @@ |
||||
/** |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.5 |
||||
* |
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*//* 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 { ErreurDTO } from '../model/erreurDTO'; |
||||
import { CollaborateurDTO } from '../model/models'; |
||||
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; |
||||
import { Configuration } from '../configuration'; |
||||
|
||||
|
||||
@Injectable() |
||||
export class ReferentsService { |
||||
|
||||
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; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* |
||||
* Récupérer le référent d'un collaborateur |
||||
* @param idCollaborateur id 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 getReferentActuelCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable<ReferentDTO>; |
||||
public getReferentActuelCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ReferentDTO>>; |
||||
public getReferentActuelCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ReferentDTO>>; |
||||
public getReferentActuelCollaborateur(idCollaborateur: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { |
||||
|
||||
if (idCollaborateur === null || idCollaborateur === undefined) { |
||||
throw new Error('Required parameter idCollaborateur was null or undefined when calling getReferentActuelCollaborateur.'); |
||||
} |
||||
|
||||
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<ReferentDTO>('get',`${this.basePath}/referents/actuel/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, |
||||
{ |
||||
withCredentials: this.configuration.withCredentials, |
||||
headers: headers, |
||||
observe: observe, |
||||
reportProgress: reportProgress |
||||
} |
||||
); |
||||
} |
||||
|
||||
/** |
||||
* |
||||
* Récupérer un referent par son id |
||||
* @param idReferent id referent |
||||
* @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 getReferentById(idReferent: string, observe?: 'body', reportProgress?: boolean): Observable<ReferentDTO>; |
||||
public getReferentById(idReferent: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ReferentDTO>>; |
||||
public getReferentById(idReferent: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ReferentDTO>>; |
||||
public getReferentById(idReferent: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { |
||||
|
||||
if (idReferent === null || idReferent === undefined) { |
||||
throw new Error('Required parameter idReferent was null or undefined when calling getReferentById.'); |
||||
} |
||||
|
||||
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<ReferentDTO>('get',`${this.basePath}/referents/${encodeURIComponent(String(idReferent))}`, |
||||
{ |
||||
withCredentials: this.configuration.withCredentials, |
||||
headers: headers, |
||||
observe: observe, |
||||
reportProgress: reportProgress |
||||
} |
||||
); |
||||
} |
||||
|
||||
/** |
||||
* |
||||
* Récupérer la liste de tous les referents |
||||
* @param asc Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false) |
||||
* @param numPage Numéro de la page du tableau qui affiche les données |
||||
* @param parPAge Nombre d'éléments affiché sur chaque page du tableau |
||||
* @param fonctions Liste des fonctions des collaborateurs que l'on veut récupérer |
||||
* @param idAgence id de l'agence à laquelle sont rattachées les données à récupérer |
||||
* @param idBU id de la business unit à laquelle sont rattachées les données à récupérer |
||||
* @param texte Texte permettant d'identifier l'objet rechercher |
||||
* @param tri Colonne du tableau sur lequel le tri s'effectue |
||||
* @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 getReferents(asc: boolean, numPage: number, parPAge: number, fonctions?: Array<string>, idAgence?: number, idBU?: number, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable<Array<ReferentDTO>>; |
||||
public getReferents(asc: boolean, numPage: number, parPAge: number, fonctions?: Array<string>, idAgence?: number, idBU?: number, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<ReferentDTO>>>; |
||||
public getReferents(asc: boolean, numPage: number, parPAge: number, fonctions?: Array<string>, idAgence?: number, idBU?: number, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<ReferentDTO>>>; |
||||
public getReferents(asc: boolean, numPage: number, parPAge: number, fonctions?: Array<string>, idAgence?: number, idBU?: number, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { |
||||
|
||||
if (asc === null || asc === undefined) { |
||||
throw new Error('Required parameter asc was null or undefined when calling getReferents.'); |
||||
} |
||||
|
||||
if (numPage === null || numPage === undefined) { |
||||
throw new Error('Required parameter numPage was null or undefined when calling getReferents.'); |
||||
} |
||||
|
||||
if (parPAge === null || parPAge === undefined) { |
||||
throw new Error('Required parameter parPAge was null or undefined when calling getReferents.'); |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); |
||||
if (asc !== undefined && asc !== null) { |
||||
queryParameters = queryParameters.set('asc', <any>asc); |
||||
} |
||||
if (fonctions) { |
||||
fonctions.forEach((element) => { |
||||
queryParameters = queryParameters.append('fonctions', <any>element); |
||||
}) |
||||
} |
||||
if (idAgence !== undefined && idAgence !== null) { |
||||
queryParameters = queryParameters.set('idAgence', <any>idAgence); |
||||
} |
||||
if (idBU !== undefined && idBU !== null) { |
||||
queryParameters = queryParameters.set('idBU', <any>idBU); |
||||
} |
||||
if (numPage !== undefined && numPage !== null) { |
||||
queryParameters = queryParameters.set('numPage', <any>numPage); |
||||
} |
||||
if (parPAge !== undefined && parPAge !== null) { |
||||
queryParameters = queryParameters.set('parPAge', <any>parPAge); |
||||
} |
||||
if (texte !== undefined && texte !== null) { |
||||
queryParameters = queryParameters.set('texte', <any>texte); |
||||
} |
||||
if (tri !== undefined && tri !== null) { |
||||
queryParameters = queryParameters.set('tri', <any>tri); |
||||
} |
||||
|
||||
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<Array<ReferentDTO>>('get',`${this.basePath}/referents`, |
||||
{ |
||||
params: queryParameters, |
||||
withCredentials: this.configuration.withCredentials, |
||||
headers: headers, |
||||
observe: observe, |
||||
reportProgress: reportProgress |
||||
} |
||||
); |
||||
} |
||||
|
||||
/** |
||||
* |
||||
* Récupérer la liste des référents d'un collaborateur |
||||
* @param asc Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false) |
||||
* @param idCollaborateur id collaborateur |
||||
* @param numPage Numéro de la page du tableau qui affiche les données |
||||
* @param parPAge Nombre d'éléments affiché sur chaque page du tableau |
||||
* @param texte Texte permettant d'identifier l'objet rechercher |
||||
* @param tri Colonne du tableau sur lequel le tri s'effectue |
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. |
||||
* @param reportProgress flag to report request and response progress. |
||||
*/ |
||||
public getReferentsByCollaborateur(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, texte?: string, tri?: string, observe?: 'body', reportProgress?: boolean): Observable<Array<ReferentDTO>>; |
||||
public getReferentsByCollaborateur(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, texte?: string, tri?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<ReferentDTO>>>; |
||||
public getReferentsByCollaborateur(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, texte?: string, tri?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<ReferentDTO>>>; |
||||
public getReferentsByCollaborateur(asc: boolean, idCollaborateur: string, numPage: number, parPAge: number, texte?: string, tri?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { |
||||
|
||||
if (asc === null || asc === undefined) { |
||||
throw new Error('Required parameter asc was null or undefined when calling getReferentsByCollaborateur.'); |
||||
} |
||||
|
||||
if (idCollaborateur === null || idCollaborateur === undefined) { |
||||
throw new Error('Required parameter idCollaborateur was null or undefined when calling getReferentsByCollaborateur.'); |
||||
} |
||||
|
||||
if (numPage === null || numPage === undefined) { |
||||
throw new Error('Required parameter numPage was null or undefined when calling getReferentsByCollaborateur.'); |
||||
} |
||||
|
||||
if (parPAge === null || parPAge === undefined) { |
||||
throw new Error('Required parameter parPAge was null or undefined when calling getReferentsByCollaborateur.'); |
||||
} |
||||
|
||||
|
||||
|
||||
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()}); |
||||
if (asc !== undefined && asc !== null) { |
||||
queryParameters = queryParameters.set('asc', <any>asc); |
||||
} |
||||
if (numPage !== undefined && numPage !== null) { |
||||
queryParameters = queryParameters.set('numPage', <any>numPage); |
||||
} |
||||
if (parPAge !== undefined && parPAge !== null) { |
||||
queryParameters = queryParameters.set('parPAge', <any>parPAge); |
||||
} |
||||
if (texte !== undefined && texte !== null) { |
||||
queryParameters = queryParameters.set('texte', <any>texte); |
||||
} |
||||
if (tri !== undefined && tri !== null) { |
||||
queryParameters = queryParameters.set('tri', <any>tri); |
||||
} |
||||
|
||||
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<Array<ReferentDTO>>('get',`${this.basePath}/referents/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, |
||||
{ |
||||
params: queryParameters, |
||||
withCredentials: this.configuration.withCredentials, |
||||
headers: headers, |
||||
observe: observe, |
||||
reportProgress: reportProgress |
||||
} |
||||
); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,177 @@ |
||||
/** |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.6 |
||||
*
|
||||
* |
||||
* NOTE: This class is auto generated by the swagger code generator program. |
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually. |
||||
*//* 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 { ErreurDTO } from '../model/erreurDTO'; |
||||
import { ReferentEPDTO } from '../model/referentEPDTO'; |
||||
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; |
||||
import { Configuration } from '../configuration'; |
||||
|
||||
|
||||
@Injectable() |
||||
export class ReferentsEPService { |
||||
|
||||
protected basePath = 'http://localhost:3000/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; |
||||
} |
||||
|
||||
|
||||
/** |
||||
*
|
||||
* Mettre à jour les collaborateurs d'un référent. |
||||
* @param body
|
||||
* @param idReferent Id d'un référent |
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. |
||||
* @param reportProgress flag to report request and response progress. |
||||
*/ |
||||
public updateCollaborateursReferent(body: ReferentEPDTO, idReferent: string, observe?: 'body', reportProgress?: boolean): Observable<ReferentEPDTO>; |
||||
public updateCollaborateursReferent(body: ReferentEPDTO, idReferent: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ReferentEPDTO>>; |
||||
public updateCollaborateursReferent(body: ReferentEPDTO, idReferent: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ReferentEPDTO>>; |
||||
public updateCollaborateursReferent(body: ReferentEPDTO, idReferent: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { |
||||
|
||||
if (body === null || body === undefined) { |
||||
throw new Error('Required parameter body was null or undefined when calling updateCollaborateursReferent.'); |
||||
} |
||||
|
||||
if (idReferent === null || idReferent === undefined) { |
||||
throw new Error('Required parameter idReferent was null or undefined when calling updateCollaborateursReferent.'); |
||||
} |
||||
|
||||
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<ReferentEPDTO>('put',`${this.basePath}/referentsep/referent/${encodeURIComponent(String(idReferent))}`, |
||||
{ |
||||
body: body, |
||||
withCredentials: this.configuration.withCredentials, |
||||
headers: headers, |
||||
observe: observe, |
||||
reportProgress: reportProgress |
||||
} |
||||
); |
||||
} |
||||
|
||||
/** |
||||
*
|
||||
* Mettre à jour le référent d'un collaborateur. |
||||
* @param body
|
||||
* @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 updateReferentCollaborateur(body: ReferentEPDTO, idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable<ReferentEPDTO>; |
||||
public updateReferentCollaborateur(body: ReferentEPDTO, idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ReferentEPDTO>>; |
||||
public updateReferentCollaborateur(body: ReferentEPDTO, idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ReferentEPDTO>>; |
||||
public updateReferentCollaborateur(body: ReferentEPDTO, idCollaborateur: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> { |
||||
|
||||
if (body === null || body === undefined) { |
||||
throw new Error('Required parameter body was null or undefined when calling updateReferentCollaborateur.'); |
||||
} |
||||
|
||||
if (idCollaborateur === null || idCollaborateur === undefined) { |
||||
throw new Error('Required parameter idCollaborateur was null or undefined when calling updateReferentCollaborateur.'); |
||||
} |
||||
|
||||
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<ReferentEPDTO>('put',`${this.basePath}/referentsep/collaborateur/${encodeURIComponent(String(idCollaborateur))}`, |
||||
{ |
||||
body: body, |
||||
withCredentials: this.configuration.withCredentials, |
||||
headers: headers, |
||||
observe: observe, |
||||
reportProgress: reportProgress |
||||
} |
||||
); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue