+ class="mt-4 mb-4 pl-4 border border-gray-400 rounded-r-xl border-l-{{color()}}-700 border-l-4 bg-[#f7f6f2]">
{{ title() }}
— {{ content() }}
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index c7f046f..14b45c5 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -17,16 +17,16 @@
diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts
index c0c4c83..d482fe2 100644
--- a/src/app/pages/home/home.component.ts
+++ b/src/app/pages/home/home.component.ts
@@ -1,9 +1,12 @@
-import {Component} from '@angular/core';
-import {IonicModule} from "@ionic/angular";
-import {addIcons} from "ionicons";
-import {walkOutline, addOutline} from "ionicons/icons";
-import {TitlePartComponent} from "../../components/title-part/title-part.component";
-import {ChallengeCardComponent} from "../../components/challenge-card/challenge-card.component";
+import {Component, inject, OnInit, signal} from '@angular/core';
+import {IonicModule, ToastController} from "@ionic/angular";
+import { addIcons } from "ionicons";
+import { walkOutline, addOutline } from "ionicons/icons";
+import { TitlePartComponent } from "../../components/title-part/title-part.component";
+import { ChallengeCardComponent } from "../../components/challenge-card/challenge-card.component";
+import * as signalR from '@microsoft/signalr';
+import {GetRandomChallengeDto, RandomchallengesService} from "../../services/api";
+import {firstValueFrom} from "rxjs";
addIcons({
'profile': walkOutline,
@@ -20,5 +23,46 @@ addIcons({
ChallengeCardComponent
]
})
-export class HomeComponent {
-}
+export class HomeComponent implements OnInit {
+
+ // private connection: signalR.HubConnection;
+ //
+ // ngOnInit(): void {
+ // this.connection = new signalR.HubConnectionBuilder()
+ // .withUrl('http://localhost:5235/timeHub', {
+ // withCredentials: true
+ // })
+ // .build();
+ //
+ // this.connection.on('ReceiveTime', (time) => {
+ // console.log('Server time:', time);
+ // });
+ //
+ // this.connection.start()
+ // .then(() => {
+ // console.log('Connected to SignalR');
+ // this.connection.invoke('SendTime');
+ // })
+ // .catch(err => console.error('Connection error:', err));
+ // }
+
+ private randomChallengeService = inject(RandomchallengesService)
+ private toastCtrl = inject(ToastController);
+
+ randomChallenge = signal({});
+
+ async ngOnInit() {
+ try {
+ const randomChallenge = await firstValueFrom(this.randomChallengeService.generateRandomChallengeEndpoint());
+ this.randomChallenge.set(randomChallenge);
+ }
+ catch {
+ const toast = await this.toastCtrl.create({
+ message: 'Impossible de générer un défi aléatoire',
+ duration: 2000,
+ color: 'danger'
+ });
+ await toast.present();
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/app/services/api/README.md b/src/app/services/api/README.md
index 29f22fe..c2ba935 100644
--- a/src/app/services/api/README.md
+++ b/src/app/services/api/README.md
@@ -73,9 +73,7 @@ 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 '';
```
@@ -183,7 +181,5 @@ 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 b90fbe9..ca18710 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 68ca8d7..58d341f 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 5f56895..7b77108 100644
--- a/src/app/services/api/api/achievements.service.ts
+++ b/src/app/services/api/api/achievements.service.ts
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
- *
+ *
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,31 +9,31 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {ErrorResponse} from '../model/error-response';
+import { ErrorResponse } from '../model/error-response';
// @ts-ignore
-import {GetAchievementDto} from '../model/get-achievement-dto';
+import { GetAchievementDto } from '../model/get-achievement-dto';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class AchievementsService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
@@ -43,26 +43,10 @@ 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;
@@ -93,15 +77,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
}
);
@@ -113,26 +97,10 @@ 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;
@@ -163,15 +131,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
}
);
@@ -183,26 +151,10 @@ 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;
@@ -233,15 +185,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
}
);
@@ -249,31 +201,15 @@ export class AchievementsService extends BaseService {
/**
* @endpoint post /API/Achievements/{achievementId}/Users
- * @param achievementId
+ * @param achievementId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable {
if (achievementId === null || achievementId === undefined) {
throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.');
}
@@ -306,24 +242,16 @@ 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 3f2adfb..43f3297 100644
--- a/src/app/services/api/api/api.ts
+++ b/src/app/services/api/api/api.ts
@@ -1,28 +1,19 @@
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 507c8aa..1a1435c 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,65 +9,49 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {ErrorResponse} from '../model/error-response';
+import { ErrorResponse } from '../model/error-response';
// @ts-ignore
-import {GetTokenDto} from '../model/get-token-dto';
+import { GetTokenDto } from '../model/get-token-dto';
// @ts-ignore
-import {LoginDto} from '../model/login-dto';
+import { LoginDto } from '../model/login-dto';
// @ts-ignore
-import {RefreshTokenDto} from '../model/refresh-token-dto';
+import { RefreshTokenDto } from '../model/refresh-token-dto';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class AuthService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* @endpoint post /API/Auth/Login
- * @param loginDto
+ * @param loginDto
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable {
if (loginDto === null || loginDto === undefined) {
throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.');
}
@@ -108,16 +92,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
}
);
@@ -125,31 +109,15 @@ export class AuthService extends BaseService {
/**
* @endpoint post /API/Auth/RefreshToken
- * @param refreshTokenDto
+ * @param refreshTokenDto
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable {
if (refreshTokenDto === null || refreshTokenDto === undefined) {
throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.');
}
@@ -190,16 +158,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 26f8137..ac5e332 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,26 +41,10 @@ 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;
@@ -91,15 +75,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 15ed277..fe0c0f8 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,61 +9,45 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {GetFriendDto} from '../model/get-friend-dto';
+import { GetFriendDto } from '../model/get-friend-dto';
// @ts-ignore
-import {GetFriendRequestDto} from '../model/get-friend-request-dto';
+import { GetFriendRequestDto } from '../model/get-friend-request-dto';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class FriendsService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* @endpoint put /API/Friends/{friendId}/Request
- * @param friendId
+ * @param friendId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.');
}
@@ -73,7 +57,8 @@ 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);
}
@@ -94,24 +79,16 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends/${this.configuration.encodeParam({
- name: "friendId",
- value: friendId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Request`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('put', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -119,31 +96,15 @@ export class FriendsService extends BaseService {
/**
* @endpoint delete /API/Friends/{friendId}
- * @param friendId
+ * @param friendId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling deleteFriendEndpoint.');
}
@@ -153,7 +114,8 @@ 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);
}
@@ -174,24 +136,16 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends/${this.configuration.encodeParam({
- name: "friendId",
- value: friendId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -203,26 +157,10 @@ 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;
@@ -253,15 +191,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
}
);
@@ -273,26 +211,10 @@ 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;
@@ -323,15 +245,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
}
);
@@ -339,31 +261,15 @@ export class FriendsService extends BaseService {
/**
* @endpoint delete /API/Friends/{friendId}/Request
- * @param friendId
+ * @param friendId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.');
}
@@ -373,7 +279,8 @@ 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);
}
@@ -394,24 +301,16 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends/${this.configuration.encodeParam({
- name: "friendId",
- value: friendId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Request`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -419,31 +318,15 @@ 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.');
}
@@ -453,7 +336,8 @@ 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);
}
@@ -474,24 +358,16 @@ 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 3a28fe9..34479a4 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,76 +9,60 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {CreateGroupDto} from '../model/create-group-dto';
+import { CreateGroupDto } from '../model/create-group-dto';
// @ts-ignore
-import {ErrorResponse} from '../model/error-response';
+import { ErrorResponse } from '../model/error-response';
// @ts-ignore
-import {GetGroupDetailsDto} from '../model/get-group-details-dto';
+import { GetGroupDetailsDto } from '../model/get-group-details-dto';
// @ts-ignore
-import {GetGroupDto} from '../model/get-group-dto';
+import { GetGroupDto } from '../model/get-group-dto';
// @ts-ignore
-import {GetGroupRankingDto} from '../model/get-group-ranking-dto';
+import { GetGroupRankingDto } from '../model/get-group-ranking-dto';
// @ts-ignore
-import {GetProofDto} from '../model/get-proof-dto';
+import { GetProofDto } from '../model/get-proof-dto';
// @ts-ignore
-import {GetUserGroupDto} from '../model/get-user-group-dto';
+import { GetUserGroupDto } from '../model/get-user-group-dto';
// @ts-ignore
-import {UserProofRequest} from '../model/user-proof-request';
+import { UserProofRequest } from '../model/user-proof-request';
// @ts-ignore
-import {UserVoteRequest} from '../model/user-vote-request';
+import { UserVoteRequest } from '../model/user-vote-request';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class GroupsService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* @endpoint post /API/Groups/{groupId}/Users/{userId}
- * @param groupId
- * @param userId
+ * @param groupId
+ * @param userId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling addUserToGroupEndpoint.');
}
@@ -91,7 +75,8 @@ 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);
}
@@ -112,32 +97,16 @@ 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
}
);
@@ -145,31 +114,15 @@ export class GroupsService extends BaseService {
/**
* @endpoint post /API/Groups
- * @param createGroupDto
+ * @param createGroupDto
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable {
if (createGroupDto === null || createGroupDto === undefined) {
throw new Error('Required parameter createGroupDto was null or undefined when calling createGroupEndpoint.');
}
@@ -212,16 +165,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
}
);
@@ -229,31 +182,15 @@ 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.');
}
@@ -263,7 +200,8 @@ 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);
}
@@ -284,24 +222,16 @@ 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
}
);
@@ -309,32 +239,16 @@ 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.');
}
@@ -347,7 +261,8 @@ 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);
}
@@ -368,32 +283,16 @@ 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
}
);
@@ -401,31 +300,15 @@ 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.');
}
@@ -458,24 +341,16 @@ 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
}
);
@@ -487,26 +362,10 @@ 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;
@@ -537,15 +396,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
}
);
@@ -553,31 +412,15 @@ 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.');
}
@@ -610,24 +453,16 @@ 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
}
);
@@ -635,31 +470,15 @@ 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.');
}
@@ -692,24 +511,16 @@ 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
}
);
@@ -717,31 +528,15 @@ 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.');
}
@@ -774,24 +569,16 @@ 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
}
);
@@ -799,31 +586,15 @@ 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.');
}
@@ -833,7 +604,8 @@ 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);
}
@@ -854,24 +626,16 @@ 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
}
);
@@ -879,32 +643,16 @@ 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.');
}
@@ -917,7 +665,8 @@ 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);
}
@@ -947,25 +696,17 @@ 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
}
);
@@ -973,32 +714,16 @@ 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