From ef2afb0b58ba923d0e5bd09f47a7ea60edbae4d7 Mon Sep 17 00:00:00 2001
From: sanchezvem
Date: Tue, 24 Mar 2026 19:08:34 +0100
Subject: [PATCH] added interceptor and authService to manage log
---
src/app/app.config.ts | 21 +-
src/app/app.routes.ts | 2 +-
src/app/app.ts | 8 +-
.../sign-in-form/sign-in-form.component.scss | 2 +-
.../sign-in-form/sign-in-form.component.ts | 3 +-
.../sign-on-form/sign-on-form.component.scss | 2 +-
.../sign-on-form/sign-on-form.component.ts | 30 +-
src/app/interceptors/auth-interceptor.ts | 46 ++
src/app/pages/login/login.component.html | 4 +-
src/app/pages/login/login.component.ts | 18 +-
src/app/services/api/.openapi-generator/FILES | 1 +
src/app/services/api/README.md | 20 +-
src/app/services/api/api.base.service.ts | 12 +-
src/app/services/api/api.module.ts | 22 +-
.../services/api/api/achievements.service.ts | 163 +++--
src/app/services/api/api/api.ts | 27 +-
src/app/services/api/api/auth.service.ts | 104 ++-
.../services/api/api/designations.service.ts | 58 +-
src/app/services/api/api/friends.service.ts | 270 +++++--
src/app/services/api/api/groups.service.ts | 669 +++++++++++++-----
src/app/services/api/api/messages.service.ts | 174 +++--
.../api/api/overallranking.service.ts | 58 +-
.../api/api/randomchallenges.service.ts | 152 ++--
src/app/services/api/api/users.service.ts | 371 +++++++---
src/app/services/api/configuration.ts | 28 +-
src/app/services/api/encoder.ts | 8 +-
.../api/model/accept-friend-request.ts | 4 +-
.../services/api/model/create-group-dto.ts | 15 +-
.../services/api/model/create-message-dto.ts | 8 +-
src/app/services/api/model/create-user-dto.ts | 14 +-
.../api/model/create-user-group-dto.ts | 4 +-
.../api/model/delete-friend-request.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 | 8 +-
src/app/services/api/model/get-user-dto.ts | 8 +-
.../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 | 8 +-
src/app/services/api/model/models.ts | 1 +
.../api/model/patch-user-designation-dto.ts | 6 +-
.../api/model/patch-user-password-dto.ts | 6 +-
.../model/random-challenge-proof-request.ts | 4 +-
.../services/api/model/refresh-token-dto.ts | 6 +-
.../api/model/reject-friend-request.ts | 4 +-
src/app/services/api/model/update-user-dto.ts | 12 +-
.../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 +-
src/app/services/auth-manage.ts | 33 +
src/index.html | 12 +-
src/main.ts | 8 +-
66 files changed, 1815 insertions(+), 777 deletions(-)
create mode 100644 src/app/interceptors/auth-interceptor.ts
create mode 100644 src/app/services/auth-manage.ts
diff --git a/src/app/app.config.ts b/src/app/app.config.ts
index 868b4b8..ee18c4c 100644
--- a/src/app/app.config.ts
+++ b/src/app/app.config.ts
@@ -1,13 +1,16 @@
-import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
-import { provideRouter } from '@angular/router';
+import {ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection} from '@angular/core';
+import {provideRouter} from '@angular/router';
-import { routes } from './app.routes';
-import { provideIonicAngular } from '@ionic/angular/standalone';
+import {routes} from './app.routes';
+import {provideIonicAngular} from '@ionic/angular/standalone';
+import {provideHttpClient, withInterceptors} from "@angular/common/http";
+import {authInterceptor} from "./interceptors/auth-interceptor";
export const appConfig: ApplicationConfig = {
- providers: [
- provideBrowserGlobalErrorListeners(),
- provideZoneChangeDetection({ eventCoalescing: true }),
- provideRouter(routes), provideIonicAngular({})
- ]
+ providers: [
+ provideBrowserGlobalErrorListeners(),
+ provideZoneChangeDetection({eventCoalescing: true}),
+ provideRouter(routes), provideIonicAngular({}),
+ provideHttpClient(withInterceptors([authInterceptor]))
+ ]
};
diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts
index dc39edb..8b5e5fb 100644
--- a/src/app/app.routes.ts
+++ b/src/app/app.routes.ts
@@ -1,3 +1,3 @@
-import { Routes } from '@angular/router';
+import {Routes} from '@angular/router';
export const routes: Routes = [];
diff --git a/src/app/app.ts b/src/app/app.ts
index 48442c4..66480e9 100644
--- a/src/app/app.ts
+++ b/src/app/app.ts
@@ -1,12 +1,12 @@
-import { Component } from '@angular/core';
+import {Component} from '@angular/core';
import {IonicModule} from "@ionic/angular";
import {LoginComponent} from "./pages/login/login.component";
@Component({
- selector: 'app-root',
+ selector: 'app-root',
imports: [IonicModule, LoginComponent],
- templateUrl: './app.html',
- styleUrl: './app.css'
+ templateUrl: './app.html',
+ styleUrl: './app.css'
})
export class App {
}
diff --git a/src/app/components/sign-in-form/sign-in-form.component.scss b/src/app/components/sign-in-form/sign-in-form.component.scss
index f906115..235751f 100644
--- a/src/app/components/sign-in-form/sign-in-form.component.scss
+++ b/src/app/components/sign-in-form/sign-in-form.component.scss
@@ -12,7 +12,7 @@ ion-label {
}
/* Input */
-ion-input{
+ion-input {
--padding-start: 10px;
--padding-end: 10px;
--padding-top: 0;
diff --git a/src/app/components/sign-in-form/sign-in-form.component.ts b/src/app/components/sign-in-form/sign-in-form.component.ts
index 1ead61e..c18b75f 100644
--- a/src/app/components/sign-in-form/sign-in-form.component.ts
+++ b/src/app/components/sign-in-form/sign-in-form.component.ts
@@ -1,4 +1,4 @@
-import { Component } from '@angular/core';
+import {Component, output} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
import {IonicModule} from "@ionic/angular";
@@ -12,7 +12,6 @@ import {IonicModule} from "@ionic/angular";
]
})
export class SignInFormComponent {
-
loginForm: FormGroup = new FormGroup({
username: new FormControl(null, [Validators.required]),
password: new FormControl(null, [Validators.required])
diff --git a/src/app/components/sign-on-form/sign-on-form.component.scss b/src/app/components/sign-on-form/sign-on-form.component.scss
index f906115..235751f 100644
--- a/src/app/components/sign-on-form/sign-on-form.component.scss
+++ b/src/app/components/sign-on-form/sign-on-form.component.scss
@@ -12,7 +12,7 @@ ion-label {
}
/* Input */
-ion-input{
+ion-input {
--padding-start: 10px;
--padding-end: 10px;
--padding-top: 0;
diff --git a/src/app/components/sign-on-form/sign-on-form.component.ts b/src/app/components/sign-on-form/sign-on-form.component.ts
index 26abc8b..29fd0e8 100644
--- a/src/app/components/sign-on-form/sign-on-form.component.ts
+++ b/src/app/components/sign-on-form/sign-on-form.component.ts
@@ -1,22 +1,22 @@
-import { Component } from '@angular/core';
+import {Component} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
import {IonicModule} from "@ionic/angular";
@Component({
- selector: 'app-sign-on-form',
- templateUrl: './sign-on-form.component.html',
- styleUrls: ['./sign-on-form.component.scss'],
- imports: [
- IonicModule,
- ReactiveFormsModule
- ]
+ selector: 'app-sign-on-form',
+ templateUrl: './sign-on-form.component.html',
+ styleUrls: ['./sign-on-form.component.scss'],
+ imports: [
+ IonicModule,
+ ReactiveFormsModule
+ ]
})
export class SignOnFormComponent {
- userForm: FormGroup = new FormGroup({
- firstName: new FormControl(null, [Validators.required]),
- name: new FormControl(null, [Validators.required]),
- username: new FormControl(null, [Validators.required]),
- email: new FormControl(null, [Validators.required]),
- password: new FormControl(null, [Validators.required]),
- })
+ userForm: FormGroup = new FormGroup({
+ firstName: new FormControl(null, [Validators.required]),
+ name: new FormControl(null, [Validators.required]),
+ username: new FormControl(null, [Validators.required]),
+ email: new FormControl(null, [Validators.required]),
+ password: new FormControl(null, [Validators.required]),
+ })
}
diff --git a/src/app/interceptors/auth-interceptor.ts b/src/app/interceptors/auth-interceptor.ts
new file mode 100644
index 0000000..4524f12
--- /dev/null
+++ b/src/app/interceptors/auth-interceptor.ts
@@ -0,0 +1,46 @@
+import {HttpInterceptorFn, HttpErrorResponse, HttpRequest, HttpHandlerFn} from '@angular/common/http';
+import {inject} from '@angular/core';
+import {catchError, switchMap, throwError} from 'rxjs';
+import {AuthManageService} from "../services/auth-manage";
+import {AuthService} from "../services/api";
+
+export const authInterceptor: HttpInterceptorFn = (req: HttpRequest, next: HttpHandlerFn) => {
+ const authManageService = inject(AuthManageService);
+ const authService = inject(AuthService);
+ const token = authManageService.getToken();
+
+ let authReq = req;
+ if (token) {
+ authReq = req.clone({
+ setHeaders: {Authorization: `Bearer ${token}`}
+ });
+ }
+
+ return next(authReq).pipe(
+ catchError((error: HttpErrorResponse) => {
+ if (error.status === 401 && token) {
+ return authService.refreshTokenEndpoint({token})
+ .pipe(
+ switchMap((res: any) => {
+ authManageService.setToken(res.token);
+ const newReq = req.clone({
+ setHeaders: {Authorization: `Bearer ${res.token}`}
+ });
+ return next(newReq);
+ }),
+ catchError((refreshErr) => {
+ authManageService.logout();
+ console.log('Session expirée', 'Veuillez vous reconnecter.');
+ return throwError(() => refreshErr);
+ })
+ );
+ }
+
+ if (error.status === 403) {
+ console.log('Accès refusé', 'Vous n’avez pas les droits pour cette action.');
+ }
+
+ return throwError(() => error);
+ })
+ );
+};
\ No newline at end of file
diff --git a/src/app/pages/login/login.component.html b/src/app/pages/login/login.component.html
index 368c083..f7e59f1 100644
--- a/src/app/pages/login/login.component.html
+++ b/src/app/pages/login/login.component.html
@@ -7,9 +7,9 @@
@if (authState()) {
-
+
-
+
Se connecter
diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts
index 37c4f6d..dab831d 100644
--- a/src/app/pages/login/login.component.ts
+++ b/src/app/pages/login/login.component.ts
@@ -1,7 +1,9 @@
-import {Component, signal} from '@angular/core';
+import {Component, inject, signal, viewChild} from '@angular/core';
import {IonicModule} from "@ionic/angular";
import {SignInFormComponent} from "../../components/sign-in-form/sign-in-form.component";
import {SignOnFormComponent} from "../../components/sign-on-form/sign-on-form.component";
+import {firstValueFrom} from "rxjs";
+import {AuthManageService} from "../../services/auth-manage";
@Component({
selector: 'app-login',
@@ -15,13 +17,21 @@ import {SignOnFormComponent} from "../../components/sign-on-form/sign-on-form.co
})
export class LoginComponent {
authState = signal(true)
+ login = viewChild('loginForm');
- createAccount(): void {
+ private authManageService = inject(AuthManageService);
+
+ createAccount() {
if (this.authState()) {
this.authState.set(false);
- }else
- if (this.authState() == false) {
+ } else if (this.authState() == false) {
this.authState.set(true);
}
}
+
+ connectUser() {
+ const user = this.login().loginForm.getRawValue();
+ console.log(user);
+ this.authManageService.connectUser(user.username, user.password);
+ }
}
diff --git a/src/app/services/api/.openapi-generator/FILES b/src/app/services/api/.openapi-generator/FILES
index 25dfa75..a7fd498 100644
--- a/src/app/services/api/.openapi-generator/FILES
+++ b/src/app/services/api/.openapi-generator/FILES
@@ -23,6 +23,7 @@ model/create-message-dto.ts
model/create-user-dto.ts
model/create-user-group-dto.ts
model/delete-friend-request.ts
+model/error-response.ts
model/get-achievement-dto.ts
model/get-designation-dto.ts
model/get-friend-dto.ts
diff --git a/src/app/services/api/README.md b/src/app/services/api/README.md
index c2ba935..44c14b0 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 '';
```
@@ -115,9 +117,9 @@ export const appConfig: ApplicationConfig = {
```typescript
// with factory building a custom configuration
-import { ApplicationConfig } from '@angular/core';
-import { provideHttpClient } from '@angular/common/http';
-import { provideApi, Configuration } from '';
+import {ApplicationConfig} from '@angular/core';
+import {provideHttpClient} from '@angular/common/http';
+import {provideApi, Configuration} from '';
export const appConfig: ApplicationConfig = {
providers: [
@@ -126,10 +128,10 @@ export const appConfig: ApplicationConfig = {
{
provide: Configuration,
useFactory: (authService: AuthService) => new Configuration({
- basePath: 'http://localhost:9999',
- withCredentials: true,
- username: authService.getUsername(),
- password: authService.getPassword(),
+ basePath: 'http://localhost:9999',
+ withCredentials: true,
+ username: authService.getUsername(),
+ password: authService.getPassword(),
}),
deps: [AuthService],
multi: false
@@ -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 a46166f..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,29 +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 { GetAchievementDto } from '../model/get-achievement-dto';
+import {ErrorResponse} from '../model/error-response';
+// @ts-ignore
+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);
}
@@ -41,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;
@@ -75,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
}
);
@@ -95,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;
@@ -129,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
}
);
@@ -149,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;
@@ -183,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
}
);
@@ -199,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?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
- public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, 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.');
}
@@ -218,6 +284,7 @@ export class AchievementsService extends BaseService {
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ 'application/problem+json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
@@ -239,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 25fe56f..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,47 +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 { GetTokenDto } from '../model/get-token-dto';
+import {ErrorResponse} from '../model/error-response';
// @ts-ignore
-import { LoginDto } from '../model/login-dto';
+import {GetTokenDto} from '../model/get-token-dto';
// @ts-ignore
-import { RefreshTokenDto } from '../model/refresh-token-dto';
+import {LoginDto} from '../model/login-dto';
+// @ts-ignore
+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', context?: HttpContext, transferCache?: boolean}): Observable;
- public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/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.');
}
@@ -57,7 +75,8 @@ export class AuthService extends BaseService {
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
- 'application/json'
+ 'application/json',
+ 'application/problem+json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
@@ -89,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
}
);
@@ -106,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', context?: HttpContext, transferCache?: boolean}): Observable;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/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.');
}
@@ -122,7 +157,8 @@ export class AuthService extends BaseService {
let localVarHeaders = this.defaultHeaders;
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
- 'application/json'
+ 'application/json',
+ 'application/problem+json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
@@ -154,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 ef85979..0d21ebd 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,52 +9,68 @@
*/
/* 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 { AcceptFriendRequest } from '../model/accept-friend-request';
+import {AcceptFriendRequest} from '../model/accept-friend-request';
// @ts-ignore
-import { DeleteFriendRequest } from '../model/delete-friend-request';
+import {DeleteFriendRequest} from '../model/delete-friend-request';
// @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 { RejectFriendRequest } from '../model/reject-friend-request';
+import {RejectFriendRequest} from '../model/reject-friend-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 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 acceptFriendRequest
+ * @param friendId
+ * @param acceptFriendRequest
* @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: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
- public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
+ public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable;
+ public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable>;
+ public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable>;
+ public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, 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.');
}
@@ -67,8 +83,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);
}
@@ -98,17 +113,25 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/Request`;
- const { basePath, withCredentials } = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({
+ name: "friendId",
+ value: friendId,
+ in: "path",
+ style: "simple",
+ explode: false,
+ dataType: "string",
+ dataFormat: undefined
+ })}/Request`;
+ const {basePath, withCredentials} = this.configuration;
return this.httpClient.request('put', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: acceptFriendRequest,
responseType: responseType_,
- ...(withCredentials ? { withCredentials } : {}),
+ ...(withCredentials ? {withCredentials} : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
+ ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
reportProgress: reportProgress
}
);
@@ -116,15 +139,31 @@ export class FriendsService extends BaseService {
/**
* @endpoint delete /API/Friends
- * @param deleteFriendRequest
+ * @param deleteFriendRequest
* @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(deleteFriendRequest: DeleteFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
- public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
+ public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable;
+ public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable>;
+ public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable>;
+ public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable {
if (deleteFriendRequest === null || deleteFriendRequest === undefined) {
throw new Error('Required parameter deleteFriendRequest was null or undefined when calling deleteFriendEndpoint.');
}
@@ -134,8 +173,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);
}
@@ -166,16 +204,16 @@ export class FriendsService extends BaseService {
}
let localVarPath = `/API/Friends`;
- const { basePath, withCredentials } = this.configuration;
+ const {basePath, withCredentials} = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: deleteFriendRequest,
responseType: responseType_,
- ...(withCredentials ? { withCredentials } : {}),
+ ...(withCredentials ? {withCredentials} : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
+ ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
reportProgress: reportProgress
}
);
@@ -187,10 +225,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;
@@ -221,15 +275,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
}
);
@@ -241,10 +295,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;
@@ -275,15 +345,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
}
);
@@ -291,16 +361,32 @@ export class FriendsService extends BaseService {
/**
* @endpoint delete /API/Friends/{@FriendId}/Request
- * @param friendId
- * @param rejectFriendRequest
+ * @param friendId
+ * @param rejectFriendRequest
* @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: string, rejectFriendRequest: RejectFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
- public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
+ public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable;
+ public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable>;
+ public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
+ httpHeaderAccept?: undefined,
+ context?: HttpContext,
+ transferCache?: boolean
+ }): Observable>;
+ public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, 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.');
}
@@ -313,8 +399,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);
}
@@ -344,17 +429,25 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/Request`;
- const { basePath, withCredentials } = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({
+ name: "friendId",
+ value: friendId,
+ in: "path",
+ style: "simple",
+ explode: false,
+ dataType: "string",
+ dataFormat: undefined
+ })}/Request`;
+ const {basePath, withCredentials} = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: rejectFriendRequest,
responseType: responseType_,
- ...(withCredentials ? { withCredentials } : {}),
+ ...(withCredentials ? {withCredentials} : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
+ ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
reportProgress: reportProgress
}
);
@@ -362,15 +455,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.');
}
@@ -380,8 +489,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);
}
@@ -402,16 +510,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 74eaaf2..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,58 +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 { GetGroupDetailsDto } from '../model/get-group-details-dto';
+import {ErrorResponse} from '../model/error-response';
// @ts-ignore
-import { GetGroupDto } from '../model/get-group-dto';
+import {GetGroupDetailsDto} from '../model/get-group-details-dto';
// @ts-ignore
-import { GetGroupRankingDto } from '../model/get-group-ranking-dto';
+import {GetGroupDto} from '../model/get-group-dto';
// @ts-ignore
-import { GetProofDto } from '../model/get-proof-dto';
+import {GetGroupRankingDto} from '../model/get-group-ranking-dto';
// @ts-ignore
-import { GetUserGroupDto } from '../model/get-user-group-dto';
+import {GetProofDto} from '../model/get-proof-dto';
// @ts-ignore
-import { UserProofRequest } from '../model/user-proof-request';
+import {GetUserGroupDto} from '../model/get-user-group-dto';
// @ts-ignore
-import { UserVoteRequest } from '../model/user-vote-request';
+import {UserProofRequest} from '../model/user-proof-request';
+// @ts-ignore
+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.');
}
@@ -73,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);
}
@@ -95,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
}
);
@@ -112,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?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, 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.');
}
@@ -131,6 +180,7 @@ export class GroupsService extends BaseService {
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ 'application/problem+json'
]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
@@ -162,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
}
);
@@ -179,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.');
}
@@ -197,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);
}
@@ -219,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
}
);
@@ -236,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.');
}
@@ -258,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);
}
@@ -280,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
}
);
@@ -297,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.');
}
@@ -338,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
}
);
@@ -359,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;
@@ -393,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
}
);
@@ -409,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.');
}
@@ -450,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
}
);
@@ -467,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.');
}
@@ -508,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
}
);
@@ -525,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.');
}
@@ -566,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
}
);
@@ -583,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.');
}
@@ -601,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);
}
@@ -623,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
}
);
@@ -640,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.');
}
@@ -662,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);
}
@@ -693,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
}
);
@@ -711,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.');
}
@@ -733,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);
}
@@ -755,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: