From f6b2e1dbac46762003fd9c23cd4f1ceff168301a Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Mon, 13 Apr 2026 22:53:09 +0100 Subject: [PATCH 1/3] Added lib to compresse image into jpeg before send of backend --- package-lock.json | 16 ++++++++++ package.json | 1 + .../challenge-card.component.ts | 25 ++++++++++++++-- .../proof-form/proof-form.component.html | 2 +- .../proof-form/proof-form.component.ts | 30 +++++++++++++++---- .../search-friend/search-friend.component.ts | 2 +- src/app/pages/ranking/ranking.component.ts | 2 +- 7 files changed, 68 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8626e76..5bac153 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "@microsoft/signalr": "^10.0.0", "@openapitools/openapi-generator-cli": "^2.30.2", "@tailwindcss/postcss": "^4.2.1", + "browser-image-compression": "^2.0.2", "postcss": "^8.5.8", "rimraf": "^6.1.3", "rxjs": "~7.8.0", @@ -5018,6 +5019,15 @@ "node": "18 || 20 || >=22" } }, + "node_modules/browser-image-compression": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/browser-image-compression/-/browser-image-compression-2.0.2.tgz", + "integrity": "sha512-pBLlQyUf6yB8SmmngrcOw3EoS4RpQ1BcylI3T9Yqn7+4nrQTXJD4sJDe5ODnJdrvNMaio5OicFo75rDyJD2Ucw==", + "license": "MIT", + "dependencies": { + "uzip": "0.20201231.0" + } + }, "node_modules/browserslist": { "version": "4.28.1", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", @@ -9939,6 +9949,12 @@ "dev": true, "license": "MIT" }, + "node_modules/uzip": { + "version": "0.20201231.0", + "resolved": "https://registry.npmjs.org/uzip/-/uzip-0.20201231.0.tgz", + "integrity": "sha512-OZeJfZP+R0z9D6TmBgLq2LHzSSptGMGDGigGiEe0pr8UBe/7fdflgHlHBNDASTXB5jnFuxHpNaJywSg8YFeGng==", + "license": "MIT" + }, "node_modules/validate-npm-package-name": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-6.0.2.tgz", diff --git a/package.json b/package.json index 43ecd12..5e0e956 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "@microsoft/signalr": "^10.0.0", "@openapitools/openapi-generator-cli": "^2.30.2", "@tailwindcss/postcss": "^4.2.1", + "browser-image-compression": "^2.0.2", "postcss": "^8.5.8", "rimraf": "^6.1.3", "rxjs": "~7.8.0", diff --git a/src/app/components/challenge-card/challenge-card.component.ts b/src/app/components/challenge-card/challenge-card.component.ts index d7591ee..dd7b2d9 100644 --- a/src/app/components/challenge-card/challenge-card.component.ts +++ b/src/app/components/challenge-card/challenge-card.component.ts @@ -1,5 +1,5 @@ import {Component, inject, input, signal, viewChild} from '@angular/core'; -import {IonicModule, ToastController} from "@ionic/angular"; +import {IonicModule, LoadingController, ToastController} from "@ionic/angular"; import {GetRandomChallengeDto, RandomchallengesService} from "../../services/api"; import {firstValueFrom} from "rxjs"; import {TooltipComponent} from "../tooltip/tooltip.component"; @@ -19,6 +19,7 @@ import {SignOnFormComponent} from "../sign-on-form/sign-on-form.component"; export class ChallengeCardComponent { private randomChallengesService = inject(RandomchallengesService); private toastCtrl = inject(ToastController); + private loadCtrl = inject(LoadingController); action = input.required(); tag = input.required(); @@ -34,8 +35,26 @@ export class ChallengeCardComponent { } async sendProof(randomChallengeId: number) { + const file = this.proof().proofForm.value.proof; + + if (!file) { + const toast = await this.toastCtrl.create({ + message: 'Aucune preuve n\'a été déposée', + duration: 2000, + color: 'danger' + }); + await toast.present(); + return; + } + + const loading = await this.loadCtrl.create({ + message: 'Chargement...', + spinner: 'lines-sharp-small' + }); + await loading.present(); + try { - await firstValueFrom(this.randomChallengesService.patchProofEndpoint(randomChallengeId, this.proof().proofForm.value.proof)); + await firstValueFrom(this.randomChallengesService.patchProofEndpoint(randomChallengeId, file)); this.isModalOpen = false; const toast = await this.toastCtrl.create({ @@ -45,6 +64,7 @@ export class ChallengeCardComponent { }); await toast.present(); } catch { + this.isModalOpen = false; const toast = await this.toastCtrl.create({ message: 'Tu as déjà déposé une preuve pour ce défi', duration: 2000, @@ -52,5 +72,6 @@ export class ChallengeCardComponent { }); await toast.present(); } + await loading.dismiss(); } } \ No newline at end of file diff --git a/src/app/components/proof-form/proof-form.component.html b/src/app/components/proof-form/proof-form.component.html index 3788e54..6f0c5b6 100644 --- a/src/app/components/proof-form/proof-form.component.html +++ b/src/app/components/proof-form/proof-form.component.html @@ -13,5 +13,5 @@ } - + \ No newline at end of file diff --git a/src/app/components/proof-form/proof-form.component.ts b/src/app/components/proof-form/proof-form.component.ts index 9aa9f8c..f158b1d 100644 --- a/src/app/components/proof-form/proof-form.component.ts +++ b/src/app/components/proof-form/proof-form.component.ts @@ -1,8 +1,9 @@ -import {Component} from '@angular/core'; +import {Component, inject} from '@angular/core'; import {FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators} from "@angular/forms"; -import {IonicModule} from "@ionic/angular"; +import {IonicModule, LoadingController} from "@ionic/angular"; import {TitlePartComponent} from "../title-part/title-part.component"; import {NgClass} from "@angular/common"; +import imageCompression from 'browser-image-compression'; @Component({ selector: 'app-proof-form', @@ -17,20 +18,39 @@ import {NgClass} from "@angular/common"; ] }) export class ProofFormComponent { + private loadCtrl = inject(LoadingController); + proofForm: FormGroup = new FormGroup({ proof: new FormControl(null, [Validators.required]), }) previewUrl: string | null = null; - onFileChange(files?: FileList | null) { + async onFileChange(files?: FileList | null) { if (!files?.length) return; + const loading = await this.loadCtrl.create({ + message: 'Compression...', + spinner: 'lines-sharp-small' + }); + await loading.present(); + const file = files[0]; - this.previewUrl = URL.createObjectURL(file); + // Compression en JPEG de l'image (moins lourd en BDD) + const options = { + maxSizeMB: 1, + maxWidthOrHeight: 1080, + useWebWorker: true, + fileType: 'image/jpeg' + } + + const compressed = await imageCompression(file, options); + + this.previewUrl = URL.createObjectURL(compressed); this.proofForm.patchValue({ - proof: file + proof: compressed }); + await loading.dismiss(); } } diff --git a/src/app/components/search-friend/search-friend.component.ts b/src/app/components/search-friend/search-friend.component.ts index 375236b..0b49b30 100644 --- a/src/app/components/search-friend/search-friend.component.ts +++ b/src/app/components/search-friend/search-friend.component.ts @@ -28,11 +28,11 @@ export class SearchFriendComponent implements OnInit { async ngOnInit() { const loading = await this.loadCtrl.create({ message: 'Chargement...', - duration: 1000, spinner: 'lines-sharp-small' }); await loading.present(); await this.fetchUsers(); + await loading.dismiss(); } async fetchUsers() { diff --git a/src/app/pages/ranking/ranking.component.ts b/src/app/pages/ranking/ranking.component.ts index e4b0137..b9575b5 100644 --- a/src/app/pages/ranking/ranking.component.ts +++ b/src/app/pages/ranking/ranking.component.ts @@ -25,7 +25,6 @@ export class RankingComponent implements OnInit { async fetchUsers() { const loading = await this.loadCtrl.create({ message: 'Chargement...', - duration: 1000, spinner: 'lines-sharp-small' }); await loading.present(); @@ -41,5 +40,6 @@ export class RankingComponent implements OnInit { }); await toast.present(); } + await loading.dismiss(); } } \ No newline at end of file From 917a0dcc9fcf238e00f6527d03a1fa9a0ba5b412 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Mon, 13 Apr 2026 23:18:09 +0100 Subject: [PATCH 2/3] Added loading and refresh --- .../friend-request.component.ts | 30 ++++++++++++++++++- .../friends/friends-list.component.ts | 29 +++++++++++++++++- src/app/pages/ranking/ranking.component.ts | 4 +++ 3 files changed, 61 insertions(+), 2 deletions(-) diff --git a/src/app/components/friend-request/friend-request.component.ts b/src/app/components/friend-request/friend-request.component.ts index 6ffebb1..fa7ff1f 100644 --- a/src/app/components/friend-request/friend-request.component.ts +++ b/src/app/components/friend-request/friend-request.component.ts @@ -1,5 +1,5 @@ import {Component, inject, OnInit} from '@angular/core'; -import {IonicModule, ToastController} from "@ionic/angular"; +import {IonicModule, LoadingController, ToastController} from "@ionic/angular"; import {checkmarkCircleOutline, closeCircleOutline} from 'ionicons/icons'; import {addIcons} from "ionicons"; import {PipeComponent} from "../pipe/pipe.component"; @@ -25,6 +25,7 @@ export class FriendRequestComponent implements OnInit { private friendsService = inject(FriendsService); private toastCtrl = inject(ToastController); private friendsState = inject(FriendsStateService); + private loadCtrl = inject(LoadingController) friendsRequest = this.friendsState.requests; @@ -32,7 +33,18 @@ export class FriendRequestComponent implements OnInit { await this.fetchFriendsRequest(); } + async ionViewWillEnter() { + await this.fetchFriendsRequest(); + } + + async fetchFriendsRequest() { + const loading = await this.loadCtrl.create({ + message: 'Chargement...', + spinner: 'lines-sharp-small' + }); + await loading.present(); + try { const requests = await firstValueFrom(this.friendsService.getAllFriendRequestsEndpoint()); this.friendsState.setRequests(requests); @@ -44,9 +56,17 @@ export class FriendRequestComponent implements OnInit { }); await toast.present(); } + + await loading.dismiss(); } async acceptRequest(request: GetFriendRequestDto) { + const loading = await this.loadCtrl.create({ + message: 'Chargement...', + spinner: 'lines-sharp-small' + }); + await loading.present(); + try { await firstValueFrom(this.friendsService.acceptFriendRequestEndpoint(request.userId)); this.friendsState.acceptRequest(request); @@ -64,9 +84,16 @@ export class FriendRequestComponent implements OnInit { }); await toast.present(); } + await loading.dismiss(); } async rejectRequest(id: number) { + const loading = await this.loadCtrl.create({ + message: 'Chargement...', + spinner: 'lines-sharp-small' + }); + await loading.present(); + try { await firstValueFrom(this.friendsService.rejectFriendRequestEndpoint(id)); this.friendsState.removeRequest(id); @@ -84,5 +111,6 @@ export class FriendRequestComponent implements OnInit { }); await toast.present(); } + await loading.dismiss(); } } diff --git a/src/app/components/friends/friends-list.component.ts b/src/app/components/friends/friends-list.component.ts index b83b387..befc069 100644 --- a/src/app/components/friends/friends-list.component.ts +++ b/src/app/components/friends/friends-list.component.ts @@ -1,5 +1,5 @@ import {Component, inject, OnInit, signal} from '@angular/core'; -import {IonicModule, ToastController} from "@ionic/angular"; +import {IonicModule, LoadingController, ToastController} from "@ionic/angular"; import {closeCircleOutline} from 'ionicons/icons'; import {addIcons} from "ionicons"; import {FriendsService, GetUserDto, UsersService} from "../../services/api"; @@ -23,6 +23,7 @@ export class FriendsListComponent implements OnInit { private usersService = inject(UsersService); private toastCtrl = inject(ToastController); private friendsState = inject(FriendsStateService); + private loadCtrl = inject(LoadingController) selectedFriend = signal(null); @@ -34,7 +35,17 @@ export class FriendsListComponent implements OnInit { await this.fetchFriends(); } + async ionViewWillEnter() { + await this.fetchFriends(); + } + async fetchFriends() { + const loading = await this.loadCtrl.create({ + message: 'Chargement...', + spinner: 'lines-sharp-small' + }); + await loading.present(); + try { const friends = await firstValueFrom(this.friendsService.getAllFriendsEndpoint()); this.friendsState.setFriends(friends); @@ -46,9 +57,16 @@ export class FriendsListComponent implements OnInit { }); await toast.present(); } + await loading.dismiss(); } async deleteFriend(friendId: number) { + const loading = await this.loadCtrl.create({ + message: 'Chargement...', + spinner: 'lines-sharp-small' + }); + await loading.present(); + try { await firstValueFrom(this.friendsService.deleteFriendEndpoint(friendId)); const toast = await this.toastCtrl.create({ @@ -66,9 +84,17 @@ export class FriendsListComponent implements OnInit { await toast.present(); } this.friendsState.removeFriend(friendId); + await loading.dismiss(); } async setOpen(isOpen: boolean, userId: number) { + const loading = await this.loadCtrl.create({ + message: 'Chargement...', + spinner: 'lines-sharp-small' + }); + await loading.present(); + + if (isOpen) { try { const userInfo = await firstValueFrom(this.usersService.getUserEndpoint(userId)); @@ -83,5 +109,6 @@ export class FriendsListComponent implements OnInit { } } this.isModalOpen = isOpen; + await loading.dismiss(); } } \ No newline at end of file diff --git a/src/app/pages/ranking/ranking.component.ts b/src/app/pages/ranking/ranking.component.ts index b9575b5..fe60906 100644 --- a/src/app/pages/ranking/ranking.component.ts +++ b/src/app/pages/ranking/ranking.component.ts @@ -22,6 +22,10 @@ export class RankingComponent implements OnInit { await this.fetchUsers(); } + async ionViewWillEnter() { + await this.fetchUsers(); + } + async fetchUsers() { const loading = await this.loadCtrl.create({ message: 'Chargement...', From 97bafde4a47d038d03ffeda27e3a0413e57a7185 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Mon, 13 Apr 2026 23:21:56 +0100 Subject: [PATCH 3/3] Cleaned code --- .../proof-form/proof-form.component.html | 3 +- src/app/pages/home/home.component.ts | 11 +- src/app/services/api/README.md | 6 +- src/app/services/api/api.base.service.ts | 12 +- src/app/services/api/api.module.ts | 22 +- .../services/api/api/achievements.service.ts | 162 +++-- src/app/services/api/api/api.ts | 27 +- src/app/services/api/api/auth.service.ts | 98 ++- .../services/api/api/designations.service.ts | 58 +- src/app/services/api/api/friends.service.ts | 270 +++++-- src/app/services/api/api/groups.service.ts | 668 +++++++++++++----- src/app/services/api/api/messages.service.ts | 173 +++-- .../api/api/overallranking.service.ts | 58 +- .../api/api/randomchallenges.service.ts | 147 ++-- src/app/services/api/api/users.service.ts | 367 +++++++--- src/app/services/api/configuration.ts | 28 +- src/app/services/api/encoder.ts | 8 +- .../services/api/model/create-group-dto.ts | 6 +- .../services/api/model/create-message-dto.ts | 4 +- src/app/services/api/model/create-user-dto.ts | 4 +- .../api/model/create-user-group-dto.ts | 4 +- src/app/services/api/model/error-response.ts | 4 +- .../services/api/model/get-achievement-dto.ts | 4 +- .../services/api/model/get-designation-dto.ts | 4 +- src/app/services/api/model/get-friend-dto.ts | 4 +- .../api/model/get-friend-request-dto.ts | 4 +- .../api/model/get-group-details-dto.ts | 8 +- src/app/services/api/model/get-group-dto.ts | 4 +- .../api/model/get-group-ranking-dto.ts | 4 +- src/app/services/api/model/get-message-dto.ts | 4 +- src/app/services/api/model/get-proof-dto.ts | 4 +- .../api/model/get-random-challenge-dto.ts | 4 +- src/app/services/api/model/get-token-dto.ts | 4 +- .../api/model/get-user-challenge-dto.ts | 4 +- .../api/model/get-user-details-dto.ts | 6 +- src/app/services/api/model/get-user-dto.ts | 6 +- .../services/api/model/get-user-group-dto.ts | 4 +- .../services/api/model/get-user-proof-dto.ts | 4 +- .../services/api/model/get-user-stats-dto.ts | 4 +- src/app/services/api/model/login-dto.ts | 4 +- .../api/model/patch-user-designation-dto.ts | 4 +- .../api/model/patch-user-password-dto.ts | 4 +- .../services/api/model/refresh-token-dto.ts | 4 +- src/app/services/api/model/update-user-dto.ts | 4 +- .../services/api/model/user-proof-request.ts | 4 +- .../services/api/model/user-vote-request.ts | 4 +- src/app/services/api/param.ts | 64 +- src/app/services/api/provide-api.ts | 10 +- src/app/services/api/query.params.ts | 6 +- src/app/services/api/variables.ts | 2 +- 50 files changed, 1630 insertions(+), 696 deletions(-) diff --git a/src/app/components/proof-form/proof-form.component.html b/src/app/components/proof-form/proof-form.component.html index 6f0c5b6..a150b38 100644 --- a/src/app/components/proof-form/proof-form.component.html +++ b/src/app/components/proof-form/proof-form.component.html @@ -1,7 +1,8 @@
-
@if (previewUrl) { diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts index d482fe2..5afd65b 100644 --- a/src/app/pages/home/home.component.ts +++ b/src/app/pages/home/home.component.ts @@ -1,9 +1,9 @@ import {Component, inject, OnInit, signal} from '@angular/core'; import {IonicModule, ToastController} from "@ionic/angular"; -import { addIcons } from "ionicons"; -import { walkOutline, addOutline } from "ionicons/icons"; -import { TitlePartComponent } from "../../components/title-part/title-part.component"; -import { ChallengeCardComponent } from "../../components/challenge-card/challenge-card.component"; +import {addIcons} from "ionicons"; +import {walkOutline, addOutline} from "ionicons/icons"; +import {TitlePartComponent} from "../../components/title-part/title-part.component"; +import {ChallengeCardComponent} from "../../components/challenge-card/challenge-card.component"; import * as signalR from '@microsoft/signalr'; import {GetRandomChallengeDto, RandomchallengesService} from "../../services/api"; import {firstValueFrom} from "rxjs"; @@ -55,8 +55,7 @@ export class HomeComponent implements OnInit { try { const randomChallenge = await firstValueFrom(this.randomChallengeService.generateRandomChallengeEndpoint()); this.randomChallenge.set(randomChallenge); - } - catch { + } catch { const toast = await this.toastCtrl.create({ message: 'Impossible de générer un défi aléatoire', duration: 2000, diff --git a/src/app/services/api/README.md b/src/app/services/api/README.md index c2ba935..29f22fe 100644 --- a/src/app/services/api/README.md +++ b/src/app/services/api/README.md @@ -73,7 +73,9 @@ export const appConfig: ApplicationConfig = { ``` **NOTE** -If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module: +If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you +can still import an Angular module: + ```typescript import { ApiModule } from ''; ``` @@ -181,5 +183,7 @@ new Configuration({ ``` [parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations + [style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values + [@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander diff --git a/src/app/services/api/api.base.service.ts b/src/app/services/api/api.base.service.ts index ca18710..b90fbe9 100644 --- a/src/app/services/api/api.base.service.ts +++ b/src/app/services/api/api.base.service.ts @@ -1,16 +1,16 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http'; -import { CustomHttpParameterCodec } from './encoder'; -import { Configuration } from './configuration'; -import { OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params'; +import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http'; +import {CustomHttpParameterCodec} from './encoder'; +import {Configuration} from './configuration'; +import {OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params'; export class BaseService { protected basePath = 'http://localhost:5235'; @@ -18,7 +18,7 @@ export class BaseService { public configuration: Configuration; public encoder: HttpParameterCodec; - constructor(basePath?: string|string[], configuration?: Configuration) { + constructor(basePath?: string | string[], configuration?: Configuration) { this.configuration = configuration || new Configuration(); if (typeof this.configuration.basePath !== 'string') { const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; diff --git a/src/app/services/api/api.module.ts b/src/app/services/api/api.module.ts index 58d341f..68ca8d7 100644 --- a/src/app/services/api/api.module.ts +++ b/src/app/services/api/api.module.ts @@ -1,30 +1,30 @@ -import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core'; -import { Configuration } from './configuration'; -import { HttpClient } from '@angular/common/http'; +import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core'; +import {Configuration} from './configuration'; +import {HttpClient} from '@angular/common/http'; @NgModule({ - imports: [], - declarations: [], - exports: [], - providers: [] + imports: [], + declarations: [], + exports: [], + providers: [] }) export class ApiModule { public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders { return { ngModule: ApiModule, - providers: [ { provide: Configuration, useFactory: configurationFactory } ] + providers: [{provide: Configuration, useFactory: configurationFactory}] }; } - constructor( @Optional() @SkipSelf() parentModule: ApiModule, - @Optional() http: HttpClient) { + constructor(@Optional() @SkipSelf() parentModule: ApiModule, + @Optional() http: HttpClient) { if (parentModule) { throw new Error('ApiModule is already loaded. Import in your base AppModule only.'); } if (!http) { throw new Error('You need to import the HttpClientModule in your AppModule! \n' + - 'See also https://github.com/angular/angular/issues/20575'); + 'See also https://github.com/angular/angular/issues/20575'); } } } diff --git a/src/app/services/api/api/achievements.service.ts b/src/app/services/api/api/achievements.service.ts index 7b77108..5f56895 100644 --- a/src/app/services/api/api/achievements.service.ts +++ b/src/app/services/api/api/achievements.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,31 +9,31 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { ErrorResponse } from '../model/error-response'; +import {ErrorResponse} from '../model/error-response'; // @ts-ignore -import { GetAchievementDto } from '../model/get-achievement-dto'; +import {GetAchievementDto} from '../model/get-achievement-dto'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class AchievementsService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } @@ -43,10 +43,26 @@ export class AchievementsService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -77,15 +93,15 @@ export class AchievementsService extends BaseService { } let localVarPath = `/API/Achievements`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -97,10 +113,26 @@ export class AchievementsService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -131,15 +163,15 @@ export class AchievementsService extends BaseService { } let localVarPath = `/API/Achievements/Locked/Users`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -151,10 +183,26 @@ export class AchievementsService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -185,15 +233,15 @@ export class AchievementsService extends BaseService { } let localVarPath = `/API/Achievements/Users`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -201,15 +249,31 @@ export class AchievementsService extends BaseService { /** * @endpoint post /API/Achievements/{achievementId}/Users - * @param achievementId + * @param achievementId * @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. * @param options additional options */ - public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (achievementId === null || achievementId === undefined) { throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.'); } @@ -242,16 +306,24 @@ export class AchievementsService extends BaseService { } } - let localVarPath = `/API/Achievements/${this.configuration.encodeParam({name: "achievementId", value: achievementId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Achievements/${this.configuration.encodeParam({ + name: "achievementId", + value: achievementId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Users`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/api.ts b/src/app/services/api/api/api.ts index 43f3297..3f2adfb 100644 --- a/src/app/services/api/api/api.ts +++ b/src/app/services/api/api/api.ts @@ -1,19 +1,28 @@ export * from './achievements.service'; -import { AchievementsService } from './achievements.service'; +import {AchievementsService} from './achievements.service'; + export * from './auth.service'; -import { AuthService } from './auth.service'; +import {AuthService} from './auth.service'; + export * from './designations.service'; -import { DesignationsService } from './designations.service'; +import {DesignationsService} from './designations.service'; + export * from './friends.service'; -import { FriendsService } from './friends.service'; +import {FriendsService} from './friends.service'; + export * from './groups.service'; -import { GroupsService } from './groups.service'; +import {GroupsService} from './groups.service'; + export * from './messages.service'; -import { MessagesService } from './messages.service'; +import {MessagesService} from './messages.service'; + export * from './overallranking.service'; -import { OverallrankingService } from './overallranking.service'; +import {OverallrankingService} from './overallranking.service'; + export * from './randomchallenges.service'; -import { RandomchallengesService } from './randomchallenges.service'; +import {RandomchallengesService} from './randomchallenges.service'; + export * from './users.service'; -import { UsersService } from './users.service'; +import {UsersService} from './users.service'; + export const APIS = [AchievementsService, AuthService, DesignationsService, FriendsService, GroupsService, MessagesService, OverallrankingService, RandomchallengesService, UsersService]; diff --git a/src/app/services/api/api/auth.service.ts b/src/app/services/api/api/auth.service.ts index 1a1435c..507c8aa 100644 --- a/src/app/services/api/api/auth.service.ts +++ b/src/app/services/api/api/auth.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,49 +9,65 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { ErrorResponse } from '../model/error-response'; +import {ErrorResponse} from '../model/error-response'; // @ts-ignore -import { GetTokenDto } from '../model/get-token-dto'; +import {GetTokenDto} from '../model/get-token-dto'; // @ts-ignore -import { LoginDto } from '../model/login-dto'; +import {LoginDto} from '../model/login-dto'; // @ts-ignore -import { RefreshTokenDto } from '../model/refresh-token-dto'; +import {RefreshTokenDto} from '../model/refresh-token-dto'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class AuthService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } /** * @endpoint post /API/Auth/Login - * @param loginDto + * @param loginDto * @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. * @param options additional options */ - public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json' | 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json' | 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json' | 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json' | 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (loginDto === null || loginDto === undefined) { throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.'); } @@ -92,16 +108,16 @@ export class AuthService extends BaseService { } let localVarPath = `/API/Auth/Login`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: loginDto, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -109,15 +125,31 @@ export class AuthService extends BaseService { /** * @endpoint post /API/Auth/RefreshToken - * @param refreshTokenDto + * @param refreshTokenDto * @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. * @param options additional options */ - public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json' | 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json' | 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json' | 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json' | 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (refreshTokenDto === null || refreshTokenDto === undefined) { throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.'); } @@ -158,16 +190,16 @@ export class AuthService extends BaseService { } let localVarPath = `/API/Auth/RefreshToken`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: refreshTokenDto, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/designations.service.ts b/src/app/services/api/api/designations.service.ts index ac5e332..26f8137 100644 --- a/src/app/services/api/api/designations.service.ts +++ b/src/app/services/api/api/designations.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,29 +9,29 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { GetDesignationDto } from '../model/get-designation-dto'; +import {GetDesignationDto} from '../model/get-designation-dto'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class DesignationsService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } @@ -41,10 +41,26 @@ export class DesignationsService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -75,15 +91,15 @@ export class DesignationsService extends BaseService { } let localVarPath = `/API/Designations`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/friends.service.ts b/src/app/services/api/api/friends.service.ts index fe0c0f8..15ed277 100644 --- a/src/app/services/api/api/friends.service.ts +++ b/src/app/services/api/api/friends.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,45 +9,61 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { GetFriendDto } from '../model/get-friend-dto'; +import {GetFriendDto} from '../model/get-friend-dto'; // @ts-ignore -import { GetFriendRequestDto } from '../model/get-friend-request-dto'; +import {GetFriendRequestDto} from '../model/get-friend-request-dto'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class FriendsService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } /** * @endpoint put /API/Friends/{friendId}/Request - * @param friendId + * @param friendId * @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. * @param options additional options */ - public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (friendId === null || friendId === undefined) { throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.'); } @@ -57,8 +73,7 @@ export class FriendsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -79,16 +94,24 @@ export class FriendsService extends BaseService { } } - let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Friends/${this.configuration.encodeParam({ + name: "friendId", + value: friendId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Request`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -96,15 +119,31 @@ export class FriendsService extends BaseService { /** * @endpoint delete /API/Friends/{friendId} - * @param friendId + * @param friendId * @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. * @param options additional options */ - public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (friendId === null || friendId === undefined) { throw new Error('Required parameter friendId was null or undefined when calling deleteFriendEndpoint.'); } @@ -114,8 +153,7 @@ export class FriendsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -136,16 +174,24 @@ export class FriendsService extends BaseService { } } - let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Friends/${this.configuration.encodeParam({ + name: "friendId", + value: friendId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -157,10 +203,26 @@ export class FriendsService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -191,15 +253,15 @@ export class FriendsService extends BaseService { } let localVarPath = `/API/Friends/Requests`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -211,10 +273,26 @@ export class FriendsService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -245,15 +323,15 @@ export class FriendsService extends BaseService { } let localVarPath = `/API/Friends`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -261,15 +339,31 @@ export class FriendsService extends BaseService { /** * @endpoint delete /API/Friends/{friendId}/Request - * @param friendId + * @param friendId * @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. * @param options additional options */ - public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (friendId === null || friendId === undefined) { throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.'); } @@ -279,8 +373,7 @@ export class FriendsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -301,16 +394,24 @@ export class FriendsService extends BaseService { } } - let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Friends/${this.configuration.encodeParam({ + name: "friendId", + value: friendId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Request`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -318,15 +419,31 @@ export class FriendsService extends BaseService { /** * @endpoint post /API/Friends/{friendId} - * @param friendId + * @param friendId * @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. * @param options additional options */ - public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (friendId === null || friendId === undefined) { throw new Error('Required parameter friendId was null or undefined when calling sendFriendRequestEndpoint.'); } @@ -336,8 +453,7 @@ export class FriendsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -358,16 +474,24 @@ export class FriendsService extends BaseService { } } - let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Friends/${this.configuration.encodeParam({ + name: "friendId", + value: friendId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/groups.service.ts b/src/app/services/api/api/groups.service.ts index 34479a4..3a28fe9 100644 --- a/src/app/services/api/api/groups.service.ts +++ b/src/app/services/api/api/groups.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,60 +9,76 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { CreateGroupDto } from '../model/create-group-dto'; +import {CreateGroupDto} from '../model/create-group-dto'; // @ts-ignore -import { ErrorResponse } from '../model/error-response'; +import {ErrorResponse} from '../model/error-response'; // @ts-ignore -import { GetGroupDetailsDto } from '../model/get-group-details-dto'; +import {GetGroupDetailsDto} from '../model/get-group-details-dto'; // @ts-ignore -import { GetGroupDto } from '../model/get-group-dto'; +import {GetGroupDto} from '../model/get-group-dto'; // @ts-ignore -import { GetGroupRankingDto } from '../model/get-group-ranking-dto'; +import {GetGroupRankingDto} from '../model/get-group-ranking-dto'; // @ts-ignore -import { GetProofDto } from '../model/get-proof-dto'; +import {GetProofDto} from '../model/get-proof-dto'; // @ts-ignore -import { GetUserGroupDto } from '../model/get-user-group-dto'; +import {GetUserGroupDto} from '../model/get-user-group-dto'; // @ts-ignore -import { UserProofRequest } from '../model/user-proof-request'; +import {UserProofRequest} from '../model/user-proof-request'; // @ts-ignore -import { UserVoteRequest } from '../model/user-vote-request'; +import {UserVoteRequest} from '../model/user-vote-request'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class GroupsService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } /** * @endpoint post /API/Groups/{groupId}/Users/{userId} - * @param groupId - * @param userId + * @param groupId + * @param userId * @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. * @param options additional options */ - public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (groupId === null || groupId === undefined) { throw new Error('Required parameter groupId was null or undefined when calling addUserToGroupEndpoint.'); } @@ -75,8 +91,7 @@ export class GroupsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -97,16 +112,32 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Users/${this.configuration.encodeParam({ + name: "userId", + value: userId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -114,15 +145,31 @@ export class GroupsService extends BaseService { /** * @endpoint post /API/Groups - * @param createGroupDto + * @param createGroupDto * @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. * @param options additional options */ - public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (createGroupDto === null || createGroupDto === undefined) { throw new Error('Required parameter createGroupDto was null or undefined when calling createGroupEndpoint.'); } @@ -165,16 +212,16 @@ export class GroupsService extends BaseService { } let localVarPath = `/API/Groups`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createGroupDto, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -182,15 +229,31 @@ export class GroupsService extends BaseService { /** * @endpoint delete /API/Groups/{id} - * @param 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. * @param options additional options */ - public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling deleteGroupEndpoint.'); } @@ -200,8 +263,7 @@ export class GroupsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -222,16 +284,24 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${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}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -239,16 +309,32 @@ export class GroupsService extends BaseService { /** * @endpoint delete /API/Groups/{groupId}/Users/{userId} - * @param groupId - * @param userId + * @param groupId + * @param userId * @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. * @param options additional options */ - public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (groupId === null || groupId === undefined) { throw new Error('Required parameter groupId was null or undefined when calling deleteUserFromGroupEndpoint.'); } @@ -261,8 +347,7 @@ export class GroupsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -283,16 +368,32 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Users/${this.configuration.encodeParam({ + name: "userId", + value: userId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -300,15 +401,31 @@ export class GroupsService extends BaseService { /** * @endpoint get /API/Groups/{id}/Users - * @param 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. * @param options additional options */ - public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllGroupUsersEndpoint(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 getAllGroupUsersEndpoint.'); } @@ -341,16 +458,24 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "id", + value: id, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Users`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -362,10 +487,26 @@ export class GroupsService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -396,15 +537,15 @@ export class GroupsService extends BaseService { } let localVarPath = `/API/Groups/Users`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -412,15 +553,31 @@ export class GroupsService extends BaseService { /** * @endpoint get /API/Groups/{id}/Proofs - * @param 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. * @param options additional options */ - public getAllProofsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllProofsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllProofsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllProofsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllProofsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllProofsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllProofsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllProofsEndpoint(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 getAllProofsEndpoint.'); } @@ -453,16 +610,24 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Proofs`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "id", + value: id, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Proofs`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -470,15 +635,31 @@ export class GroupsService extends BaseService { /** * @endpoint get /API/Groups/{id} - * @param 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. * @param options additional options */ - public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getGroupDetailsEndpoint(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 getGroupDetailsEndpoint.'); } @@ -511,16 +692,24 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${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}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -528,15 +717,31 @@ export class GroupsService extends BaseService { /** * @endpoint get /API/Groups/{id}/GroupRank - * @param 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. * @param options additional options */ - public getGroupRankingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getGroupRankingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getGroupRankingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getGroupRankingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getGroupRankingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getGroupRankingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getGroupRankingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getGroupRankingEndpoint(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 getGroupRankingEndpoint.'); } @@ -569,16 +774,24 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/GroupRank`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "id", + value: id, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/GroupRank`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -586,15 +799,31 @@ export class GroupsService extends BaseService { /** * @endpoint patch /API/Groups/{groupId}/Status - * @param groupId + * @param groupId * @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. * @param options additional options */ - public patchGroupStatusEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public patchGroupStatusEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchGroupStatusEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchGroupStatusEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public patchGroupStatusEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public patchGroupStatusEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchGroupStatusEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchGroupStatusEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (groupId === null || groupId === undefined) { throw new Error('Required parameter groupId was null or undefined when calling patchGroupStatusEndpoint.'); } @@ -604,8 +833,7 @@ export class GroupsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -626,16 +854,24 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Status`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Status`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -643,16 +879,32 @@ export class GroupsService extends BaseService { /** * @endpoint patch /API/Groups/{groupId}/Users/Proof - * @param groupId - * @param userProofRequest + * @param groupId + * @param userProofRequest * @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. * @param options additional options */ - public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (groupId === null || groupId === undefined) { throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserProofEndpoint.'); } @@ -665,8 +917,7 @@ export class GroupsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -696,17 +947,25 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/Proof`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Users/Proof`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: userProofRequest, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -714,16 +973,32 @@ export class GroupsService extends BaseService { /** * @endpoint patch /API/Groups/{groupId}/Users/{userId}/Role - * @param groupId - * @param userId + * @param groupId + * @param userId * @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. * @param options additional options */ - public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (groupId === null || groupId === undefined) { throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserRoleEndpoint.'); } @@ -736,8 +1011,7 @@ export class GroupsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -758,16 +1032,32 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Role`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Users/${this.configuration.encodeParam({ + name: "userId", + value: userId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Role`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -775,16 +1065,32 @@ export class GroupsService extends BaseService { /** * @endpoint patch /API/Groups/{groupId}/Users/Vote - * @param groupId - * @param userVoteRequest + * @param groupId + * @param userVoteRequest * @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. * @param options additional options */ - public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (groupId === null || groupId === undefined) { throw new Error('Required parameter groupId was null or undefined when calling patchVoteEndpoint.'); } @@ -797,8 +1103,7 @@ export class GroupsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -828,17 +1133,25 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/Vote`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Users/Vote`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: userVoteRequest, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -846,15 +1159,31 @@ export class GroupsService extends BaseService { /** * @endpoint post /API/Groups/{id}/Vote - * @param 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. * @param options additional options */ - public startVoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public startVoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public startVoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public startVoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public startVoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public startVoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public startVoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public startVoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling startVoteEndpoint.'); } @@ -864,8 +1193,7 @@ export class GroupsService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -886,16 +1214,24 @@ export class GroupsService extends BaseService { } } - let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Vote`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Groups/${this.configuration.encodeParam({ + name: "id", + value: id, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Vote`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/messages.service.ts b/src/app/services/api/api/messages.service.ts index bb14d82..daa658f 100644 --- a/src/app/services/api/api/messages.service.ts +++ b/src/app/services/api/api/messages.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,48 +9,64 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { CreateMessageDto } from '../model/create-message-dto'; +import {CreateMessageDto} from '../model/create-message-dto'; // @ts-ignore -import { ErrorResponse } from '../model/error-response'; +import {ErrorResponse} from '../model/error-response'; // @ts-ignore -import { GetMessageDto } from '../model/get-message-dto'; +import {GetMessageDto} from '../model/get-message-dto'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class MessagesService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } /** * @endpoint delete /API/Messages/{id}/Groups/{groupId} - * @param id - * @param groupId + * @param id + * @param groupId * @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. * @param options additional options */ - public deleteMessageEndpoint(id: number, groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteMessageEndpoint(id: number, groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteMessageEndpoint(id: number, groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteMessageEndpoint(id: number, groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public deleteMessageEndpoint(id: number, groupId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public deleteMessageEndpoint(id: number, groupId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteMessageEndpoint(id: number, groupId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteMessageEndpoint(id: number, groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling deleteMessageEndpoint.'); } @@ -63,8 +79,7 @@ export class MessagesService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -85,16 +100,32 @@ export class MessagesService extends BaseService { } } - let localVarPath = `/API/Messages/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Messages/${this.configuration.encodeParam({ + name: "id", + value: id, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -102,15 +133,31 @@ export class MessagesService extends BaseService { /** * @endpoint get /API/Messages/Groups/{groupId} - * @param groupId + * @param groupId * @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. * @param options additional options */ - public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getMessagesEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getMessagesEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getMessagesEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getMessagesEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getMessagesEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getMessagesEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (groupId === null || groupId === undefined) { throw new Error('Required parameter groupId was null or undefined when calling getMessagesEndpoint.'); } @@ -143,16 +190,24 @@ export class MessagesService extends BaseService { } } - let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -160,16 +215,32 @@ export class MessagesService extends BaseService { /** * @endpoint post /API/Messages/Groups/{groupId} - * @param groupId - * @param createMessageDto + * @param groupId + * @param createMessageDto * @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. * @param options additional options */ - public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (groupId === null || groupId === undefined) { throw new Error('Required parameter groupId was null or undefined when calling sendMessageEndpoint.'); } @@ -214,17 +285,25 @@ export class MessagesService extends BaseService { } } - let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({ + name: "groupId", + value: groupId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createMessageDto, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/overallranking.service.ts b/src/app/services/api/api/overallranking.service.ts index f338e49..b38e54d 100644 --- a/src/app/services/api/api/overallranking.service.ts +++ b/src/app/services/api/api/overallranking.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,29 +9,29 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { GetUserDto } from '../model/get-user-dto'; +import {GetUserDto} from '../model/get-user-dto'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class OverallrankingService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } @@ -41,10 +41,26 @@ export class OverallrankingService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getOverallRankingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getOverallRankingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getOverallRankingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getOverallRankingEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getOverallRankingEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getOverallRankingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -75,15 +91,15 @@ export class OverallrankingService extends BaseService { } let localVarPath = `/API/OverallRanking`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/randomchallenges.service.ts b/src/app/services/api/api/randomchallenges.service.ts index e86bbb0..0b530bd 100644 --- a/src/app/services/api/api/randomchallenges.service.ts +++ b/src/app/services/api/api/randomchallenges.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,29 +9,29 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { GetRandomChallengeDto } from '../model/get-random-challenge-dto'; +import {GetRandomChallengeDto} from '../model/get-random-challenge-dto'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class RandomchallengesService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } @@ -41,10 +41,26 @@ export class RandomchallengesService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -75,15 +91,15 @@ export class RandomchallengesService extends BaseService { } let localVarPath = `/API/RandomChallenges`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -91,15 +107,31 @@ export class RandomchallengesService extends BaseService { /** * @endpoint get /API/RandomChallenges/{randomChallengeId} - * @param randomChallengeId + * @param randomChallengeId * @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. * @param options additional options */ - public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getRandomChallengeEndpoint(randomChallengeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getRandomChallengeEndpoint(randomChallengeId: number, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (randomChallengeId === null || randomChallengeId === undefined) { throw new Error('Required parameter randomChallengeId was null or undefined when calling getRandomChallengeEndpoint.'); } @@ -132,16 +164,24 @@ export class RandomchallengesService extends BaseService { } } - let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({name: "randomChallengeId", value: randomChallengeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({ + name: "randomChallengeId", + value: randomChallengeId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -149,16 +189,32 @@ export class RandomchallengesService extends BaseService { /** * @endpoint patch /API/RandomChallenges/{randomChallengeId}/Proof - * @param randomChallengeId - * @param proof + * @param randomChallengeId + * @param proof * @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. * @param options additional options */ - public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { if (randomChallengeId === null || randomChallengeId === undefined) { throw new Error('Required parameter randomChallengeId was null or undefined when calling patchProofEndpoint.'); } @@ -168,8 +224,7 @@ export class RandomchallengesService extends BaseService { // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -212,17 +267,25 @@ export class RandomchallengesService extends BaseService { } } - let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({name: "randomChallengeId", value: randomChallengeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Proof`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({ + name: "randomChallengeId", + value: randomChallengeId, + in: "path", + style: "simple", + explode: false, + dataType: "number", + dataFormat: "int32" + })}/Proof`; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/api/users.service.ts b/src/app/services/api/api/users.service.ts index 408df79..d3d33cc 100644 --- a/src/app/services/api/api/users.service.ts +++ b/src/app/services/api/api/users.service.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,59 +9,75 @@ */ /* tslint:disable:no-unused-variable member-ordering */ -import { Inject, Injectable, Optional } from '@angular/core'; -import { HttpClient, HttpHeaders, HttpParams, - HttpResponse, HttpEvent, HttpContext - } from '@angular/common/http'; -import { Observable } from 'rxjs'; -import { OpenApiHttpParams, QueryParamStyle } from '../query.params'; +import {Inject, Injectable, Optional} from '@angular/core'; +import { + HttpClient, HttpHeaders, HttpParams, + HttpResponse, HttpEvent, HttpContext +} from '@angular/common/http'; +import {Observable} from 'rxjs'; +import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; // @ts-ignore -import { CreateUserDto } from '../model/create-user-dto'; +import {CreateUserDto} from '../model/create-user-dto'; // @ts-ignore -import { ErrorResponse } from '../model/error-response'; +import {ErrorResponse} from '../model/error-response'; // @ts-ignore -import { GetUserChallengeDto } from '../model/get-user-challenge-dto'; +import {GetUserChallengeDto} from '../model/get-user-challenge-dto'; // @ts-ignore -import { GetUserDetailsDto } from '../model/get-user-details-dto'; +import {GetUserDetailsDto} from '../model/get-user-details-dto'; // @ts-ignore -import { GetUserDto } from '../model/get-user-dto'; +import {GetUserDto} from '../model/get-user-dto'; // @ts-ignore -import { GetUserProofDto } from '../model/get-user-proof-dto'; +import {GetUserProofDto} from '../model/get-user-proof-dto'; // @ts-ignore -import { PatchUserDesignationDto } from '../model/patch-user-designation-dto'; +import {PatchUserDesignationDto} from '../model/patch-user-designation-dto'; // @ts-ignore -import { PatchUserPasswordDto } from '../model/patch-user-password-dto'; +import {PatchUserPasswordDto} from '../model/patch-user-password-dto'; // @ts-ignore -import { UpdateUserDto } from '../model/update-user-dto'; +import {UpdateUserDto} from '../model/update-user-dto'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; -import { Configuration } from '../configuration'; -import { BaseService } from '../api.base.service'; - +import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; +import {Configuration} from '../configuration'; +import {BaseService} from '../api.base.service'; @Injectable({ - providedIn: 'root' + providedIn: 'root' }) export class UsersService extends BaseService { - constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) { + constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { super(basePath, configuration); } /** * @endpoint post /API/Users - * @param createUserDto + * @param createUserDto * @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. * @param options additional options */ - public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (createUserDto === null || createUserDto === undefined) { throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.'); } @@ -101,16 +117,16 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: createUserDto, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -122,18 +138,33 @@ export class UsersService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable; + public deleteUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public deleteUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: undefined, + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; // authentication (JWTBearerAuth) required localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); - const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([ - ]); + const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]); if (localVarHttpHeaderAcceptSelected !== undefined) { localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); } @@ -155,15 +186,15 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -175,10 +206,26 @@ export class UsersService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllUserChallengesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllUserChallengesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllUserChallengesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllUserChallengesEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllUserChallengesEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllUserChallengesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -209,15 +256,15 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users/Challenges`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -229,10 +276,26 @@ export class UsersService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllUserProofsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllUserProofsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllUserProofsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllUserProofsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllUserProofsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllUserProofsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -263,15 +326,15 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users/Proofs`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -283,10 +346,26 @@ export class UsersService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>>; + public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -317,15 +396,15 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -337,10 +416,26 @@ export class UsersService extends BaseService { * @param reportProgress flag to report request and response progress. * @param options additional options */ - public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getUserDetailsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getUserDetailsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getUserDetailsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public getUserDetailsEndpoint(observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getUserDetailsEndpoint(observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getUserDetailsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable { let localVarHeaders = this.defaultHeaders; @@ -371,15 +466,15 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users/Details`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -387,15 +482,31 @@ export class UsersService extends BaseService { /** * @endpoint get /API/Users/{id} - * @param 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. * @param options additional options */ - public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public getUserEndpoint(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 getUserEndpoint.'); } @@ -428,16 +539,24 @@ export class UsersService extends BaseService { } } - let localVarPath = `/API/Users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; - const { basePath, withCredentials } = this.configuration; + let localVarPath = `/API/Users/${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}`, { context: localVarHttpContext, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -445,15 +564,31 @@ export class UsersService extends BaseService { /** * @endpoint patch /API/Users/Designation - * @param patchUserDesignationDto + * @param patchUserDesignationDto * @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. * @param options additional options */ - public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (patchUserDesignationDto === null || patchUserDesignationDto === undefined) { throw new Error('Required parameter patchUserDesignationDto was null or undefined when calling patchUserDesignationEndpoint.'); } @@ -496,16 +631,16 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users/Designation`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchUserDesignationDto, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -513,15 +648,31 @@ export class UsersService extends BaseService { /** * @endpoint patch /API/Users/Password - * @param patchUserPasswordDto + * @param patchUserPasswordDto * @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. * @param options additional options */ - public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (patchUserPasswordDto === null || patchUserPasswordDto === undefined) { throw new Error('Required parameter patchUserPasswordDto was null or undefined when calling patchUserPasswordEndpoint.'); } @@ -564,16 +715,16 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users/Password`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: patchUserPasswordDto, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); @@ -581,15 +732,31 @@ export class UsersService extends BaseService { /** * @endpoint put /API/Users - * @param updateUserDto + * @param updateUserDto * @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. * @param options additional options */ - public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateUserEndpoint(updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable { + public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable; + public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable>; + public updateUserEndpoint(updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: { + httpHeaderAccept?: 'application/problem+json', + context?: HttpContext, + transferCache?: boolean + }): Observable { if (updateUserDto === null || updateUserDto === undefined) { throw new Error('Required parameter updateUserDto was null or undefined when calling updateUserEndpoint.'); } @@ -629,16 +796,16 @@ export class UsersService extends BaseService { } let localVarPath = `/API/Users`; - const { basePath, withCredentials } = this.configuration; + const {basePath, withCredentials} = this.configuration; return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, body: updateUserDto, responseType: responseType_, - ...(withCredentials ? { withCredentials } : {}), + ...(withCredentials ? {withCredentials} : {}), headers: localVarHeaders, observe: observe, - ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}), + ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), reportProgress: reportProgress } ); diff --git a/src/app/services/api/configuration.ts b/src/app/services/api/configuration.ts index fde0c16..75789a9 100644 --- a/src/app/services/api/configuration.ts +++ b/src/app/services/api/configuration.ts @@ -1,12 +1,12 @@ -import { HttpHeaders, HttpParameterCodec } from '@angular/common/http'; -import { Param } from './param'; -import { OpenApiHttpParams } from './query.params'; +import {HttpHeaders, HttpParameterCodec} from '@angular/common/http'; +import {Param} from './param'; +import {OpenApiHttpParams} from './query.params'; export interface ConfigurationParameters { /** * @deprecated Since 5.0. Use credentials instead */ - apiKeys?: {[ key: string ]: string}; + apiKeys?: { [key: string]: string }; username?: string; password?: string; /** @@ -32,14 +32,14 @@ export interface ConfigurationParameters { * document. They should map to the value used for authentication * minus any standard prefixes such as 'Basic' or 'Bearer'. */ - credentials?: {[ key: string ]: string | (() => string | undefined)}; + credentials?: { [key: string]: string | (() => string | undefined) }; } export class Configuration { /** * @deprecated Since 5.0. Use credentials instead */ - apiKeys?: {[ key: string ]: string}; + apiKeys?: { [key: string]: string }; username?: string; password?: string; /** @@ -65,9 +65,19 @@ export class Configuration { * document. They should map to the value used for authentication * minus any standard prefixes such as 'Basic' or 'Bearer'. */ - credentials: {[ key: string ]: string | (() => string | undefined)}; + credentials: { [key: string]: string | (() => string | undefined) }; -constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) { + constructor({ + accessToken, + apiKeys, + basePath, + credentials, + encodeParam, + encoder, + password, + username, + withCredentials + }: ConfigurationParameters = {}) { if (apiKeys) { this.apiKeys = apiKeys; } @@ -109,7 +119,7 @@ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, * @param contentTypes - the array of content types that are available for selection * @returns the selected content-type or undefined if no selection could be made. */ - public selectHeaderContentType (contentTypes: string[]): string | undefined { + public selectHeaderContentType(contentTypes: string[]): string | undefined { if (contentTypes.length === 0) { return undefined; } diff --git a/src/app/services/api/encoder.ts b/src/app/services/api/encoder.ts index af45235..6314562 100644 --- a/src/app/services/api/encoder.ts +++ b/src/app/services/api/encoder.ts @@ -1,4 +1,4 @@ -import { HttpParameterCodec } from '@angular/common/http'; +import {HttpParameterCodec} from '@angular/common/http'; /** * Custom HttpParameterCodec @@ -8,12 +8,15 @@ export class CustomHttpParameterCodec implements HttpParameterCodec { encodeKey(k: string): string { return encodeURIComponent(k); } + encodeValue(v: string): string { return encodeURIComponent(v); } + decodeKey(k: string): string { return decodeURIComponent(k); } + decodeValue(v: string): string { return decodeURIComponent(v); } @@ -23,12 +26,15 @@ export class IdentityHttpParameterCodec implements HttpParameterCodec { encodeKey(k: string): string { return k; } + encodeValue(v: string): string { return v; } + decodeKey(k: string): string { return k; } + decodeValue(v: string): string { return v; } diff --git a/src/app/services/api/model/create-group-dto.ts b/src/app/services/api/model/create-group-dto.ts index 2a2cc1e..ecb4658 100644 --- a/src/app/services/api/model/create-group-dto.ts +++ b/src/app/services/api/model/create-group-dto.ts @@ -1,16 +1,16 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { CreateUserGroupDto } from './create-user-group-dto'; +import {CreateUserGroupDto} from './create-user-group-dto'; -export interface CreateGroupDto { +export interface CreateGroupDto { label: string; title: string; description: string; diff --git a/src/app/services/api/model/create-message-dto.ts b/src/app/services/api/model/create-message-dto.ts index 4af4c4b..3a11aa7 100644 --- a/src/app/services/api/model/create-message-dto.ts +++ b/src/app/services/api/model/create-message-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreateMessageDto { +export interface CreateMessageDto { libelle: string; sendDate: string; } diff --git a/src/app/services/api/model/create-user-dto.ts b/src/app/services/api/model/create-user-dto.ts index 30bfc5e..f8ae0a8 100644 --- a/src/app/services/api/model/create-user-dto.ts +++ b/src/app/services/api/model/create-user-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreateUserDto { +export interface CreateUserDto { firstName: string; name: string; username: string; diff --git a/src/app/services/api/model/create-user-group-dto.ts b/src/app/services/api/model/create-user-group-dto.ts index 8a361f8..061a21a 100644 --- a/src/app/services/api/model/create-user-group-dto.ts +++ b/src/app/services/api/model/create-user-group-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface CreateUserGroupDto { +export interface CreateUserGroupDto { userId?: number; } diff --git a/src/app/services/api/model/error-response.ts b/src/app/services/api/model/error-response.ts index c98aa6d..8934461 100644 --- a/src/app/services/api/model/error-response.ts +++ b/src/app/services/api/model/error-response.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -12,7 +12,7 @@ /** * the dto used to send an error response to the client */ -export interface ErrorResponse { +export interface ErrorResponse { /** * the http status code sent to the client. default is 400. */ diff --git a/src/app/services/api/model/get-achievement-dto.ts b/src/app/services/api/model/get-achievement-dto.ts index 82c40ca..8253746 100644 --- a/src/app/services/api/model/get-achievement-dto.ts +++ b/src/app/services/api/model/get-achievement-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetAchievementDto { +export interface GetAchievementDto { id?: number; label?: string | null; description?: string | null; diff --git a/src/app/services/api/model/get-designation-dto.ts b/src/app/services/api/model/get-designation-dto.ts index 5f6f7c7..8eb51d7 100644 --- a/src/app/services/api/model/get-designation-dto.ts +++ b/src/app/services/api/model/get-designation-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetDesignationDto { +export interface GetDesignationDto { id?: number; label?: string | null; } diff --git a/src/app/services/api/model/get-friend-dto.ts b/src/app/services/api/model/get-friend-dto.ts index b414ef4..0fe8c39 100644 --- a/src/app/services/api/model/get-friend-dto.ts +++ b/src/app/services/api/model/get-friend-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetFriendDto { +export interface GetFriendDto { friendId?: number; username?: string | null; score?: number; diff --git a/src/app/services/api/model/get-friend-request-dto.ts b/src/app/services/api/model/get-friend-request-dto.ts index 03121b5..bdf337c 100644 --- a/src/app/services/api/model/get-friend-request-dto.ts +++ b/src/app/services/api/model/get-friend-request-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetFriendRequestDto { +export interface GetFriendRequestDto { userId?: number; username?: string | null; score?: number; diff --git a/src/app/services/api/model/get-group-details-dto.ts b/src/app/services/api/model/get-group-details-dto.ts index a029b73..689f3fb 100644 --- a/src/app/services/api/model/get-group-details-dto.ts +++ b/src/app/services/api/model/get-group-details-dto.ts @@ -1,17 +1,17 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { GetMessageDto } from './get-message-dto'; -import { GetUserGroupDto } from './get-user-group-dto'; +import {GetMessageDto} from './get-message-dto'; +import {GetUserGroupDto} from './get-user-group-dto'; -export interface GetGroupDetailsDto { +export interface GetGroupDetailsDto { id?: number; label?: string | null; isFinished?: boolean; diff --git a/src/app/services/api/model/get-group-dto.ts b/src/app/services/api/model/get-group-dto.ts index 6457fcd..c743674 100644 --- a/src/app/services/api/model/get-group-dto.ts +++ b/src/app/services/api/model/get-group-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetGroupDto { +export interface GetGroupDto { id?: number; label?: string | null; isFinished?: boolean; diff --git a/src/app/services/api/model/get-group-ranking-dto.ts b/src/app/services/api/model/get-group-ranking-dto.ts index 4ec52ac..2f99531 100644 --- a/src/app/services/api/model/get-group-ranking-dto.ts +++ b/src/app/services/api/model/get-group-ranking-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetGroupRankingDto { +export interface GetGroupRankingDto { userId?: number; username?: string | null; score?: number; diff --git a/src/app/services/api/model/get-message-dto.ts b/src/app/services/api/model/get-message-dto.ts index 6ff10ce..05bfa11 100644 --- a/src/app/services/api/model/get-message-dto.ts +++ b/src/app/services/api/model/get-message-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetMessageDto { +export interface GetMessageDto { id?: number; libelle?: string | null; sendDate?: string; diff --git a/src/app/services/api/model/get-proof-dto.ts b/src/app/services/api/model/get-proof-dto.ts index 971acd2..86c6ab5 100644 --- a/src/app/services/api/model/get-proof-dto.ts +++ b/src/app/services/api/model/get-proof-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetProofDto { +export interface GetProofDto { userId?: number; username?: string | null; proof?: string | null; diff --git a/src/app/services/api/model/get-random-challenge-dto.ts b/src/app/services/api/model/get-random-challenge-dto.ts index 765c501..6c430e7 100644 --- a/src/app/services/api/model/get-random-challenge-dto.ts +++ b/src/app/services/api/model/get-random-challenge-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetRandomChallengeDto { +export interface GetRandomChallengeDto { id?: number; label?: string | null; libelle?: string | null; diff --git a/src/app/services/api/model/get-token-dto.ts b/src/app/services/api/model/get-token-dto.ts index bce41dd..80e7d8c 100644 --- a/src/app/services/api/model/get-token-dto.ts +++ b/src/app/services/api/model/get-token-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetTokenDto { +export interface GetTokenDto { token?: string | null; } diff --git a/src/app/services/api/model/get-user-challenge-dto.ts b/src/app/services/api/model/get-user-challenge-dto.ts index 6f44a04..4b79988 100644 --- a/src/app/services/api/model/get-user-challenge-dto.ts +++ b/src/app/services/api/model/get-user-challenge-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetUserChallengeDto { +export interface GetUserChallengeDto { challengeTitle?: string | null; challengeDescription?: string | null; challengeDuration?: number; diff --git a/src/app/services/api/model/get-user-details-dto.ts b/src/app/services/api/model/get-user-details-dto.ts index b1e9c51..d55f543 100644 --- a/src/app/services/api/model/get-user-details-dto.ts +++ b/src/app/services/api/model/get-user-details-dto.ts @@ -1,16 +1,16 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { GetUserStatsDto } from './get-user-stats-dto'; +import {GetUserStatsDto} from './get-user-stats-dto'; -export interface GetUserDetailsDto { +export interface GetUserDetailsDto { id?: number; firstName?: string | null; name?: string | null; diff --git a/src/app/services/api/model/get-user-dto.ts b/src/app/services/api/model/get-user-dto.ts index 6517cdb..a744617 100644 --- a/src/app/services/api/model/get-user-dto.ts +++ b/src/app/services/api/model/get-user-dto.ts @@ -1,16 +1,16 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { GetUserStatsDto } from './get-user-stats-dto'; +import {GetUserStatsDto} from './get-user-stats-dto'; -export interface GetUserDto { +export interface GetUserDto { id?: number; firstName?: string | null; name?: string | null; diff --git a/src/app/services/api/model/get-user-group-dto.ts b/src/app/services/api/model/get-user-group-dto.ts index 5f85f9d..b9c7515 100644 --- a/src/app/services/api/model/get-user-group-dto.ts +++ b/src/app/services/api/model/get-user-group-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetUserGroupDto { +export interface GetUserGroupDto { id?: number; username?: string | null; grade?: string | null; diff --git a/src/app/services/api/model/get-user-proof-dto.ts b/src/app/services/api/model/get-user-proof-dto.ts index 4386726..ebeca93 100644 --- a/src/app/services/api/model/get-user-proof-dto.ts +++ b/src/app/services/api/model/get-user-proof-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetUserProofDto { +export interface GetUserProofDto { id?: number; proof?: string | null; } diff --git a/src/app/services/api/model/get-user-stats-dto.ts b/src/app/services/api/model/get-user-stats-dto.ts index 2825912..f454461 100644 --- a/src/app/services/api/model/get-user-stats-dto.ts +++ b/src/app/services/api/model/get-user-stats-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface GetUserStatsDto { +export interface GetUserStatsDto { id?: number; score?: number; totalWin?: number; diff --git a/src/app/services/api/model/login-dto.ts b/src/app/services/api/model/login-dto.ts index 62776d3..8d85c20 100644 --- a/src/app/services/api/model/login-dto.ts +++ b/src/app/services/api/model/login-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface LoginDto { +export interface LoginDto { username: string; password: string; } diff --git a/src/app/services/api/model/patch-user-designation-dto.ts b/src/app/services/api/model/patch-user-designation-dto.ts index 71ebcfd..aa05b51 100644 --- a/src/app/services/api/model/patch-user-designation-dto.ts +++ b/src/app/services/api/model/patch-user-designation-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchUserDesignationDto { +export interface PatchUserDesignationDto { designationId: number; } diff --git a/src/app/services/api/model/patch-user-password-dto.ts b/src/app/services/api/model/patch-user-password-dto.ts index f15f874..c0087ea 100644 --- a/src/app/services/api/model/patch-user-password-dto.ts +++ b/src/app/services/api/model/patch-user-password-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface PatchUserPasswordDto { +export interface PatchUserPasswordDto { password: string; } diff --git a/src/app/services/api/model/refresh-token-dto.ts b/src/app/services/api/model/refresh-token-dto.ts index 3c53563..efec088 100644 --- a/src/app/services/api/model/refresh-token-dto.ts +++ b/src/app/services/api/model/refresh-token-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface RefreshTokenDto { +export interface RefreshTokenDto { token: string; } diff --git a/src/app/services/api/model/update-user-dto.ts b/src/app/services/api/model/update-user-dto.ts index 655d66f..b0214dd 100644 --- a/src/app/services/api/model/update-user-dto.ts +++ b/src/app/services/api/model/update-user-dto.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UpdateUserDto { +export interface UpdateUserDto { firstName: string; name: string; username: string; diff --git a/src/app/services/api/model/user-proof-request.ts b/src/app/services/api/model/user-proof-request.ts index 895b96a..5e81efd 100644 --- a/src/app/services/api/model/user-proof-request.ts +++ b/src/app/services/api/model/user-proof-request.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UserProofRequest { +export interface UserProofRequest { proof?: Blob | null; } diff --git a/src/app/services/api/model/user-vote-request.ts b/src/app/services/api/model/user-vote-request.ts index 6451aa5..cb671df 100644 --- a/src/app/services/api/model/user-vote-request.ts +++ b/src/app/services/api/model/user-vote-request.ts @@ -1,7 +1,7 @@ /** * BeReadyBackend * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -9,7 +9,7 @@ */ -export interface UserVoteRequest { +export interface UserVoteRequest { votedProofId?: number; } diff --git a/src/app/services/api/param.ts b/src/app/services/api/param.ts index 78a2d20..7f0592c 100644 --- a/src/app/services/api/param.ts +++ b/src/app/services/api/param.ts @@ -2,14 +2,14 @@ * Standard parameter styles defined by OpenAPI spec */ export type StandardParamStyle = - | 'matrix' - | 'label' - | 'form' - | 'simple' - | 'spaceDelimited' - | 'pipeDelimited' - | 'deepObject' - ; + | 'matrix' + | 'label' + | 'form' + | 'simple' + | 'spaceDelimited' + | 'pipeDelimited' + | 'deepObject' + ; /** * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user. @@ -25,13 +25,13 @@ export type ParamLocation = 'query' | 'header' | 'path' | 'cookie'; * Standard types as defined in OpenAPI Specification: Data Types */ export type StandardDataType = - | "integer" - | "number" - | "boolean" - | "string" - | "object" - | "array" - ; + | "integer" + | "number" + | "boolean" + | "string" + | "object" + | "array" + ; /** * Standard {@link DataType}s plus your own types/classes. @@ -42,16 +42,16 @@ export type DataType = StandardDataType | string; * Standard formats as defined in OpenAPI Specification: Data Types */ export type StandardDataFormat = - | "int32" - | "int64" - | "float" - | "double" - | "byte" - | "binary" - | "date" - | "date-time" - | "password" - ; + | "int32" + | "int64" + | "float" + | "double" + | "byte" + | "binary" + | "date" + | "date-time" + | "password" + ; export type DataFormat = StandardDataFormat | string; @@ -59,11 +59,11 @@ export type DataFormat = StandardDataFormat | string; * The parameter to encode. */ export interface Param { - name: string; - value: unknown; - in: ParamLocation; - style: ParamStyle, - explode: boolean; - dataType: DataType; - dataFormat: DataFormat | undefined; + name: string; + value: unknown; + in: ParamLocation; + style: ParamStyle, + explode: boolean; + dataType: DataType; + dataFormat: DataFormat | undefined; } diff --git a/src/app/services/api/provide-api.ts b/src/app/services/api/provide-api.ts index 19c762a..b63aa71 100644 --- a/src/app/services/api/provide-api.ts +++ b/src/app/services/api/provide-api.ts @@ -1,15 +1,15 @@ -import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core"; -import { Configuration, ConfigurationParameters } from './configuration'; -import { BASE_PATH } from './variables'; +import {EnvironmentProviders, makeEnvironmentProviders} from "@angular/core"; +import {Configuration, ConfigurationParameters} from './configuration'; +import {BASE_PATH} from './variables'; // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig). export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders { return makeEnvironmentProviders([ typeof configOrBasePath === "string" - ? { provide: BASE_PATH, useValue: configOrBasePath } + ? {provide: BASE_PATH, useValue: configOrBasePath} : { provide: Configuration, - useValue: new Configuration({ ...configOrBasePath }), + useValue: new Configuration({...configOrBasePath}), }, ]); } \ No newline at end of file diff --git a/src/app/services/api/query.params.ts b/src/app/services/api/query.params.ts index 4076c11..9ee66e3 100644 --- a/src/app/services/api/query.params.ts +++ b/src/app/services/api/query.params.ts @@ -1,5 +1,5 @@ -import { HttpParams, HttpParameterCodec } from '@angular/common/http'; -import { CustomHttpParameterCodec, IdentityHttpParameterCodec } from './encoder'; +import {HttpParams, HttpParameterCodec} from '@angular/common/http'; +import {CustomHttpParameterCodec, IdentityHttpParameterCodec} from './encoder'; export enum QueryParamStyle { Json, @@ -153,7 +153,7 @@ export function concatHttpParamsObject(httpParams: OpenApiHttpParams, key: strin function convertToString(value: any): string { if (value instanceof Date) { - return value.toISOString(); + return value.toISOString(); } else { return value.toString(); } diff --git a/src/app/services/api/variables.ts b/src/app/services/api/variables.ts index 6fe5854..ac9262f 100644 --- a/src/app/services/api/variables.ts +++ b/src/app/services/api/variables.ts @@ -1,4 +1,4 @@ -import { InjectionToken } from '@angular/core'; +import {InjectionToken} from '@angular/core'; export const BASE_PATH = new InjectionToken('basePath'); export const COLLECTION_FORMATS = {