diff --git a/src/app/pages/opportunities/create-opportunity-modal/create-opportunity-modal.css b/src/app/pages/opportunities/create-opportunity-modal/create-opportunity-modal.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/pages/opportunities/create-opportunity-modal/create-opportunity-modal.html b/src/app/pages/opportunities/create-opportunity-modal/create-opportunity-modal.html
new file mode 100644
index 0000000..c704788
--- /dev/null
+++ b/src/app/pages/opportunities/create-opportunity-modal/create-opportunity-modal.html
@@ -0,0 +1 @@
+
create-opportunity-modal works!
diff --git a/src/app/pages/opportunities/create-opportunity-modal/create-opportunity-modal.ts b/src/app/pages/opportunities/create-opportunity-modal/create-opportunity-modal.ts
new file mode 100644
index 0000000..d3599df
--- /dev/null
+++ b/src/app/pages/opportunities/create-opportunity-modal/create-opportunity-modal.ts
@@ -0,0 +1,63 @@
+import {Component, output} from '@angular/core';
+import {OpportunityAddForm} from "../opportunity-add-form/opportunity-add-form";
+import {NzMessageService} from "ng-zorro-antd/message";
+import {NzButtonComponent} from "ng-zorro-antd/button";
+import {NzModalComponent} from "ng-zorro-antd/modal";
+
+@Component({
+ selector: 'app-create-opportunity-modal',
+ imports: [
+ OpportunityAddForm,
+ NzButtonComponent,
+ NzModalComponent
+ ],
+ template: `
+
+
+ Création d'opportunités
+
+
+
+
+
+
+
+
+
+
+ `,
+ styleUrl: './create-opportunity-modal.css',
+})
+export class CreateOpportunityModal {
+ constructor(private message: NzMessageService) {}
+ isVisible = false;
+ isConfirmLoading = false;
+
+ showModal(): void {
+ this.isVisible = true;
+ }
+
+ handleOk(): void {
+ this.isConfirmLoading = true;
+ this.message.success('Opportunité créé !');
+ setTimeout(() => {
+ this.isVisible = false;
+ this.isConfirmLoading = false;
+ }, 300);
+ this.triggerCreated.emit();
+ }
+
+ handleCancel(): void {
+ this.isVisible = false;
+ this.message.info('Création annulée');
+ }
+
+ triggerCreated = output()
+}
diff --git a/src/app/pages/opportunities/opportunities.html b/src/app/pages/opportunities/opportunities.html
index 5b82714..2de5708 100644
--- a/src/app/pages/opportunities/opportunities.html
+++ b/src/app/pages/opportunities/opportunities.html
@@ -1 +1,57 @@
-opportunities works!
+
+
+
+
+
+
+
+
📞 Appels
+
{{ totalCalls }}
+
+
+
✉️ Emails
+
{{ totalEmails }}
+
+
+
🤝 Réunions
+
{{ totalMeetings }}
+
+
+
+
+
+
+
+
+
+ @for (communication of communications(); track communication.id) {
+ @if (communication.calling) {
+
+
+ }
+ }
+
+
+
+
+
+ @for (communication of communications(); track communication.id) {
+ @if (communication.email) {
+
+
+ }
+ }
+
+
+
+
+
+ @for (communication of communications(); track communication.id) {
+ @if (communication.meeting) {
+
+
+ }
+ }
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/opportunities/opportunities.ts b/src/app/pages/opportunities/opportunities.ts
index e287f5b..2b373a5 100644
--- a/src/app/pages/opportunities/opportunities.ts
+++ b/src/app/pages/opportunities/opportunities.ts
@@ -1,11 +1,54 @@
-import { Component } from '@angular/core';
+import {Component, inject, signal} from '@angular/core';
+import {CreateOpportunityModal} from "./create-opportunity-modal/create-opportunity-modal";
+import {NzNotificationService} from "ng-zorro-antd/notification";
+import {Router} from "@angular/router";
+import {firstValueFrom} from "rxjs";
+import {NzCardComponent} from "ng-zorro-antd/card";
+import {NzDividerComponent} from "ng-zorro-antd/divider";
+import {NzColDirective, NzRowDirective} from "ng-zorro-antd/grid";
+import {OpportunityCard} from "./opportunity-card/opportunity-card";
+import {CommunicationsService, GetCommunicationDto} from "../../services/api";
@Component({
selector: 'app-opportunities',
- imports: [],
+ imports: [CreateOpportunityModal, NzCardComponent, NzDividerComponent, NzRowDirective, NzColDirective, OpportunityCard],
templateUrl: './opportunities.html',
styleUrl: './opportunities.css',
})
export class Opportunities {
+ private communicationsService = inject(CommunicationsService);
+ private notificationService = inject(NzNotificationService)
+ router = inject(Router);
+
+ communications = signal([]);
+ communicationsLoading = signal(false);
+
+ async ngOnInit() {
+ await this.fetchCommunications();
+ }
+
+ get totalCalls() {
+ return this.communications().filter(c => c.calling).length;
+ }
+
+ get totalEmails() {
+ return this.communications().filter(c => c.email).length;
+ }
+
+ get totalMeetings() {
+ return this.communications().filter(c => c.meeting).length;
+ }
+
+ async fetchCommunications() {
+ this.communicationsLoading.set(true);
+ try {
+ const communications = await firstValueFrom(this.communicationsService.getAllCommunicationsEndpoint())
+ this.communications.set(communications)
+ } catch (e) {
+ this.notificationService.error('Erreur', 'Erreur de communication avec l\'API');
+ }
+
+ this.communicationsLoading.set(false);
+ }
}
diff --git a/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.css b/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.html b/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.html
new file mode 100644
index 0000000..ba1c23c
--- /dev/null
+++ b/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.html
@@ -0,0 +1,26 @@
+
\ No newline at end of file
diff --git a/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.ts b/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.ts
new file mode 100644
index 0000000..6b63b21
--- /dev/null
+++ b/src/app/pages/opportunities/opportunity-add-form/opportunity-add-form.ts
@@ -0,0 +1,78 @@
+import {Component, inject, signal} from '@angular/core';
+import {NzButtonComponent} from "ng-zorro-antd/button";
+import {NzColDirective, NzRowDirective} from "ng-zorro-antd/grid";
+import {NzFlexDirective} from "ng-zorro-antd/flex";
+import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form";
+import {NzInputDirective} from "ng-zorro-antd/input";
+import {FormControl, FormGroup, ReactiveFormsModule} from "@angular/forms";
+import {CommunicationsService, CreateCommunicationDto} from "../../../services/api";
+import {NzNotificationService} from "ng-zorro-antd/notification";
+import {firstValueFrom} from "rxjs";
+
+@Component({
+ selector: 'app-opportunity-add-form',
+ imports: [
+ NzButtonComponent,
+ NzColDirective,
+ NzFlexDirective,
+ NzFormControlComponent,
+ NzFormDirective,
+ NzFormItemComponent,
+ NzFormLabelComponent,
+ NzInputDirective,
+ NzRowDirective,
+ ReactiveFormsModule
+ ],
+ templateUrl: './opportunity-add-form.html',
+ styleUrl: './opportunity-add-form.css',
+})
+export class OpportunityAddForm {
+
+ private communicationsService = inject(CommunicationsService);
+ private notificationService = inject(NzNotificationService)
+
+ communicationForm = new FormGroup({
+ calling: new FormControl(null),
+ email: new FormControl(null),
+ meeting: new FormControl(null),
+ }, { validators: atLeastOneRequired })
+
+ communicationPost = signal(this.communicationForm.value);
+ communicationsLoading = signal(false);
+
+ async submitForm() {
+ if (this.communicationForm.invalid) return;
+
+ console.log(this.communicationForm.getRawValue())
+ this.communicationPost.set(this.communicationForm.getRawValue())
+
+ await this.createCommunication(this.communicationPost().calling, this.communicationPost().email, this.communicationPost().meeting)
+ this.communicationForm.reset()
+ }
+
+ async createCommunication(calling: string, email: string, meeting: string) {
+ this.communicationsLoading.set(true);
+
+ const communicationValue: CreateCommunicationDto = {
+ calling: calling,
+ email: email,
+ meeting: meeting,
+ }
+
+ try {
+ const communication = await firstValueFrom(this.communicationsService.createCommunicationEndpoint(communicationValue));
+ this.communicationPost.set(communication);
+ console.log(communication);
+ } catch (e) {
+ this.notificationService.error('Erreur', 'Erreur de communication avec l\'API');
+ }
+
+ this.communicationsLoading.set(false);
+ }
+ }
+
+ function atLeastOneRequired(group: FormGroup) {
+ const { calling, email, meeting } = group.controls;
+ const valid = [calling, email, meeting].some(c => c.value);
+ return valid ? null : { atLeastOneRequired: true };
+ }
diff --git a/src/app/pages/opportunities/opportunity-card/opportunity-card.css b/src/app/pages/opportunities/opportunity-card/opportunity-card.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/pages/opportunities/opportunity-card/opportunity-card.html b/src/app/pages/opportunities/opportunity-card/opportunity-card.html
new file mode 100644
index 0000000..c64c11a
--- /dev/null
+++ b/src/app/pages/opportunities/opportunity-card/opportunity-card.html
@@ -0,0 +1,49 @@
+@if (edit() == false) {
+
+ Communication n°{{ communication().id }}
+ @if (communication().calling) {
+ 📞 Appel : {{ communication().calling }}
+ }
+ @if (communication().email) {
+ ✉️ Email : {{ communication().email }}
+ }
+ @if (communication().meeting) {
+ 🤝 Réunion : {{ communication().meeting }}
+ }
+
+
+
+
+
+
+
+} @else {
+
+
+
+
+
+
+
+
+
+}
diff --git a/src/app/pages/opportunities/opportunity-card/opportunity-card.ts b/src/app/pages/opportunities/opportunity-card/opportunity-card.ts
new file mode 100644
index 0000000..447932c
--- /dev/null
+++ b/src/app/pages/opportunities/opportunity-card/opportunity-card.ts
@@ -0,0 +1,100 @@
+import {Component, inject, input, output, signal} from '@angular/core';
+import {NzNotificationService} from "ng-zorro-antd/notification";
+import {FormControl, FormGroup, ReactiveFormsModule} from "@angular/forms";
+import {firstValueFrom} from "rxjs";
+import {NzCardComponent} from "ng-zorro-antd/card";
+import {NzFormControlComponent, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form";
+import {NzIconDirective} from "ng-zorro-antd/icon";
+import {NzColDirective} from "ng-zorro-antd/grid";
+import {NzInputDirective} from "ng-zorro-antd/input";
+import {CommunicationsService, GetCommunicationDto, UpdateCommunicationDto} from "../../../services/api";
+
+@Component({
+ selector: 'app-opportunity-card',
+ imports: [
+ NzCardComponent,
+ ReactiveFormsModule,
+ NzFormLabelComponent,
+ NzFormControlComponent,
+ NzFormItemComponent,
+ NzIconDirective,
+ NzColDirective,
+ NzInputDirective
+ ],
+ templateUrl: './opportunity-card.html',
+ styleUrl: './opportunity-card.css',
+})
+export class OpportunityCard {
+ private communicationsService = inject(CommunicationsService);
+ private notificationService = inject(NzNotificationService);
+
+ communicationEdit = signal(null);
+ communicationsLoading = signal(false);
+
+ communicationForm = new FormGroup({
+ calling: new FormControl(null),
+ email: new FormControl(null),
+ meeting: new FormControl(null),
+ }, { validators: atLeastOneRequired })
+
+ async submitForm() {
+ this.communicationsLoading.set(true);
+
+ const communicationValue: UpdateCommunicationDto = {
+ calling: this.communicationForm.value.calling,
+ email: this.communicationForm.value.email,
+ meeting: this.communicationForm.value.meeting,
+ }
+
+ try {
+ const communication = await firstValueFrom(this.communicationsService.updateCommunicationEndpoint(this.communication().id, communicationValue));
+ this.communicationEdit.set(communication as unknown as UpdateCommunicationDto);
+ console.log(communication);
+ this.communicationForm.reset();
+ this.edit.set(false);
+ this.triggerEdited.emit();
+ } catch (e) {
+ this.notificationService.error('Erreur', '(ou Erreur de communication avec l\'API)');
+ }
+
+ this.communicationsLoading.set(false);
+ }
+
+ communication = input(null);
+ edit = signal(false);
+ triggerEdited = output();
+
+ protected Edit() {
+ this.edit.set(true);
+ this.communicationForm.patchValue({
+ calling: this.communication().calling,
+ email: this.communication().email,
+ meeting: this.communication().meeting,
+ });
+ }
+
+ protected Back() {
+ this.edit.set(false);
+ this.communicationForm.reset();
+ }
+
+ async Delete() {
+ this.communicationsLoading.set(true);
+
+ try {
+ await firstValueFrom(this.communicationsService.deleteCommunicationEndpoint(this.communication().id));
+ this.communicationForm.reset();
+ this.triggerEdited.emit();
+ } catch (e) {
+ this.notificationService.error('Erreur', '(ou Erreur de communication avec l\'API)');
+ }
+
+ this.communicationsLoading.set(false);
+ }
+ }
+
+ function atLeastOneRequired(group: FormGroup) {
+ const { calling, email, meeting } = group.controls;
+ const valid = [calling, email, meeting].some(c => c.value);
+ return valid ? null : { atLeastOneRequired: true };
+}
diff --git a/src/app/pages/staff/staff-add-form/staff-add-form.ts b/src/app/pages/staff/staff-add-form/staff-add-form.ts
index 9f96462..d0b969b 100644
--- a/src/app/pages/staff/staff-add-form/staff-add-form.ts
+++ b/src/app/pages/staff/staff-add-form/staff-add-form.ts
@@ -5,9 +5,9 @@ import {NzColDirective, NzRowDirective} from "ng-zorro-antd/grid";
import {NzFlexDirective} from "ng-zorro-antd/flex";
import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form";
import {NzInputDirective} from "ng-zorro-antd/input";
-import {CreateStaffDto, GetProviderTypeDto, ProvidertypesService, StaffsService} from "../../../services/api";
import {NzNotificationService} from "ng-zorro-antd/notification";
import {firstValueFrom} from "rxjs";
+import {CreateStaffDto, GetProviderTypeDto, ProvidertypesService, StaffsService} from "../../../services/api";
@Component({
selector: 'app-staff-add-form',
diff --git a/src/app/pages/staff/staff-card/staff-card.ts b/src/app/pages/staff/staff-card/staff-card.ts
index 75367ad..a8f47d1 100644
--- a/src/app/pages/staff/staff-card/staff-card.ts
+++ b/src/app/pages/staff/staff-card/staff-card.ts
@@ -5,9 +5,9 @@ import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabe
import {NzIconDirective} from "ng-zorro-antd/icon";
import {NzInputDirective} from "ng-zorro-antd/input";
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
-import {GetStaffDto, StaffsService, UpdateStaffDto} from "../../../services/api";
import {NzNotificationService} from "ng-zorro-antd/notification";
import {firstValueFrom} from "rxjs";
+import {GetStaffDto, StaffsService, UpdateStaffDto} from "../../../services/api";
@Component({
selector: 'app-staff-card',
@@ -47,7 +47,7 @@ export class StaffCard {
}
try {
- const staff = await firstValueFrom(this.staffsService.updateStaffRequest(this.staff().id, staffValue));
+ const staff = await firstValueFrom(this.staffsService.updateStaffEndpoint(this.staff().id, staffValue));
this.staffEdit.set(staff as unknown as UpdateStaffDto);
console.log(staff);
this.staffForm.reset();
diff --git a/src/app/services/api/.openapi-generator/FILES b/src/app/services/api/.openapi-generator/FILES
index e7d025e..381935a 100644
--- a/src/app/services/api/.openapi-generator/FILES
+++ b/src/app/services/api/.openapi-generator/FILES
@@ -18,14 +18,6 @@ configuration.ts
encoder.ts
git_push.sh
index.ts
-model/action-of-authorization-policy-builder.ts
-model/assembly.ts
-model/base-endpoint.ts
-model/calling-conventions.ts
-model/claim.ts
-model/claims-identity.ts
-model/claims-principal.ts
-model/constructor-info.ts
model/create-availability-dto.ts
model/create-communication-dto.ts
model/create-contact-dto.ts
@@ -36,17 +28,6 @@ model/create-history-of-approval-dto.ts
model/create-provider-dto.ts
model/create-provider-type-dto.ts
model/create-staff-dto.ts
-model/custom-attribute-data.ts
-model/custom-attribute-named-argument.ts
-model/custom-attribute-typed-argument.ts
-model/delegate.ts
-model/endpoint-definition.ts
-model/endpoint-of-empty-request-and-list-of-get-communication-dto.ts
-model/endpoint-summary.ts
-model/endpoint-without-request-of-list-of-get-communication-dto.ts
-model/ep-version.ts
-model/func-of-object.ts
-model/get-all-communications-endpoint.ts
model/get-availability-dto.ts
model/get-communication-dto.ts
model/get-contact-dto.ts
@@ -57,25 +38,7 @@ model/get-history-of-approval-dto.ts
model/get-provider-dto.ts
model/get-provider-type-dto.ts
model/get-staff-dto.ts
-model/http.ts
-model/i-identity.ts
-model/i-web-host-environment.ts
-model/idempotency-options.ts
-model/member-info.ts
-model/member-types.ts
-model/method-base.ts
-model/method-impl-attributes.ts
-model/method-info.ts
model/models.ts
-model/module-handle.ts
-model/module.ts
-model/multicast-delegate.ts
-model/parameter-attributes.ts
-model/parameter-info.ts
-model/request-example.ts
-model/response-header.ts
-model/security-rule-set.ts
-model/severity.ts
model/update-availability-dto.ts
model/update-communication-dto.ts
model/update-contact-dto.ts
@@ -86,7 +49,6 @@ model/update-history-of-approval-dto.ts
model/update-provider-dto.ts
model/update-provider-type-dto.ts
model/update-staff-dto.ts
-model/validation-failure.ts
param.ts
provide-api.ts
variables.ts
diff --git a/src/app/services/api/api/communications.service.ts b/src/app/services/api/api/communications.service.ts
index 6fe3c95..6ccf985 100644
--- a/src/app/services/api/api/communications.service.ts
+++ b/src/app/services/api/api/communications.service.ts
@@ -19,8 +19,6 @@ import { Observable } from 'rxjs';
// @ts-ignore
import { CreateCommunicationDto } from '../model/create-communication-dto';
// @ts-ignore
-import { GetAllCommunicationsEndpoint } from '../model/get-all-communications-endpoint';
-// @ts-ignore
import { GetCommunicationDto } from '../model/get-communication-dto';
// @ts-ignore
import { UpdateCommunicationDto } from '../model/update-communication-dto';
@@ -108,20 +106,16 @@ export class CommunicationsService extends BaseService {
/**
* @endpoint delete /API/communications/{id}
* @param id
- * @param getCommunicationDto
* @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 deleteCommunicationEndpoint(id: number, getCommunicationDto: GetCommunicationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable;
- public deleteCommunicationEndpoint(id: number, getCommunicationDto: GetCommunicationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public deleteCommunicationEndpoint(id: number, getCommunicationDto: GetCommunicationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public deleteCommunicationEndpoint(id: number, getCommunicationDto: GetCommunicationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
+ public deleteCommunicationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public deleteCommunicationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteCommunicationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteCommunicationEndpoint(id: number, 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 deleteCommunicationEndpoint.');
}
- if (getCommunicationDto === null || getCommunicationDto === undefined) {
- throw new Error('Required parameter getCommunicationDto was null or undefined when calling deleteCommunicationEndpoint.');
- }
let localVarHeaders = this.defaultHeaders;
@@ -137,15 +131,6 @@ export class CommunicationsService extends BaseService {
const localVarTransferCache: boolean = options?.transferCache ?? true;
- // to determine the Content-Type header
- const consumes: string[] = [
- 'application/json'
- ];
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
- if (httpContentTypeSelected !== undefined) {
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
- }
-
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -159,10 +144,9 @@ export class CommunicationsService extends BaseService {
let localVarPath = `/API/communications/${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}`,
+ return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
- body: getCommunicationDto,
responseType: responseType_,
...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
diff --git a/src/app/services/api/api/staffs.service.ts b/src/app/services/api/api/staffs.service.ts
index f04713f..8196b0a 100644
--- a/src/app/services/api/api/staffs.service.ts
+++ b/src/app/services/api/api/staffs.service.ts
@@ -268,15 +268,15 @@ export class StaffsService 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 updateStaffRequest(id: number, updateStaffDto: UpdateStaffDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable;
- public updateStaffRequest(id: number, updateStaffDto: UpdateStaffDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public updateStaffRequest(id: number, updateStaffDto: UpdateStaffDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public updateStaffRequest(id: number, updateStaffDto: UpdateStaffDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
+ public updateStaffEndpoint(id: number, updateStaffDto: UpdateStaffDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public updateStaffEndpoint(id: number, updateStaffDto: UpdateStaffDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public updateStaffEndpoint(id: number, updateStaffDto: UpdateStaffDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public updateStaffEndpoint(id: number, updateStaffDto: UpdateStaffDto, 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 updateStaffRequest.');
+ throw new Error('Required parameter id was null or undefined when calling updateStaffEndpoint.');
}
if (updateStaffDto === null || updateStaffDto === undefined) {
- throw new Error('Required parameter updateStaffDto was null or undefined when calling updateStaffRequest.');
+ throw new Error('Required parameter updateStaffDto was null or undefined when calling updateStaffEndpoint.');
}
let localVarHeaders = this.defaultHeaders;
diff --git a/src/app/services/api/model/action-of-authorization-policy-builder.ts b/src/app/services/api/model/action-of-authorization-policy-builder.ts
deleted file mode 100644
index 43dd09d..0000000
--- a/src/app/services/api/model/action-of-authorization-policy-builder.ts
+++ /dev/null
@@ -1,17 +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.
- */
-import { MethodInfo } from './method-info';
-
-
-export interface ActionOfAuthorizationPolicyBuilder {
- target?: any | null;
- method?: MethodInfo;
-}
-
diff --git a/src/app/services/api/model/assembly.ts b/src/app/services/api/model/assembly.ts
deleted file mode 100644
index 30eba81..0000000
--- a/src/app/services/api/model/assembly.ts
+++ /dev/null
@@ -1,42 +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.
- */
-import { CustomAttributeData } from './custom-attribute-data';
-import { SecurityRuleSet } from './security-rule-set';
-import { MethodInfo } from './method-info';
-import { Module } from './module';
-
-
-export interface Assembly {
- definedTypes?: Array;
- exportedTypes?: Array;
- /** @deprecated */
- codeBase?: string | null;
- entryPoint?: MethodInfo | null;
- fullName?: string | null;
- imageRuntimeVersion?: string;
- isDynamic?: boolean;
- location?: string;
- reflectionOnly?: boolean;
- isCollectible?: boolean;
- isFullyTrusted?: boolean;
- customAttributes?: Array;
- /** @deprecated */
- escapedCodeBase?: string;
- manifestModule?: Module;
- modules?: Array;
- /** @deprecated */
- globalAssemblyCache?: boolean;
- hostContext?: number;
- securityRuleSet?: SecurityRuleSet;
-}
-export namespace Assembly {
-}
-
-
diff --git a/src/app/services/api/model/base-endpoint.ts b/src/app/services/api/model/base-endpoint.ts
deleted file mode 100644
index 7a4004b..0000000
--- a/src/app/services/api/model/base-endpoint.ts
+++ /dev/null
@@ -1,22 +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.
- */
-import { EndpointDefinition } from './endpoint-definition';
-import { ValidationFailure } from './validation-failure';
-
-
-/**
- * the base class all fast endpoints inherit from
- */
-export interface BaseEndpoint {
- definition?: EndpointDefinition;
- httpContext?: object;
- validationFailures?: Array;
-}
-
diff --git a/src/app/services/api/model/calling-conventions.ts b/src/app/services/api/model/calling-conventions.ts
deleted file mode 100644
index d3fea68..0000000
--- a/src/app/services/api/model/calling-conventions.ts
+++ /dev/null
@@ -1,23 +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.
- */
-
-
-/**
- *
- */
-export const CallingConventions = {
- NUMBER_1: 1,
- NUMBER_2: 2,
- NUMBER_3: 3,
- NUMBER_32: 32,
- NUMBER_64: 64
-} as const;
-export type CallingConventions = typeof CallingConventions[keyof typeof CallingConventions];
-
diff --git a/src/app/services/api/model/claim.ts b/src/app/services/api/model/claim.ts
deleted file mode 100644
index 69590d2..0000000
--- a/src/app/services/api/model/claim.ts
+++ /dev/null
@@ -1,22 +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.
- */
-import { ClaimsIdentity } from './claims-identity';
-
-
-export interface Claim {
- issuer?: string;
- originalIssuer?: string;
- properties?: { [key: string]: string; };
- subject?: ClaimsIdentity | null;
- type?: string;
- value?: string;
- valueType?: string;
-}
-
diff --git a/src/app/services/api/model/claims-identity.ts b/src/app/services/api/model/claims-identity.ts
deleted file mode 100644
index d9206ab..0000000
--- a/src/app/services/api/model/claims-identity.ts
+++ /dev/null
@@ -1,24 +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.
- */
-import { Claim } from './claim';
-
-
-export interface ClaimsIdentity {
- authenticationType?: string | null;
- isAuthenticated?: boolean;
- actor?: ClaimsIdentity | null;
- bootstrapContext?: any | null;
- claims?: Array;
- label?: string | null;
- name?: string | null;
- nameClaimType?: string;
- roleClaimType?: string;
-}
-
diff --git a/src/app/services/api/model/claims-principal.ts b/src/app/services/api/model/claims-principal.ts
deleted file mode 100644
index 6999651..0000000
--- a/src/app/services/api/model/claims-principal.ts
+++ /dev/null
@@ -1,20 +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.
- */
-import { ClaimsIdentity } from './claims-identity';
-import { IIdentity } from './i-identity';
-import { Claim } from './claim';
-
-
-export interface ClaimsPrincipal {
- claims?: Array;
- identities?: Array;
- identity?: IIdentity | null;
-}
-
diff --git a/src/app/services/api/model/constructor-info.ts b/src/app/services/api/model/constructor-info.ts
deleted file mode 100644
index a4ee06d..0000000
--- a/src/app/services/api/model/constructor-info.ts
+++ /dev/null
@@ -1,49 +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.
- */
-import { CustomAttributeData } from './custom-attribute-data';
-import { CallingConventions } from './calling-conventions';
-import { MethodImplAttributes } from './method-impl-attributes';
-import { Module } from './module';
-import { MemberTypes } from './member-types';
-
-
-export interface ConstructorInfo {
- module?: Module;
- customAttributes?: Array;
- isCollectible?: boolean;
- metadataToken?: number;
- methodImplementationFlags?: MethodImplAttributes;
- callingConvention?: CallingConventions;
- isAbstract?: boolean;
- isConstructor?: boolean;
- isFinal?: boolean;
- isHideBySig?: boolean;
- isSpecialName?: boolean;
- isStatic?: boolean;
- isVirtual?: boolean;
- isAssembly?: boolean;
- isFamily?: boolean;
- isFamilyAndAssembly?: boolean;
- isFamilyOrAssembly?: boolean;
- isPrivate?: boolean;
- isPublic?: boolean;
- isConstructedGenericMethod?: boolean;
- isGenericMethod?: boolean;
- isGenericMethodDefinition?: boolean;
- containsGenericParameters?: boolean;
- isSecurityCritical?: boolean;
- isSecuritySafeCritical?: boolean;
- isSecurityTransparent?: boolean;
- memberType?: MemberTypes;
-}
-export namespace ConstructorInfo {
-}
-
-
diff --git a/src/app/services/api/model/custom-attribute-data.ts b/src/app/services/api/model/custom-attribute-data.ts
deleted file mode 100644
index de95789..0000000
--- a/src/app/services/api/model/custom-attribute-data.ts
+++ /dev/null
@@ -1,21 +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.
- */
-import { CustomAttributeTypedArgument } from './custom-attribute-typed-argument';
-import { CustomAttributeNamedArgument } from './custom-attribute-named-argument';
-import { ConstructorInfo } from './constructor-info';
-
-
-export interface CustomAttributeData {
- attributeType?: string;
- constructor?: ConstructorInfo;
- constructorArguments?: Array;
- namedArguments?: Array;
-}
-
diff --git a/src/app/services/api/model/custom-attribute-named-argument.ts b/src/app/services/api/model/custom-attribute-named-argument.ts
deleted file mode 100644
index b04113d..0000000
--- a/src/app/services/api/model/custom-attribute-named-argument.ts
+++ /dev/null
@@ -1,20 +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.
- */
-import { CustomAttributeTypedArgument } from './custom-attribute-typed-argument';
-import { MemberInfo } from './member-info';
-
-
-export interface CustomAttributeNamedArgument {
- memberInfo?: MemberInfo;
- typedValue?: CustomAttributeTypedArgument;
- memberName?: string;
- isField?: boolean;
-}
-
diff --git a/src/app/services/api/model/custom-attribute-typed-argument.ts b/src/app/services/api/model/custom-attribute-typed-argument.ts
deleted file mode 100644
index 87d733b..0000000
--- a/src/app/services/api/model/custom-attribute-typed-argument.ts
+++ /dev/null
@@ -1,16 +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.
- */
-
-
-export interface CustomAttributeTypedArgument {
- argumentType?: string;
- value?: any | null;
-}
-
diff --git a/src/app/services/api/model/delegate.ts b/src/app/services/api/model/delegate.ts
deleted file mode 100644
index 33c5fc7..0000000
--- a/src/app/services/api/model/delegate.ts
+++ /dev/null
@@ -1,17 +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.
- */
-import { MethodInfo } from './method-info';
-
-
-export interface Delegate {
- target?: any | null;
- method?: MethodInfo;
-}
-
diff --git a/src/app/services/api/model/endpoint-definition.ts b/src/app/services/api/model/endpoint-definition.ts
deleted file mode 100644
index c205773..0000000
--- a/src/app/services/api/model/endpoint-definition.ts
+++ /dev/null
@@ -1,55 +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.
- */
-import { ActionOfAuthorizationPolicyBuilder } from './action-of-authorization-policy-builder';
-import { IdempotencyOptions } from './idempotency-options';
-import { EndpointSummary } from './endpoint-summary';
-import { EpVersion } from './ep-version';
-
-
-/**
- * represents the configuration settings of an endpoint
- */
-export interface EndpointDefinition {
- endpointType?: string;
- mapperType?: string | null;
- preProcessorsList?: Array