(null, [Validators.required]),
-
- })
- submitForm() {
- // Pour annuler si le formulaire est invalide
- if (this.staffForm.invalid) return;
-
- // Pour obtenir la valeur du formulaire
- console.log(this.staffForm.getRawValue())
-
- // Pour vider le formulaire
- this.staffForm.reset()
- }
-}
diff --git a/src/app/pages/staff/staff-card-form/staff-card-form.css b/src/app/pages/staff/staff-card-form/staff-card-form.css
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/pages/staff/staff-card-form/staff-card-form.html b/src/app/pages/staff/staff-card-form/staff-card-form.html
deleted file mode 100644
index 00c833f..0000000
--- a/src/app/pages/staff/staff-card-form/staff-card-form.html
+++ /dev/null
@@ -1 +0,0 @@
-staff-card-form works!
diff --git a/src/app/pages/staff/staff-card-form/staff-card-form.ts b/src/app/pages/staff/staff-card-form/staff-card-form.ts
deleted file mode 100644
index 90e9a07..0000000
--- a/src/app/pages/staff/staff-card-form/staff-card-form.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import { Component } from '@angular/core';
-import {NzMessageService} from "ng-zorro-antd/message";
-import {StaffAddForm} from "../staff-add-form/staff-add-form";
-import {NzButtonModule} from "ng-zorro-antd/button";
-import {NzModalModule} from "ng-zorro-antd/modal";
-import {ProvidersAddForm} from "../../providers/providers-add-form/providers-add-form";
-
-@Component({
- selector: 'app-staff-card-form',
- imports: [NzButtonModule, NzModalModule, StaffAddForm],
- template: `
-
-
- Création de artificiers
-
-
-
-
-
-
-
-
-
-
- `,
- styleUrl: './staff-card-form.css',
-})
-export class StaffCardForm {
- constructor(private message: NzMessageService) {}
- isVisible = false;
- isConfirmLoading = false;
-
- showModal(): void {
- this.isVisible = true;
- }
-
- handleOk(): void {
- this.isConfirmLoading = true;
- this.message.success('Prestataire créé !');
- setTimeout(() => {
- this.isVisible = false;
- this.isConfirmLoading = false;
- }, 1000);
- }
-
- handleCancel(): void {
- this.isVisible = false;
- }
-}
\ No newline at end of file
diff --git a/src/app/pages/staff/staff-get-all/staff-get-all.css b/src/app/pages/staff/staff-get-all/staff-get-all.css
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/pages/staff/staff-get-all/staff-get-all.html b/src/app/pages/staff/staff-get-all/staff-get-all.html
deleted file mode 100644
index 00bc9ae..0000000
--- a/src/app/pages/staff/staff-get-all/staff-get-all.html
+++ /dev/null
@@ -1 +0,0 @@
-staff-get-all works!
diff --git a/src/app/pages/staff/staff-get-all/staff-get-all.ts b/src/app/pages/staff/staff-get-all/staff-get-all.ts
deleted file mode 100644
index 27702c8..0000000
--- a/src/app/pages/staff/staff-get-all/staff-get-all.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-staff-get-all',
- imports: [],
- templateUrl: './staff-get-all.html',
- styleUrl: './staff-get-all.css',
-})
-export class StaffGetAll {
-
-}
diff --git a/src/app/pages/staff/staff.html b/src/app/pages/staff/staff.html
index 614ec0e..d0db3ca 100644
--- a/src/app/pages/staff/staff.html
+++ b/src/app/pages/staff/staff.html
@@ -1,3 +1 @@
-
-
-
+staff
diff --git a/src/app/services/api/.openapi-generator/FILES b/src/app/services/api/.openapi-generator/FILES
index f314012..e7d025e 100644
--- a/src/app/services/api/.openapi-generator/FILES
+++ b/src/app/services/api/.openapi-generator/FILES
@@ -11,9 +11,8 @@ api/customers.service.ts
api/customertypes.service.ts
api/experiencelevels.service.ts
api/historyofapprovals.service.ts
-api/providers.service.ts
-api/providertype.service.ts
api/providertypes.service.ts
+api/serviceproviders.service.ts
api/staffs.service.ts
configuration.ts
encoder.ts
diff --git a/src/app/services/api/api/api.ts b/src/app/services/api/api/api.ts
index 2934582..bba0b75 100644
--- a/src/app/services/api/api/api.ts
+++ b/src/app/services/api/api/api.ts
@@ -12,12 +12,10 @@ export * from './experiencelevels.service';
import { ExperiencelevelsService } from './experiencelevels.service';
export * from './historyofapprovals.service';
import { HistoryofapprovalsService } from './historyofapprovals.service';
-export * from './providers.service';
-import { ProvidersService } from './providers.service';
-export * from './providertype.service';
-import { ProvidertypeService } from './providertype.service';
export * from './providertypes.service';
import { ProvidertypesService } from './providertypes.service';
+export * from './serviceproviders.service';
+import { ServiceprovidersService } from './serviceproviders.service';
export * from './staffs.service';
import { StaffsService } from './staffs.service';
-export const APIS = [AvailabilitiesService, CommunicationsService, ContactsService, CustomersService, CustomertypesService, ExperiencelevelsService, HistoryofapprovalsService, ProvidersService, ProvidertypeService, ProvidertypesService, StaffsService];
+export const APIS = [AvailabilitiesService, CommunicationsService, ContactsService, CustomersService, CustomertypesService, ExperiencelevelsService, HistoryofapprovalsService, ProvidertypesService, ServiceprovidersService, StaffsService];
diff --git a/src/app/services/api/api/contacts.service.ts b/src/app/services/api/api/contacts.service.ts
index de283ff..d8a5e13 100644
--- a/src/app/services/api/api/contacts.service.ts
+++ b/src/app/services/api/api/contacts.service.ts
@@ -162,10 +162,10 @@ export class ContactsService extends BaseService {
* @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 getAllContactxuest(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public getAllContactxuest(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
- public getAllContactxuest(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
- public getAllContactxuest(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
+ public getAllContactEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllContactEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllContactEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllContactEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
let localVarHeaders = this.defaultHeaders;
@@ -268,15 +268,15 @@ export class ContactsService extends BaseService {
* @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 updateContactRequest(id: number, updateContactDto: UpdateContactDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable;
- public updateContactRequest(id: number, updateContactDto: UpdateContactDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public updateContactRequest(id: number, updateContactDto: UpdateContactDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public updateContactRequest(id: number, updateContactDto: UpdateContactDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
+ public updateContactEndpoint(id: number, updateContactDto: UpdateContactDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public updateContactEndpoint(id: number, updateContactDto: UpdateContactDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public updateContactEndpoint(id: number, updateContactDto: UpdateContactDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public updateContactEndpoint(id: number, updateContactDto: UpdateContactDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
if (id === null || id === undefined) {
- throw new Error('Required parameter id was null or undefined when calling updateContactRequest.');
+ throw new Error('Required parameter id was null or undefined when calling updateContactEndpoint.');
}
if (updateContactDto === null || updateContactDto === undefined) {
- throw new Error('Required parameter updateContactDto was null or undefined when calling updateContactRequest.');
+ throw new Error('Required parameter updateContactDto was null or undefined when calling updateContactEndpoint.');
}
let localVarHeaders = this.defaultHeaders;
diff --git a/src/app/services/api/api/providertype.service.ts b/src/app/services/api/api/providertype.service.ts
deleted file mode 100644
index 9f7c7d6..0000000
--- a/src/app/services/api/api/providertype.service.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * PyroFetes
- *
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * 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, HttpParameterCodec, HttpContext
- } from '@angular/common/http';
-import { CustomHttpParameterCodec } from '../encoder';
-import { Observable } from 'rxjs';
-
-// @ts-ignore
-import { GetProviderTypeDto } from '../model/get-provider-type-dto';
-
-// @ts-ignore
-import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
-import { Configuration } from '../configuration';
-import { BaseService } from '../api.base.service';
-
-
-
-@Injectable({
- providedIn: 'root'
-})
-export class ProvidertypeService extends BaseService {
-
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
- super(basePath, configuration);
- }
-
- /**
- * @endpoint get /API/providertype
- * @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 getAllProviderTypesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public getAllProviderTypesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
- public getAllProviderTypesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
- public getAllProviderTypesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
-
- let localVarHeaders = this.defaultHeaders;
-
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
- 'application/json'
- ]);
- if (localVarHttpHeaderAcceptSelected !== undefined) {
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
- }
-
- const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
-
- const localVarTransferCache: boolean = options?.transferCache ?? true;
-
-
- let responseType_: 'text' | 'json' | 'blob' = 'json';
- if (localVarHttpHeaderAcceptSelected) {
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
- responseType_ = 'json';
- } else {
- responseType_ = 'blob';
- }
- }
-
- let localVarPath = `/API/providertype`;
- const { basePath, withCredentials } = this.configuration;
- return this.httpClient.request>('get', `${basePath}${localVarPath}`,
- {
- context: localVarHttpContext,
- responseType: responseType_,
- ...(withCredentials ? { withCredentials } : {}),
- headers: localVarHeaders,
- observe: observe,
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
- reportProgress: reportProgress
- }
- );
- }
-
-}
diff --git a/src/app/services/api/api/providertypes.service.ts b/src/app/services/api/api/providertypes.service.ts
index bcbfc2a..81fdd00 100644
--- a/src/app/services/api/api/providertypes.service.ts
+++ b/src/app/services/api/api/providertypes.service.ts
@@ -157,6 +157,56 @@ export class ProvidertypesService extends BaseService {
);
}
+ /**
+ * @endpoint get /API/providertypes
+ * @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 getAllProviderTypesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllProviderTypesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllProviderTypesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllProviderTypesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
+
+ let localVarHeaders = this.defaultHeaders;
+
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ 'application/json'
+ ]);
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
+ }
+
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
+
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
+
+
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
+ }
+
+ let localVarPath = `/API/providertypes`;
+ const { basePath, withCredentials } = this.configuration;
+ return this.httpClient.request>('get', `${basePath}${localVarPath}`,
+ {
+ context: localVarHttpContext,
+ responseType: responseType_,
+ ...(withCredentials ? { withCredentials } : {}),
+ headers: localVarHeaders,
+ observe: observe,
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
+ reportProgress: reportProgress
+ }
+ );
+ }
+
/**
* @endpoint get /API/providertypes/{id}
* @param id
diff --git a/src/app/services/api/api/providers.service.ts b/src/app/services/api/api/serviceproviders.service.ts
similarity index 94%
rename from src/app/services/api/api/providers.service.ts
rename to src/app/services/api/api/serviceproviders.service.ts
index 1275be0..377f44f 100644
--- a/src/app/services/api/api/providers.service.ts
+++ b/src/app/services/api/api/serviceproviders.service.ts
@@ -33,14 +33,14 @@ import { BaseService } from '../api.base.service';
@Injectable({
providedIn: 'root'
})
-export class ProvidersService extends BaseService {
+export class ServiceprovidersService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
- * @endpoint post /API/providers
+ * @endpoint post /API/serviceproviders
* @param createProviderDto
* @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.
@@ -87,7 +87,7 @@ export class ProvidersService extends BaseService {
}
}
- let localVarPath = `/API/providers`;
+ let localVarPath = `/API/serviceproviders`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('post', `${basePath}${localVarPath}`,
{
@@ -104,7 +104,7 @@ export class ProvidersService extends BaseService {
}
/**
- * @endpoint delete /API/providers/{id}
+ * @endpoint delete /API/serviceproviders/{id}
* @param id
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
@@ -142,7 +142,7 @@ export class ProvidersService extends BaseService {
}
}
- let localVarPath = `/API/providers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ let localVarPath = `/API/serviceproviders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
@@ -158,7 +158,7 @@ export class ProvidersService extends BaseService {
}
/**
- * @endpoint get /API/providers
+ * @endpoint get /API/serviceproviders
* @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.
*/
@@ -192,7 +192,7 @@ export class ProvidersService extends BaseService {
}
}
- let localVarPath = `/API/providers`;
+ let localVarPath = `/API/serviceproviders`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
@@ -208,7 +208,7 @@ export class ProvidersService extends BaseService {
}
/**
- * @endpoint get /API/providers/{id}
+ * @endpoint get /API/serviceproviders/{id}
* @param id
* @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.
@@ -246,7 +246,7 @@ export class ProvidersService extends BaseService {
}
}
- let localVarPath = `/API/providers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ let localVarPath = `/API/serviceproviders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('get', `${basePath}${localVarPath}`,
{
@@ -262,7 +262,7 @@ export class ProvidersService extends BaseService {
}
/**
- * @endpoint put /API/providers/{id}
+ * @endpoint put /API/serviceproviders/{id}
* @param id
* @param updateProviderDto
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -313,7 +313,7 @@ export class ProvidersService extends BaseService {
}
}
- let localVarPath = `/API/providers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ let localVarPath = `/API/serviceproviders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('put', `${basePath}${localVarPath}`,
{
diff --git a/src/app/services/api/model/create-provider-dto.ts b/src/app/services/api/model/create-provider-dto.ts
index 5b88833..a939b6a 100644
--- a/src/app/services/api/model/create-provider-dto.ts
+++ b/src/app/services/api/model/create-provider-dto.ts
@@ -11,5 +11,6 @@
export interface CreateProviderDto {
price?: number;
+ providerTypeId?: number;
}
diff --git a/src/app/services/api/model/create-staff-dto.ts b/src/app/services/api/model/create-staff-dto.ts
index 062ecb6..2e1ac8e 100644
--- a/src/app/services/api/model/create-staff-dto.ts
+++ b/src/app/services/api/model/create-staff-dto.ts
@@ -10,6 +10,10 @@
export interface CreateStaffDto {
+ firstName?: string | null;
+ lastName?: string | null;
+ profession?: string | null;
+ email?: string | null;
f4T2NumberApproval?: string | null;
f4T2ExpirationDate?: string;
}
diff --git a/src/app/services/api/model/get-provider-dto.ts b/src/app/services/api/model/get-provider-dto.ts
index cab49cd..ebeb7d5 100644
--- a/src/app/services/api/model/get-provider-dto.ts
+++ b/src/app/services/api/model/get-provider-dto.ts
@@ -12,5 +12,6 @@
export interface GetProviderDto {
id?: number;
price?: number;
+ providerTypeId?: number;
}
diff --git a/src/app/services/api/model/get-staff-dto.ts b/src/app/services/api/model/get-staff-dto.ts
index 3dbc21d..f9610b6 100644
--- a/src/app/services/api/model/get-staff-dto.ts
+++ b/src/app/services/api/model/get-staff-dto.ts
@@ -11,6 +11,10 @@
export interface GetStaffDto {
id?: number;
+ firstName?: string | null;
+ lastName?: string | null;
+ profession?: string | null;
+ email?: string | null;
f4T2NumberApproval?: string | null;
f4T2ExpirationDate?: string;
}
diff --git a/src/app/services/api/model/method-impl-attributes.ts b/src/app/services/api/model/method-impl-attributes.ts
index c9250ed..3e0ac0e 100644
--- a/src/app/services/api/model/method-impl-attributes.ts
+++ b/src/app/services/api/model/method-impl-attributes.ts
@@ -18,6 +18,7 @@ export const MethodImplAttributes = {
NUMBER_1: 1,
NUMBER_2: 2,
NUMBER_3: 3,
+ NUMBER_32: 3,
NUMBER_4: 4,
NUMBER_42: 4,
NUMBER_8: 8,