mise à jour api_swagger

master
Yanaël GRETTE 4 years ago
parent 90f188b244
commit c4a57bf458
  1. 16
      src/app/collaborateurs/collaborateurs.component.ts
  2. 4
      src/app/collaborateurs/details-collaborateur/details-collaborateur.component.html
  3. 12
      src/app/collaborateurs/details-collaborateur/details-collaborateur.component.ts
  4. 2
      src/app/home/home-assistante/home-assistante.component.html
  5. 40
      src/app/home/home-assistante/home-assistante.component.ts
  6. 2
      src/app/referents/details-referent/details-referent.component.html
  7. 8
      src/app/referents/details-referent/details-referent.component.ts
  8. 10
      src/app/referents/referents.component.ts
  9. 12
      src/app/shared/api-swagger/api.module.ts
  10. 14
      src/app/shared/api-swagger/api/api.ts
  11. 279
      src/app/shared/api-swagger/api/collaborateurs.service.ts
  12. 1296
      src/app/shared/api-swagger/api/default.service.ts
  13. 223
      src/app/shared/api-swagger/api/demandesformation.service.ts
  14. 566
      src/app/shared/api-swagger/api/ep.service.ts
  15. 319
      src/app/shared/api-swagger/api/formations.service.ts
  16. 221
      src/app/shared/api-swagger/api/referents.service.ts
  17. 18
      src/app/shared/api-swagger/model/agenceModel.ts
  18. 10
      src/app/shared/api-swagger/model/augmentationSalaireModel.ts
  19. 8
      src/app/shared/api-swagger/model/businessUnitModel.ts
  20. 6
      src/app/shared/api-swagger/model/champModel.ts
  21. 21
      src/app/shared/api-swagger/model/collaborateurModel.ts
  22. 6
      src/app/shared/api-swagger/model/critereModel.ts
  23. 8
      src/app/shared/api-swagger/model/demandeDelegationModel.ts
  24. 6
      src/app/shared/api-swagger/model/demandeFormationModel.ts
  25. 22
      src/app/shared/api-swagger/model/engagementModel.ts
  26. 25
      src/app/shared/api-swagger/model/epModel.ts
  27. 4
      src/app/shared/api-swagger/model/erreurModel.ts
  28. 6
      src/app/shared/api-swagger/model/evaluationFormationModel.ts
  29. 9
      src/app/shared/api-swagger/model/formationModel.ts
  30. 4
      src/app/shared/api-swagger/model/models.ts
  31. 19
      src/app/shared/api-swagger/model/notificationModel.ts
  32. 19
      src/app/shared/api-swagger/model/participationEPModel.ts
  33. 4
      src/app/shared/api-swagger/model/participationFormationModel.ts
  34. 28
      src/app/shared/api-swagger/model/particpantModel.ts
  35. 6
      src/app/shared/api-swagger/model/rDVEntretienModel.ts
  36. 4
      src/app/shared/api-swagger/model/saisieBoolTexteModel.ts
  37. 4
      src/app/shared/api-swagger/model/saisieDeuxTextesModel.ts
  38. 7
      src/app/shared/api-swagger/model/saisieModel.ts
  39. 4
      src/app/shared/api-swagger/model/saisieNoteTexteModel.ts
  40. 4
      src/app/shared/api-swagger/model/saisieObjectifsModel.ts
  41. 4
      src/app/shared/api-swagger/model/saisieUnBoolModel.ts
  42. 4
      src/app/shared/api-swagger/model/saisieUnTexteModel.ts
  43. 4
      src/app/shared/api-swagger/model/themeModel.ts

@ -6,9 +6,9 @@ import {MatTableDataSource} from '@angular/material/table';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
import { DefaultService } from "@shared/api-swagger/api/api";
import { CollaborateursService } from "@shared/api-swagger/api/api";
import { CollaborateurModel } from "@shared/api-swagger/model/collaborateurModel";
import { CollaborateurModel } from "@shared/api-swagger/model/models";
import { DisplayCollaborateur } from "@shared/displayInfo/displayCollaborateur";
/**
@ -49,10 +49,10 @@ export class CollaborateursComponent implements OnInit {
* Spécifie si la liste des EP est en cours de chargement et d'écriture dans le tableau.
*/
chargement = true;
constructor(private service: DefaultService) {}
constructor(private service: CollaborateursService) {}
ngOnInit() {
this. collaborateursDisponiblesSubscription = this.service.collaborateursBuIdBuGet("ui").subscribe(
this. collaborateursDisponiblesSubscription = this.service.getCollaborateurs(undefined,undefined,undefined,1).subscribe(
collaborateurs => {
this.initCollaborateur(collaborateurs)
}
@ -66,12 +66,12 @@ export class CollaborateursComponent implements OnInit {
console.log(collaborateurs);
for(let c of collaborateurs) {
collaborateurDisplay = new DisplayCollaborateur();
collaborateurDisplay.id = c.idCollaborateur;
collaborateurDisplay.id = c.id;
collaborateurDisplay.prenom = c.prenom;
collaborateurDisplay.nom = c.nom;
collaborateurDisplay.agence = c.businessunit.nom;
collaborateurDisplay.embauche = c.dateEmbauche;
collaborateurDisplay.anciennete = this.setAnciennete(new Date(c.dateEmbauche), today);
collaborateurDisplay.agence = c.businessUnit.nom;
collaborateurDisplay.embauche = c.dateArrive;
collaborateurDisplay.anciennete = this.setAnciennete(new Date(c.dateArrive), today);
collaborateurDisplay.annee = Math.floor(collaborateurDisplay.anciennete / 31536000000);
collaborateurDisplay.mois = Math.floor(collaborateurDisplay.anciennete / 2629800000 % 12);
this.collaborateursDisponibles.push(collaborateurDisplay);

@ -2,8 +2,8 @@
<ng-container *ngIf="collaborateur!=null">
<h2>{{ collaborateur.prenom }} {{ collaborateur.nom }} </h2>
<h3>Agence : {{ collaborateur.businessunit.nom}}</h3>
<h3>Date embauche : {{ collaborateur.dateEmbauche}}</h3>
<h3>Agence : {{ collaborateur.businessUnit.nom}}</h3>
<h3>Date embauche : {{ collaborateur.dateArrive}}</h3>
</ng-container>
<ng-container *ngIf="collaborateur==null || !eploaded">
<mat-spinner></mat-spinner>

@ -7,7 +7,7 @@ import {MatTableDataSource} from '@angular/material/table';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
import { DefaultService } from "@shared/api-swagger/api/api";
import { CollaborateursService, EpService } from "@shared/api-swagger/api/api";
import { CollaborateurModel } from "@shared/api-swagger/model/collaborateurModel";
import { EpModel } from "@shared/api-swagger/model/epModel";
@ -40,11 +40,11 @@ export class DetailsCollaborateurComponent implements OnInit {
*/
@ViewChild(MatSort) sort: MatSort;
constructor(private service:DefaultService, private route: ActivatedRoute) {}
constructor(private collaborateusrService:CollaborateursService, private epService:EpService, private route: ActivatedRoute) {}
ngOnInit() {
this.idCollaborateur = this.route.snapshot.paramMap.get('id');
this.collaborateurSubscription = this.service.collaborateursIdCollaborateurGet(this.idCollaborateur).subscribe(
this.collaborateurSubscription = this.collaborateusrService.getCollaborateurById(this.idCollaborateur).subscribe(
collaborateur => this.initCollaborateur(collaborateur[0]),
err => console.log(err)
);
@ -52,7 +52,7 @@ export class DetailsCollaborateurComponent implements OnInit {
initCollaborateur(collaborateur:CollaborateurModel) {
this.collaborateur = collaborateur;
this.epSubscription = this.service.epCollaborateurIdCollaborateurGet(this.idCollaborateur).subscribe(
this.epSubscription = this.epService.getEPByCollaborateur(this.idCollaborateur).subscribe(
ep => this.initEP(ep)
)
}
@ -62,10 +62,10 @@ export class DetailsCollaborateurComponent implements OnInit {
let epDisplay : DisplayEP;
for(let un_ep of ep) {
epDisplay = new DisplayEP();
epDisplay.id = un_ep.idEp;
epDisplay.id = un_ep.id;
epDisplay.referent = un_ep.referent;
epDisplay.etat = un_ep.etat;
epDisplay.type = un_ep.typeEP;
epDisplay.type = un_ep.type;
epDisplay.dateentretien = un_ep.dateEntretien;
this.epEffectues.push(epDisplay);
}

@ -26,7 +26,7 @@
<ng-container matColumnDef="anciennete">
<mat-header-cell *matHeaderCellDef mat-sort-header> Ancienneté </mat-header-cell>
<mat-cell *matCellDef="let row"> {{row.collaborateur.dateEmbauche | date: 'yyyy/MM/dd'}} ({{row.annee}}an(s) {{row.mois | number: '2.0-0'}}mois) </mat-cell>
<mat-cell *matCellDef="let row"> {{row.collaborateur.dateArrive | date: 'yyyy/MM/dd'}} ({{row.annee}}an(s) {{row.mois | number: '2.0-0'}}mois) </mat-cell>
</ng-container>
<ng-container matColumnDef="referent">

@ -10,7 +10,7 @@ import {MatSort} from '@angular/material/sort';
import { CollaborateurModel } from "@shared/api-swagger/model/collaborateurModel";
import { EpModel } from "@shared/api-swagger/model/epModel";
import { DisplayEP } from "@shared/displayInfo/displayEP";
import { DefaultService } from "@shared/api-swagger/api/api";
import { EpService } from "@shared/api-swagger/api/api";
/**
@ -73,12 +73,24 @@ export class HomeAssistanteComponent implements OnInit, AfterViewInit {
*/
chargement = true;
constructor(public keycloakService : KeycloakService, private service:DefaultService) {
constructor(public keycloakService : KeycloakService, private service:EpService) {
}
ngAfterViewInit() {
/**
* Récupérer la liste des EP Disponibles dès l'initialisation.
*/
ngOnInit() {
//this.epDisponiblesSubscription = this.serviceEP.listeEPDisponibles().
//this.epDisponiblesSubscription = this.service.collaborateursBuIdBuGet("ORL").
let idAgence = 1;
this.epDisponiblesSubscription = this.service.getProchainsEP(undefined, 1).
subscribe(eps => {
this.initDisplay(eps);
this.refreshDataSource();
});
}
ngAfterViewInit(){}
/**
* Initialisation de l'affichage des EP dans le tableau.
@ -89,17 +101,16 @@ export class HomeAssistanteComponent implements OnInit, AfterViewInit {
let today = new Date();
console.log(eps);
for(let ep of eps) {
console.log(ep);
epDisplay = new DisplayEP();
epDisplay.id = ep.idEp;
epDisplay.agence = ep.collaborateur.businessunit.nom;
epDisplay.id = ep.id;
epDisplay.agence = ep.collaborateur.businessUnit.nom;
epDisplay.collaborateur = ep.collaborateur;
epDisplay.referent = ep.referent;
epDisplay.dateentretien = ep.dateEntretien;
epDisplay.datemail = ep.dateDisponibilite;
epDisplay.etat = ep.etat;
epDisplay.type = ep.typeEP;
epDisplay.anciennete = this.setAnciennete(new Date(ep.collaborateur.dateEmbauche), today);
epDisplay.type = ep.type;
epDisplay.anciennete = this.setAnciennete(new Date(ep.collaborateur.dateArrive), today);
epDisplay.annee = Math.floor(epDisplay.anciennete / 31536000000);
epDisplay.mois = Math.floor(epDisplay.anciennete / 2629800000 % 12);
this.epDisponibles.push(epDisplay);
@ -148,18 +159,7 @@ export class HomeAssistanteComponent implements OnInit, AfterViewInit {
this.dataSource.sort = this.sort;
}
/**
* Récupérer la liste des EP Disponibles dès l'initialisation.
*/
ngOnInit() {
//this.epDisponiblesSubscription = this.serviceEP.listeEPDisponibles().
//this.epDisponiblesSubscription = this.service.collaborateursBuIdBuGet("ORL").
this.epDisponiblesSubscription = this.service.epProchainsBuIdBuGet("ORL").
subscribe(eps => {
this.initDisplay(eps);
this.refreshDataSource();
});
}
/**

@ -1,6 +1,6 @@
<app-nav-menu></app-nav-menu>
<ng-container *ngIf="referent!=null">
<h2> {{referent.prenom }} {{referent.nom }} ({{referent.businessunit.nom }}) </h2>
<h2> {{referent.prenom }} {{referent.nom }} ({{referent.businessUnit.nom }}) </h2>
</ng-container>
<ng-container *ngIf="referent==null">
<mat-spinner></mat-spinner>

@ -7,7 +7,7 @@ import {MatTableDataSource} from '@angular/material/table';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
import { DefaultService } from "@shared/api-swagger/api/api";
import { ReferentsService } from "@shared/api-swagger/api/api";
import { CollaborateurModel } from "@shared/api-swagger/model/collaborateurModel";
import { EpModel } from "@shared/api-swagger/model/epModel";
@ -25,12 +25,12 @@ export class DetailsReferentComponent implements OnInit {
idReferent : any;
constructor(private service:DefaultService, private route: ActivatedRoute) {}
constructor(private service:ReferentsService, private route: ActivatedRoute) {}
ngOnInit() {
this.idReferent = this.route.snapshot.paramMap.get("id");
this.referentSubscription = this.service.collaborateursIdCollaborateurGet(this.idReferent).subscribe(
referent => this.initReferent(referent[0])
this.referentSubscription = this.service.getReferentById(this.idReferent).subscribe(
referent => this.initReferent(referent)
)
}

@ -6,7 +6,7 @@ import {MatTableDataSource} from '@angular/material/table';
import {MatPaginator} from '@angular/material/paginator';
import {MatSort} from '@angular/material/sort';
import { DefaultService } from "@shared/api-swagger/api/api";
import { ReferentsService } from "@shared/api-swagger/api/api";
import { CollaborateurModel } from "@shared/api-swagger/model/collaborateurModel";
import { DisplayCollaborateur } from "@shared/displayInfo/displayCollaborateur";
@ -47,10 +47,10 @@ export class ReferentsComponent implements OnInit {
* Spécifie si la liste des EP est en cours de chargement et d'écriture dans le tableau.
*/
chargement = true;
constructor(private service: DefaultService) {}
constructor(private service: ReferentsService) {}
ngOnInit() {
this.referentsDisponiblesSubscription = this.service.referentsBuIdBuGet("ui").subscribe(
this.referentsDisponiblesSubscription = this.service.getReferents(undefined, undefined, 1).subscribe(
referents => { this.initReferents(referents); }
);
}
@ -60,10 +60,10 @@ export class ReferentsComponent implements OnInit {
let referentDisplay: DisplayCollaborateur;
for(let r of referents) {
referentDisplay = new DisplayCollaborateur();
referentDisplay.id = r.idCollaborateur;
referentDisplay.id = r.id;
referentDisplay.prenom = r.prenom;
referentDisplay.nom = r.nom;
referentDisplay.agence = r.businessunit.nom;
referentDisplay.agence = r.businessUnit.nom;
this.referentsDiponibles.push(referentDisplay);
}
this.referentsFiltre = this.referentsDiponibles;

@ -3,14 +3,22 @@ import { Configuration } from './configuration';
import { HttpClient } from '@angular/common/http';
import { DefaultService } from './api/default.service';
import { CollaborateursService } from './api/collaborateurs.service';
import { DemandesformationService } from './api/demandesformation.service';
import { EpService } from './api/ep.service';
import { FormationsService } from './api/formations.service';
import { ReferentsService } from './api/referents.service';
@NgModule({
imports: [],
declarations: [],
exports: [],
providers: [
DefaultService ]
CollaborateursService,
DemandesformationService,
EpService,
FormationsService,
ReferentsService ]
})
export class ApiModule {
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders {

@ -1,3 +1,11 @@
export * from './default.service';
import { DefaultService } from './default.service';
export const APIS = [DefaultService];
export * from './collaborateurs.service';
import { CollaborateursService } from './collaborateurs.service';
export * from './demandesformation.service';
import { DemandesformationService } from './demandesformation.service';
export * from './ep.service';
import { EpService } from './ep.service';
export * from './formations.service';
import { FormationsService } from './formations.service';
export * from './referents.service';
import { ReferentsService } from './referents.service';
export const APIS = [CollaborateursService, DemandesformationService, EpService, FormationsService, ReferentsService];

@ -0,0 +1,279 @@
/**
* 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.1.0
*
*
* 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 { CollaborateurModel } from '../model/collaborateurModel';
import { ErreurModel } from '../model/erreurModel';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class CollaborateursService {
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;
}
/**
*
* recevoir un collaboratuer par son id
* @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 getCollaborateurById(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable<CollaborateurModel>;
public getCollaborateurById(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CollaborateurModel>>;
public getCollaborateurById(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CollaborateurModel>>;
public getCollaborateurById(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 getCollaborateurById.');
}
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<CollaborateurModel>('get',`${this.basePath}/collaborateurs/${encodeURIComponent(String(idCollaborateur))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir un collaborateur par son mail
* @param mail mail de l&#x27;utilisateur connecté (mail obetenu via Keycloak)
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getCollaborateurByMail(mail: string, observe?: 'body', reportProgress?: boolean): Observable<CollaborateurModel>;
public getCollaborateurByMail(mail: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CollaborateurModel>>;
public getCollaborateurByMail(mail: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CollaborateurModel>>;
public getCollaborateurByMail(mail: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
if (mail === null || mail === undefined) {
throw new Error('Required parameter mail was null or undefined when calling getCollaborateurByMail.');
}
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<CollaborateurModel>('get',`${this.basePath}/collaborateurs/${encodeURIComponent(String(mail))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste des collaborateurs
* @param assistants paramètre pour indiquer explicitement que l&#x27;on souhaite récupérer les assistants dans la requête
* @param collaborateurs paramètre pour indiquer explicitement que l&#x27;on souhaite récupérer les collaborateurs dans la requête
* @param idBu id de la business unit à laquelle sont rattachées les données à récupérer
* @param idAgence id de l&#x27;agence à laquelle sont rattachées les données à récupérer
* @param referents paramètre pour indiquer explicitement que l&#x27;on souhaite récupérer les référents dans la requête
* @param rh paramètre pour indiquer explicitement que l&#x27;on souhaite récupérer les RH dans la requête
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public getCollaborateurs(assistants?: boolean, collaborateurs?: boolean, idBu?: number, idAgence?: number, referents?: boolean, rh?: boolean, observe?: 'body', reportProgress?: boolean): Observable<Array<CollaborateurModel>>;
public getCollaborateurs(assistants?: boolean, collaborateurs?: boolean, idBu?: number, idAgence?: number, referents?: boolean, rh?: boolean, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<CollaborateurModel>>>;
public getCollaborateurs(assistants?: boolean, collaborateurs?: boolean, idBu?: number, idAgence?: number, referents?: boolean, rh?: boolean, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<CollaborateurModel>>>;
public getCollaborateurs(assistants?: boolean, collaborateurs?: boolean, idBu?: number, idAgence?: number, referents?: boolean, rh?: boolean, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (assistants !== undefined && assistants !== null) {
queryParameters = queryParameters.set('assistants', <any>assistants);
}
if (collaborateurs !== undefined && collaborateurs !== null) {
queryParameters = queryParameters.set('collaborateurs', <any>collaborateurs);
}
if (idBu !== undefined && idBu !== null) {
queryParameters = queryParameters.set('idBu', <any>idBu);
}
if (idAgence !== undefined && idAgence !== null) {
queryParameters = queryParameters.set('idAgence', <any>idAgence);
}
if (referents !== undefined && referents !== null) {
queryParameters = queryParameters.set('referents', <any>referents);
}
if (rh !== undefined && rh !== null) {
queryParameters = queryParameters.set('rh', <any>rh);
}
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<CollaborateurModel>>('get',`${this.basePath}/collaborateurs`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Recevoir la liste des collaborateurs de le référent à la charge
* @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 getCollaborateursByReferent(idReferent: string, observe?: 'body', reportProgress?: boolean): Observable<CollaborateurModel>;
public getCollaborateursByReferent(idReferent: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CollaborateurModel>>;
public getCollaborateursByReferent(idReferent: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CollaborateurModel>>;
public getCollaborateursByReferent(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 getCollaborateursByReferent.');
}
let headers = this.defaultHeaders;
// authentication (bearerAuth) required
if (this.configuration.accessToken) {
const accessToken = typeof this.configuration.accessToken === 'function'
? this.configuration.accessToken()
: this.configuration.accessToken;
headers = headers.set('Authorization', 'Bearer ' + accessToken);
}
// to determine the Accept header
let httpHeaderAccepts: string[] = [
'application/json'
];
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes: string[] = [
];
return this.httpClient.request<CollaborateurModel>('get',`${this.basePath}/collaborateurs/referent/${encodeURIComponent(String(idReferent))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,223 @@
/**
* 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.1.0
*
*
* 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 { DemandeFormationModel } from '../model/demandeFormationModel';
import { ErreurModel } from '../model/erreurModel';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class DemandesformationService {
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;
}
/**
*
* créer une demande de formation pour un collaborateur
* @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public creerDemandeFormation(body: DemandeFormationModel, observe?: 'body', reportProgress?: boolean): Observable<any>;
public creerDemandeFormation(body: DemandeFormationModel, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
public creerDemandeFormation(body: DemandeFormationModel, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
public creerDemandeFormation(body: DemandeFormationModel, 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 creerDemandeFormation.');
}
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<any>('post',`${this.basePath}/demandeformation`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste des demandes de formations
* @param idBu id de la business unit à laquelle sont rattachées les données à récupérer
* @param idAgence id de l&#x27;agence à laquelle sont rattachées les données à récupérer
* @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 getDemandesFormation(idBu?: number, idAgence?: number, observe?: 'body', reportProgress?: boolean): Observable<Array<DemandeFormationModel>>;
public getDemandesFormation(idBu?: number, idAgence?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<DemandeFormationModel>>>;
public getDemandesFormation(idBu?: number, idAgence?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<DemandeFormationModel>>>;
public getDemandesFormation(idBu?: number, idAgence?: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (idBu !== undefined && idBu !== null) {
queryParameters = queryParameters.set('idBu', <any>idBu);
}
if (idAgence !== undefined && idAgence !== null) {
queryParameters = queryParameters.set('idAgence', <any>idAgence);
}
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<DemandeFormationModel>>('get',`${this.basePath}/demandeformation`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* repondre a une demande de formation et la mettre a jour
* @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public updateDemandeFormation(body: DemandeFormationModel, observe?: 'body', reportProgress?: boolean): Observable<any>;
public updateDemandeFormation(body: DemandeFormationModel, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
public updateDemandeFormation(body: DemandeFormationModel, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
public updateDemandeFormation(body: DemandeFormationModel, 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 updateDemandeFormation.');
}
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<any>('put',`${this.basePath}/demandeformation`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

@ -0,0 +1,566 @@
/**
* 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.1.0
*
*
* 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 { EpModel } from '../model/epModel';
import { ErreurModel } from '../model/erreurModel';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class EpService {
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;
}
/**
*
* lancer la procedure entretien professionnel intermediaire
* @param idCollaborateur id collaborateur
* @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 createEPI(idCollaborateur: string, idReferent: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
public createEPI(idCollaborateur: string, idReferent: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
public createEPI(idCollaborateur: string, idReferent: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
public createEPI(idCollaborateur: string, idReferent: 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 createEPI.');
}
if (idReferent === null || idReferent === undefined) {
throw new Error('Required parameter idReferent was null or undefined when calling createEPI.');
}
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<any>('get',`${this.basePath}/ep/epi`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste de tous les EP collaborateurs
* @param idBu id de la business unit à laquelle sont rattachées les données à récupérer
* @param idAgence id de l&#x27;agence à laquelle sont rattachées les données à récupérer
* @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 getEP(idBu?: number, idAgence?: number, observe?: 'body', reportProgress?: boolean): Observable<Array<EpModel>>;
public getEP(idBu?: number, idAgence?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpModel>>>;
public getEP(idBu?: number, idAgence?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpModel>>>;
public getEP(idBu?: number, idAgence?: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (idBu !== undefined && idBu !== null) {
queryParameters = queryParameters.set('idBu', <any>idBu);
}
if (idAgence !== undefined && idAgence !== null) {
queryParameters = queryParameters.set('idAgence', <any>idAgence);
}
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<EpModel>>('get',`${this.basePath}/ep`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste des EP 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 getEPByCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable<Array<EpModel>>;
public getEPByCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpModel>>>;
public getEPByCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpModel>>>;
public getEPByCollaborateur(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 getEPByCollaborateur.');
}
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<EpModel>>('get',`${this.basePath}/ep/collaborateur/${encodeURIComponent(String(idCollaborateur))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir un EP par via son id
* @param idEP id 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: string, observe?: 'body', reportProgress?: boolean): Observable<EpModel>;
public getEPById(idEP: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<EpModel>>;
public getEPById(idEP: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<EpModel>>;
public getEPById(idEP: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
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<EpModel>('get',`${this.basePath}/ep/${encodeURIComponent(String(idEP))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste de tous les EP fait passer par le référent
* @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 getEPByReferent(idReferent: string, observe?: 'body', reportProgress?: boolean): Observable<Array<EpModel>>;
public getEPByReferent(idReferent: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpModel>>>;
public getEPByReferent(idReferent: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpModel>>>;
public getEPByReferent(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 getEPByReferent.');
}
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<EpModel>>('get',`${this.basePath}/ep/referent/${encodeURIComponent(String(idReferent))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir son prochain EP
* @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 getProchainEPByCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable<EpModel>;
public getProchainEPByCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<EpModel>>;
public getProchainEPByCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<EpModel>>;
public getProchainEPByCollaborateur(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 getProchainEPByCollaborateur.');
}
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<EpModel>('get',`${this.basePath}/ep/collaborateur/${encodeURIComponent(String(idCollaborateur))}/prochain`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste de tous les prochaines EP collaborateurs
* @param idBu id de la business unit à laquelle sont rattachées les données à récupérer
* @param idAgence id de l&#x27;agence à laquelle sont rattachées les données à récupérer
* @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 getProchainsEP(idBu?: number, idAgence?: number, observe?: 'body', reportProgress?: boolean): Observable<Array<EpModel>>;
public getProchainsEP(idBu?: number, idAgence?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpModel>>>;
public getProchainsEP(idBu?: number, idAgence?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpModel>>>;
public getProchainsEP(idBu?: number, idAgence?: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (idBu !== undefined && idBu !== null) {
queryParameters = queryParameters.set('idBu', <any>idBu);
}
if (idAgence !== undefined && idAgence !== null) {
queryParameters = queryParameters.set('idAgence', <any>idAgence);
}
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<EpModel>>('get',`${this.basePath}/ep/prochains`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste de tous les prochaines EP que fera passer le référent
* @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 getProchainsEPByReferent(idReferent: string, observe?: 'body', reportProgress?: boolean): Observable<Array<EpModel>>;
public getProchainsEPByReferent(idReferent: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<EpModel>>>;
public getProchainsEPByReferent(idReferent: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<EpModel>>>;
public getProchainsEPByReferent(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 getProchainsEPByReferent.');
}
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<EpModel>>('get',`${this.basePath}/ep/referent/${encodeURIComponent(String(idReferent))}/prochains`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* faire un rappel de signature EP
* @param idEP id 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: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
public rappelSignature(idEP: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
public rappelSignature(idEP: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
public rappelSignature(idEP: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
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<any>('get',`${this.basePath}/ep/${encodeURIComponent(String(idEP))}/rappelSignature`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* update ep
* @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public updateEP(body: EpModel, observe?: 'body', reportProgress?: boolean): Observable<any>;
public updateEP(body: EpModel, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
public updateEP(body: EpModel, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
public updateEP(body: EpModel, 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 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<any>('put',`${this.basePath}/ep/update`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

@ -0,0 +1,319 @@
/**
* 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.1.0
*
*
* 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 { ErreurModel } from '../model/erreurModel';
import { FormationModel } from '../model/formationModel';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class FormationsService {
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;
}
/**
*
* Supprimer une formation
* @param idFormation id formation
* @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 deleteFormation(idFormation: string, observe?: 'body', reportProgress?: boolean): Observable<any>;
public deleteFormation(idFormation: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
public deleteFormation(idFormation: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
public deleteFormation(idFormation: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
if (idFormation === null || idFormation === undefined) {
throw new Error('Required parameter idFormation was null or undefined when calling deleteFormation.');
}
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<any>('delete',`${this.basePath}/formations/${encodeURIComponent(String(idFormation))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* ajouter une nouvelle formations
* @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public formationsPost(body: FormationModel, observe?: 'body', reportProgress?: boolean): Observable<any>;
public formationsPost(body: FormationModel, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
public formationsPost(body: FormationModel, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
public formationsPost(body: FormationModel, 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 formationsPost.');
}
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<any>('post',`${this.basePath}/formations`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Récupérer une formation par son id
* @param idFormation id formation
* @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 getFormationById(idFormation: string, observe?: 'body', reportProgress?: boolean): Observable<FormationModel>;
public getFormationById(idFormation: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<FormationModel>>;
public getFormationById(idFormation: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<FormationModel>>;
public getFormationById(idFormation: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
if (idFormation === null || idFormation === undefined) {
throw new Error('Required parameter idFormation was null or undefined when calling getFormationById.');
}
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<FormationModel>('get',`${this.basePath}/formations/${encodeURIComponent(String(idFormation))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste des formations
* @param idBu id de la business unit à laquelle sont rattachées les données à récupérer
* @param idAgence id de l&#x27;agence à laquelle sont rattachées les données à récupérer
* @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 getListeFormations(idBu?: number, idAgence?: number, observe?: 'body', reportProgress?: boolean): Observable<Array<FormationModel>>;
public getListeFormations(idBu?: number, idAgence?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<FormationModel>>>;
public getListeFormations(idBu?: number, idAgence?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<FormationModel>>>;
public getListeFormations(idBu?: number, idAgence?: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (idBu !== undefined && idBu !== null) {
queryParameters = queryParameters.set('idBu', <any>idBu);
}
if (idAgence !== undefined && idAgence !== null) {
queryParameters = queryParameters.set('idAgence', <any>idAgence);
}
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<FormationModel>>('get',`${this.basePath}/formations`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* update une formation
* @param body
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
*/
public updateFormation(body: FormationModel, observe?: 'body', reportProgress?: boolean): Observable<any>;
public updateFormation(body: FormationModel, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<any>>;
public updateFormation(body: FormationModel, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<any>>;
public updateFormation(body: FormationModel, 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 updateFormation.');
}
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<any>('put',`${this.basePath}/formations`,
{
body: body,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

@ -0,0 +1,221 @@
/**
* 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.1.0
*
*
* 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 { CollaborateurModel } from '../model/collaborateurModel';
import { ErreurModel } from '../model/erreurModel';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@Injectable()
export class ReferentsService {
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;
}
/**
*
* renvoie la liste des collaborateurs referents
* @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 getReferentByCollaborateur(idCollaborateur: string, observe?: 'body', reportProgress?: boolean): Observable<Array<CollaborateurModel>>;
public getReferentByCollaborateur(idCollaborateur: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<CollaborateurModel>>>;
public getReferentByCollaborateur(idCollaborateur: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<CollaborateurModel>>>;
public getReferentByCollaborateur(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 getReferentByCollaborateur.');
}
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<CollaborateurModel>>('get',`${this.basePath}/referents/collaborateur/${encodeURIComponent(String(idCollaborateur))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir 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<CollaborateurModel>;
public getReferentById(idReferent: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CollaborateurModel>>;
public getReferentById(idReferent: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CollaborateurModel>>;
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<CollaborateurModel>('get',`${this.basePath}/referents/${encodeURIComponent(String(idReferent))}`,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* recevoir la liste de tous les referents
* @param cptechlead paramètre pour indiquer explicitement que l&#x27;on souhaite récupérer les CP et TeachLead dans la requête
* @param idBu id de la business unit à laquelle sont rattachées les données à récupérer
* @param idAgence id de l&#x27;agence à laquelle sont rattachées les données à récupérer
* @param referents paramètre pour indiquer explicitement que l&#x27;on souhaite récupérer les référents dans la requête
* @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(cptechlead?: boolean, idBu?: number, idAgence?: number, referents?: boolean, observe?: 'body', reportProgress?: boolean): Observable<Array<CollaborateurModel>>;
public getReferents(cptechlead?: boolean, idBu?: number, idAgence?: number, referents?: boolean, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<CollaborateurModel>>>;
public getReferents(cptechlead?: boolean, idBu?: number, idAgence?: number, referents?: boolean, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<CollaborateurModel>>>;
public getReferents(cptechlead?: boolean, idBu?: number, idAgence?: number, referents?: boolean, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
if (cptechlead !== undefined && cptechlead !== null) {
queryParameters = queryParameters.set('cptechlead', <any>cptechlead);
}
if (idBu !== undefined && idBu !== null) {
queryParameters = queryParameters.set('idBu', <any>idBu);
}
if (idAgence !== undefined && idAgence !== null) {
queryParameters = queryParameters.set('idAgence', <any>idAgence);
}
if (referents !== undefined && referents !== null) {
queryParameters = queryParameters.set('referents', <any>referents);
}
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<CollaborateurModel>>('get',`${this.basePath}/referents`,
{
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

@ -0,0 +1,18 @@
/**
* 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.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { BusinessUnitModel } from './businessUnitModel';
export interface AgenceModel {
id: number;
nom: string;
bus?: Array<BusinessUnitModel>;
}

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -12,8 +12,8 @@
import { EpModel } from './epModel';
export interface AugmentationSalaireModel {
idAugmentation: number;
nouveauSalaire: number;
dateDemande: string;
id: number;
augmentation: number;
dateDemande: Date;
ep: EpModel;
}

@ -1,16 +1,18 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { AgenceModel } from './agenceModel';
export interface BusinessUnitModel {
idBU: string;
id: number;
nom: string;
agence: AgenceModel;
}

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -11,7 +11,7 @@
*/
export interface ChampModel {
idChamp: number;
id: number;
texte: string;
section: string;
ordre: string;

@ -1,9 +1,9 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
*
* OpenAPI spec version: 1.0.0
* 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.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
@ -11,14 +11,13 @@
*/
import { BusinessUnitModel } from './businessUnitModel';
export interface CollaborateurModel {
idCollaborateur: string;
export interface CollaborateurModel {
id: string;
nom: string;
prenom: string;
mail?: string;
agence: string;
fonction: string;
dateEmbauche: Date;
mailApside: string;
dateArrive: Date;
dateDepart?: Date;
businessunit: BusinessUnitModel;
}
businessUnit?: BusinessUnitModel;
referent: CollaborateurModel;
}

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -11,7 +11,7 @@
*/
export interface CritereModel {
idCritere: number;
id: number;
texte: string;
type: string;
ordre: string;

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -13,9 +13,9 @@ import { CollaborateurModel } from './collaborateurModel';
import { EpModel } from './epModel';
export interface DemandeDelegationModel {
idDemande: number;
id: number;
ep: EpModel;
nouveauRef: CollaborateurModel;
referent: CollaborateurModel;
reponse?: boolean;
dateDemande: Date;
dateReponse?: Date;

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -13,7 +13,7 @@ import { EpModel } from './epModel';
import { ThemeModel } from './themeModel';
export interface DemandeFormationModel {
idDemandeformation: number;
id: number;
ep: EpModel;
status: string;
libelle: string;

@ -1,9 +1,9 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
*
* OpenAPI spec version: 1.0.0
* 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.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
@ -11,10 +11,14 @@
*/
import { EpModel } from './epModel';
export interface EngagementModel {
idEngagement: number;
engagement: string;
dateLimite: Date;
accomplie?: boolean;
export interface EngagementModel {
id: number;
action: string;
modalite: string;
dispositif: string;
datePrevisionnelle: Date;
realisable: boolean;
realise: boolean;
raisonNonRealisable: string;
ep: EpModel;
}
}

@ -1,9 +1,9 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
*
* OpenAPI spec version: 1.0.0
* 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.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
@ -13,30 +13,29 @@ import { AugmentationSalaireModel } from './augmentationSalaireModel';
import { CollaborateurModel } from './collaborateurModel';
import { DemandeDelegationModel } from './demandeDelegationModel';
import { EngagementModel } from './engagementModel';
import { NotificationModel } from './notificationModel';
import { ParticpantModel } from './particpantModel';
import { ParticipationEPModel } from './participationEPModel';
import { RDVEntretienModel } from './rDVEntretienModel';
import { SaisieModel } from './saisieModel';
export interface EpModel {
idEp: number;
typeEP: string;
export interface EpModel {
id: number;
type: string;
dateCreation: Date;
dateDisponibilite: Date;
dateSaisie?: Date;
etat: number;
cv?: string;
obligatoire: boolean;
dateEntretien?: Date;
typeEntretien?: string;
commentaireAssistant?: string;
commentaireCollaborateur?: string;
commentaireCommercial?: string;
rdvEntretien?: Array<RDVEntretienModel>;
augmentationSalaire?: AugmentationSalaireModel;
participants: Array<ParticpantModel>;
participants?: Array<ParticipationEPModel>;
collaborateur: CollaborateurModel;
referent: CollaborateurModel;
nbRappelSignature?: number;
notifications?: Array<NotificationModel>;
engagements?: Array<EngagementModel>;
delegation?: DemandeDelegationModel;
saisie?: Array<SaisieModel>;
}
}

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -12,7 +12,7 @@
import { CritereModel } from './critereModel';
export interface EvaluationFormationModel {
idEvaluation: number;
id: number;
note?: number;
commentaire?: string;
critere: CritereModel;

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -12,16 +12,19 @@
import { ParticipationFormationModel } from './participationFormationModel';
export interface FormationModel {
idFormation: number;
id: number;
intitule: string;
dateDebut: Date;
dateFin: Date;
status: FormationModel.StatusEnum;
lieu: string;
duree: number;
jours?: number;
organisme: string;
nomFormateur: string;
participantsFormation?: Array<ParticipationFormationModel>;
modeFormation?: string;
typeFormation?: string;
}
export namespace FormationModel {
export type StatusEnum = 'Planifiée' | 'Replanifiée' | 'Annulée' | 'Réalisée';

@ -1,3 +1,4 @@
export * from './agenceModel';
export * from './augmentationSalaireModel';
export * from './businessUnitModel';
export * from './champModel';
@ -10,9 +11,8 @@ export * from './epModel';
export * from './erreurModel';
export * from './evaluationFormationModel';
export * from './formationModel';
export * from './notificationModel';
export * from './participationEPModel';
export * from './participationFormationModel';
export * from './particpantModel';
export * from './rDVEntretienModel';
export * from './saisieBoolTexteModel';
export * from './saisieDeuxTextesModel';

@ -1,19 +0,0 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
*
* OpenAPI spec version: 1.0.0
*
*
* 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.
*/
export interface NotificationModel {
idNotification: number;
typeNotification?: string;
titre: string;
description: string;
lu: boolean;
}

@ -0,0 +1,19 @@
/**
* 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.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { CollaborateurModel } from './collaborateurModel';
import { EpModel } from './epModel';
export interface ParticipationEPModel {
id: number;
collaborateur: CollaborateurModel;
ep: EpModel;
}

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@ -1,28 +0,0 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { CollaborateurModel } from './collaborateurModel';
import { EpModel } from './epModel';
export interface ParticpantModel {
idParticipant: number;
collaborateur: CollaborateurModel;
role: ParticpantModel.RoleEnum;
ep: EpModel;
}
export namespace ParticpantModel {
export type RoleEnum = 'participant' | 'referent' | 'collaborateur';
export const RoleEnum = {
Participant: 'participant' as RoleEnum,
Referent: 'referent' as RoleEnum,
Collaborateur: 'collaborateur' as RoleEnum
};
}

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -11,7 +11,7 @@
*/
export interface RDVEntretienModel {
idTypeEntretien: number;
id: number;
typeEntretien: string;
dateEntretien: Date;
}

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@ -13,7 +13,6 @@ import { ChampModel } from './champModel';
export interface SaisieModel {
idSaisie?: string;
note?: number;
commentaire?: string;
type?: string;
champ?: ChampModel;
}

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

@ -1,8 +1,8 @@
/**
* API du serveur de l'application de digitalisation des EP
* API qui seront utilisés afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* 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.0.0
* OpenAPI spec version: 1.1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.

Loading…
Cancel
Save