Fixed error with modal and datas

This commit is contained in:
2026-03-28 21:43:06 +01:00
parent 95d46d7811
commit 5441783eb2
54 changed files with 833 additions and 1657 deletions
@@ -1,5 +1,5 @@
@if (friends().length > 0) { @if (friends().length > 0) {
<div class="rounded-3xl px-5 m-3 bg-white overflow-auto font-mono border-1 border-gray-300"> <div class="rounded-3xl px-5 m-3 bg-white font-mono border-1 border-gray-300">
<ion-list> <ion-list>
@for (friend of friends(); track friend.friendId; let i = $index) { @for (friend of friends(); track friend.friendId; let i = $index) {
@if (i == friends().length - 1) { @if (i == friends().length - 1) {
@@ -8,7 +8,9 @@
<img alt="Silhouette of a person's head" <img alt="Silhouette of a person's head"
src="https://ionicframework.com/docs/img/demos/avatar.svg"/> src="https://ionicframework.com/docs/img/demos/avatar.svg"/>
</ion-avatar> </ion-avatar>
<ion-label class="text-xs font-mono font-bold">{{ friend.username }}</ion-label> <ion-label class="text-xs font-mono font-bold"
(touchstart)="setOpen(true, friend.friendId)">{{ friend.username }}
</ion-label>
<ion-label class="text-xs font-mono text-gray-400">{{ friend.score }} <em>pts</em></ion-label> <ion-label class="text-xs font-mono text-gray-400">{{ friend.score }} <em>pts</em></ion-label>
<ion-button fill="clear" (touchstart)="deleteFriend(friend.friendId)"> <ion-button fill="clear" (touchstart)="deleteFriend(friend.friendId)">
<ion-icon slot="icon-only" name="close" class="text-red-600"></ion-icon> <ion-icon slot="icon-only" name="close" class="text-red-600"></ion-icon>
@@ -20,7 +22,9 @@
<img alt="Silhouette of a person's head" <img alt="Silhouette of a person's head"
src="https://ionicframework.com/docs/img/demos/avatar.svg"/> src="https://ionicframework.com/docs/img/demos/avatar.svg"/>
</ion-avatar> </ion-avatar>
<ion-label class="text-xs font-mono font-bold">{{ friend.username }}</ion-label> <ion-label class="text-xs font-mono font-bold"
(touchstart)="setOpen(true, friend.friendId)">{{ friend.username }}
</ion-label>
<ion-label class="text-xs font-mono text-gray-400">{{ friend.score }} <em>pts</em></ion-label> <ion-label class="text-xs font-mono text-gray-400">{{ friend.score }} <em>pts</em></ion-label>
<ion-button fill="clear" (touchstart)="deleteFriend(friend.friendId)"> <ion-button fill="clear" (touchstart)="deleteFriend(friend.friendId)">
<ion-icon slot="icon-only" name="close" class="text-red-600"></ion-icon> <ion-icon slot="icon-only" name="close" class="text-red-600"></ion-icon>
@@ -37,3 +41,75 @@
</p> </p>
</div> </div>
} }
<ion-modal [isOpen]="isModalOpen">
<ng-template>
<ion-header>
<ion-toolbar>
<ion-title>Profil</ion-title>
<ion-buttons slot="start" style="--ion-color-primary: #0054E9;">
<ion-back-button default-href="" (touchstart)="setOpen(false, null)"></ion-back-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content class="ion-padding" style="--background: #f7f6f2;">
<div class="rounded-xl px-5 m-3 bg-white border border-gray-200 grid grid-cols-3 items-center">
<div>
<ion-avatar slot="start" class="w-20 h-20 p-2">
<img alt="Silhouette of a person's head"
src="https://ionicframework.com/docs/img/demos/avatar.svg"/>
</ion-avatar>
</div>
<div class="col-span-2 py-3">
<ion-label class="text-[15px] font-sans font-bold block">
{{ selectedFriend()?.firstName }} {{ selectedFriend()?.name.charAt(0) }}.
</ion-label>
<ion-label class="text-xs font-mono block text-gray-400 mt-0.5">
@{{ selectedFriend()?.username }}
</ion-label>
<ion-label
class="text-[10px] font-sans font-semibold block mt-2 bg-gray-100 text-gray-500 rounded-full px-2 py-0.5 w-fit">
@if (selectedFriend().designationName) {
⚡ {{ selectedFriend().designationName }}
} @else {
⚡ En sommeil
}
</ion-label>
</div>
</div>
<div class="grid grid-cols-3 px-1">
<div class="rounded-xl px-4 py-0.5 m-2 bg-white border border-gray-200">
<p class="text-2xl font-black font-mono mb-0.5">{{ selectedFriend().getUserStatsDto.totalChallenge }}</p>
<p class="text-[11px] font-semibold font-mono text-gray-400 mt-0">Défis réalisés</p>
</div>
<div class="rounded-xl px-4 py-0.5 m-2 bg-white border border-gray-200">
<p class="text-2xl font-black font-mono mb-0.5">{{ selectedFriend().getUserStatsDto.totalWin }}</p>
<p class="text-[11px] font-semibold font-mono text-gray-400 mt-0">Victoires</p>
</div>
<div class="rounded-xl px-4 py-0.5 m-2 bg-white border border-gray-200">
<p class="text-2xl font-black font-mono mb-0.5">{{ selectedFriend().getUserStatsDto.totalPodium }}</p>
<p class="text-[11px] font-semibold font-mono text-gray-400 mt-0">Podiums</p>
</div>
</div>
<div class="grid grid-cols-2 px-1">
<div class="rounded-xl px-4 py-0.5 m-2 bg-white border border-gray-200">
<p class="text-2xl font-black font-mono mb-0.5">{{ selectedFriend().getUserStatsDto.totalBonusChallenge }}</p>
<p class="text-[11px] font-semibold font-mono text-gray-400 mt-0">Défis bonus</p>
</div>
<div class="rounded-xl px-4 py-0.5 m-2 bg-white border border-gray-200">
<p class="text-2xl font-black font-mono mb-0.5">{{ selectedFriend().getUserStatsDto.series }}×</p>
<p class="text-[11px] font-semibold font-mono text-gray-400 mt-0">Séries max</p>
</div>
</div>
<div class="px-1">
<div class="rounded-xl px-4 py-0.5 m-2 bg-white border border-gray-200">
<p class="text-2xl font-black font-mono mb-0.5">{{ selectedFriend().getUserStatsDto.score }}</p>
<p class="text-[11px] font-semibold font-mono text-gray-400 mt-0">Score global</p>
</div>
</div>
</ion-content>
</ng-template>
</ion-modal>
@@ -1,8 +1,8 @@
import {Component, inject, OnInit} from '@angular/core'; import {Component, inject, OnInit, signal} from '@angular/core';
import {IonicModule, ToastController} from "@ionic/angular"; import {IonicModule, ToastController} from "@ionic/angular";
import {closeCircleOutline} from 'ionicons/icons'; import {closeCircleOutline} from 'ionicons/icons';
import {addIcons} from "ionicons"; import {addIcons} from "ionicons";
import {FriendsService} from "../../services/api"; import {FriendsService, GetUserDto, UsersService} from "../../services/api";
import {firstValueFrom} from "rxjs"; import {firstValueFrom} from "rxjs";
import {FriendsStateService} from "../../services/friends-state"; import {FriendsStateService} from "../../services/friends-state";
@@ -20,9 +20,14 @@ addIcons({
}) })
export class FriendsListComponent implements OnInit { export class FriendsListComponent implements OnInit {
private friendsService = inject(FriendsService); private friendsService = inject(FriendsService);
private usersService = inject(UsersService);
private toastCtrl = inject(ToastController); private toastCtrl = inject(ToastController);
private friendsState = inject(FriendsStateService); private friendsState = inject(FriendsStateService);
selectedFriend = signal<GetUserDto>(null);
isModalOpen = false;
friends = this.friendsState.friends; friends = this.friendsState.friends;
async ngOnInit() { async ngOnInit() {
@@ -62,6 +67,21 @@ export class FriendsListComponent implements OnInit {
} }
this.friendsState.removeFriend(friendId); this.friendsState.removeFriend(friendId);
} }
}
//TODO : QUAND ON CLIQUE SUR UN JOUEUR ON PEUT VOIR SA PAGE (VAUT AUSSI POUR CLASSEMENT async setOpen(isOpen: boolean, userId: number) {
if (isOpen) {
try {
const userInfo = await firstValueFrom(this.usersService.getUserEndpoint(userId));
this.selectedFriend.set(userInfo);
} catch (e) {
const toast = await this.toastCtrl.create({
message: 'Impossible de charger les données du joueur',
duration: 2000,
color: 'primary'
});
await toast.present();
}
}
this.isModalOpen = isOpen;
}
}
@@ -0,0 +1,13 @@
import {Component} from '@angular/core';
import {IonicModule} from "@ionic/angular";
@Component({
selector: 'app-generic-profile',
templateUrl: './generic-profile.component.html',
styleUrls: ['./generic-profile.component.scss'],
imports: [
IonicModule
]
})
export class GenericProfileComponent {
}
+18 -22
View File
@@ -59,9 +59,9 @@ In your Angular project:
```typescript ```typescript
import {ApplicationConfig} from '@angular/core'; import { ApplicationConfig } from '@angular/core';
import {provideHttpClient} from '@angular/common/http'; import { provideHttpClient } from '@angular/common/http';
import {provideApi} from ''; import { provideApi } from '';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
@@ -73,19 +73,17 @@ export const appConfig: ApplicationConfig = {
``` ```
**NOTE** **NOTE**
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
can still import an Angular module:
```typescript ```typescript
import {ApiModule} from ''; import { ApiModule } from '';
``` ```
If different from the generated base path, during app bootstrap, you can provide the base path to your service. If different from the generated base path, during app bootstrap, you can provide the base path to your service.
```typescript ```typescript
import {ApplicationConfig} from '@angular/core'; import { ApplicationConfig } from '@angular/core';
import {provideHttpClient} from '@angular/common/http'; import { provideHttpClient } from '@angular/common/http';
import {provideApi} from ''; import { provideApi } from '';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
@@ -98,9 +96,9 @@ export const appConfig: ApplicationConfig = {
```typescript ```typescript
// with a custom configuration // with a custom configuration
import {ApplicationConfig} from '@angular/core'; import { ApplicationConfig } from '@angular/core';
import {provideHttpClient} from '@angular/common/http'; import { provideHttpClient } from '@angular/common/http';
import {provideApi} from ''; import { provideApi } from '';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
@@ -117,9 +115,9 @@ export const appConfig: ApplicationConfig = {
```typescript ```typescript
// with factory building a custom configuration // with factory building a custom configuration
import {ApplicationConfig} from '@angular/core'; import { ApplicationConfig } from '@angular/core';
import {provideHttpClient} from '@angular/common/http'; import { provideHttpClient } from '@angular/common/http';
import {provideApi, Configuration} from ''; import { provideApi, Configuration } from '';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
@@ -147,10 +145,10 @@ you can create an alias name when importing the modules
in order to avoid naming conflicts: in order to avoid naming conflicts:
```typescript ```typescript
import {provideApi as provideUserApi} from 'my-user-api-path'; import { provideApi as provideUserApi } from 'my-user-api-path';
import {provideApi as provideAdminApi} from 'my-admin-api-path'; import { provideApi as provideAdminApi } from 'my-admin-api-path';
import {HttpClientModule} from '@angular/common/http'; import { HttpClientModule } from '@angular/common/http';
import {environment} from '../environments/environment'; import { environment } from '../environments/environment';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
@@ -183,7 +181,5 @@ new Configuration({
``` ```
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations [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 [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 [@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
+5 -5
View File
@@ -7,10 +7,10 @@
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http'; import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
import {CustomHttpParameterCodec} from './encoder'; import { CustomHttpParameterCodec } from './encoder';
import {Configuration} from './configuration'; import { Configuration } from './configuration';
import {OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params'; import { OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params';
export class BaseService { export class BaseService {
protected basePath = 'http://localhost:5235'; protected basePath = 'http://localhost:5235';
@@ -18,7 +18,7 @@ export class BaseService {
public configuration: Configuration; public configuration: Configuration;
public encoder: HttpParameterCodec; public encoder: HttpParameterCodec;
constructor(basePath?: string | string[], configuration?: Configuration) { constructor(basePath?: string|string[], configuration?: Configuration) {
this.configuration = configuration || new Configuration(); this.configuration = configuration || new Configuration();
if (typeof this.configuration.basePath !== 'string') { if (typeof this.configuration.basePath !== 'string') {
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined; const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
+5 -5
View File
@@ -1,6 +1,6 @@
import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core'; import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
import {Configuration} from './configuration'; import { Configuration } from './configuration';
import {HttpClient} from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
@NgModule({ @NgModule({
@@ -13,11 +13,11 @@ export class ApiModule {
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> { public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
return { return {
ngModule: ApiModule, ngModule: ApiModule,
providers: [{provide: Configuration, useFactory: configurationFactory}] providers: [ { provide: Configuration, useFactory: configurationFactory } ]
}; };
} }
constructor(@Optional() @SkipSelf() parentModule: ApiModule, constructor( @Optional() @SkipSelf() parentModule: ApiModule,
@Optional() http: HttpClient) { @Optional() http: HttpClient) {
if (parentModule) { if (parentModule) {
throw new Error('ApiModule is already loaded. Import in your base AppModule only.'); throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
+41 -113
View File
@@ -9,23 +9,23 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {ErrorResponse} from '../model/error-response'; import { ErrorResponse } from '../model/error-response';
// @ts-ignore // @ts-ignore
import {GetAchievementDto} from '../model/get-achievement-dto'; import { GetAchievementDto } from '../model/get-achievement-dto';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -33,7 +33,7 @@ import {BaseService} from '../api.base.service';
}) })
export class AchievementsService extends BaseService { 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); super(basePath, configuration);
} }
@@ -43,26 +43,10 @@ export class AchievementsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
httpHeaderAccept?: 'application/json', public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
context?: HttpContext, public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
transferCache?: boolean public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetAchievementDto>>;
public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -93,15 +77,15 @@ export class AchievementsService extends BaseService {
} }
let localVarPath = `/API/Achievements`; let localVarPath = `/API/Achievements`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -113,26 +97,10 @@ export class AchievementsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
httpHeaderAccept?: 'application/json', public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
context?: HttpContext, public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
transferCache?: boolean public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetAchievementDto>>;
public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -163,15 +131,15 @@ export class AchievementsService extends BaseService {
} }
let localVarPath = `/API/Achievements/Locked/Users`; let localVarPath = `/API/Achievements/Locked/Users`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -183,26 +151,10 @@ export class AchievementsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
httpHeaderAccept?: 'application/json', public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
context?: HttpContext, public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
transferCache?: boolean public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetAchievementDto>>;
public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -233,15 +185,15 @@ export class AchievementsService extends BaseService {
} }
let localVarPath = `/API/Achievements/Users`; let localVarPath = `/API/Achievements/Users`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -254,26 +206,10 @@ export class AchievementsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: { public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: 'application/problem+json', public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (achievementId === null || achievementId === undefined) { if (achievementId === null || achievementId === undefined) {
throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.'); 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({ let localVarPath = `/API/Achievements/${this.configuration.encodeParam({name: "achievementId", value: achievementId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
name: "achievementId", const { basePath, withCredentials } = this.configuration;
value: achievementId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Users`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
+9 -18
View File
@@ -1,28 +1,19 @@
export * from './achievements.service'; export * from './achievements.service';
import {AchievementsService} from './achievements.service'; import { AchievementsService } from './achievements.service';
export * from './auth.service'; export * from './auth.service';
import {AuthService} from './auth.service'; import { AuthService } from './auth.service';
export * from './designations.service'; export * from './designations.service';
import {DesignationsService} from './designations.service'; import { DesignationsService } from './designations.service';
export * from './friends.service'; export * from './friends.service';
import {FriendsService} from './friends.service'; import { FriendsService } from './friends.service';
export * from './groups.service'; export * from './groups.service';
import {GroupsService} from './groups.service'; import { GroupsService } from './groups.service';
export * from './messages.service'; export * from './messages.service';
import {MessagesService} from './messages.service'; import { MessagesService } from './messages.service';
export * from './overallranking.service'; export * from './overallranking.service';
import {OverallrankingService} from './overallranking.service'; import { OverallrankingService } from './overallranking.service';
export * from './randomchallenges.service'; export * from './randomchallenges.service';
import {RandomchallengesService} from './randomchallenges.service'; import { RandomchallengesService } from './randomchallenges.service';
export * from './users.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]; export const APIS = [AchievementsService, AuthService, DesignationsService, FriendsService, GroupsService, MessagesService, OverallrankingService, RandomchallengesService, UsersService];
+28 -60
View File
@@ -9,27 +9,27 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {ErrorResponse} from '../model/error-response'; import { ErrorResponse } from '../model/error-response';
// @ts-ignore // @ts-ignore
import {GetTokenDto} from '../model/get-token-dto'; import { GetTokenDto } from '../model/get-token-dto';
// @ts-ignore // @ts-ignore
import {LoginDto} from '../model/login-dto'; import { LoginDto } from '../model/login-dto';
// @ts-ignore // @ts-ignore
import {RefreshTokenDto} from '../model/refresh-token-dto'; import { RefreshTokenDto } from '../model/refresh-token-dto';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -37,7 +37,7 @@ import {BaseService} from '../api.base.service';
}) })
export class AuthService extends BaseService { 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); super(basePath, configuration);
} }
@@ -48,26 +48,10 @@ export class AuthService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: { public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<GetTokenDto>;
httpHeaderAccept?: 'application/json' | 'application/problem+json', public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTokenDto>>;
context?: HttpContext, public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTokenDto>>;
transferCache?: boolean public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<GetTokenDto>;
public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json' | 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<GetTokenDto>>;
public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json' | 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<GetTokenDto>>;
public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json' | 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (loginDto === null || loginDto === undefined) { if (loginDto === null || loginDto === undefined) {
throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.'); 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`; let localVarPath = `/API/Auth/Login`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`, return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: loginDto, body: loginDto,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -130,26 +114,10 @@ export class AuthService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: { public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<GetTokenDto>;
httpHeaderAccept?: 'application/json' | 'application/problem+json', public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTokenDto>>;
context?: HttpContext, public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTokenDto>>;
transferCache?: boolean public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<GetTokenDto>;
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json' | 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<GetTokenDto>>;
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json' | 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<GetTokenDto>>;
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json' | 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (refreshTokenDto === null || refreshTokenDto === undefined) { if (refreshTokenDto === null || refreshTokenDto === undefined) {
throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.'); 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`; let localVarPath = `/API/Auth/RefreshToken`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`, return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: refreshTokenDto, body: refreshTokenDto,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -9,21 +9,21 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {GetDesignationDto} from '../model/get-designation-dto'; import { GetDesignationDto } from '../model/get-designation-dto';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -31,7 +31,7 @@ import {BaseService} from '../api.base.service';
}) })
export class DesignationsService extends BaseService { 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); super(basePath, configuration);
} }
@@ -41,26 +41,10 @@ export class DesignationsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetDesignationDto>>;
httpHeaderAccept?: 'application/json', public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetDesignationDto>>>;
context?: HttpContext, public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetDesignationDto>>>;
transferCache?: boolean public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetDesignationDto>>;
public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetDesignationDto>>>;
public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetDesignationDto>>>;
public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -91,15 +75,15 @@ export class DesignationsService extends BaseService {
} }
let localVarPath = `/API/Designations`; let localVarPath = `/API/Designations`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetDesignationDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetDesignationDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
+66 -190
View File
@@ -9,23 +9,23 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {GetFriendDto} from '../model/get-friend-dto'; import { GetFriendDto } from '../model/get-friend-dto';
// @ts-ignore // @ts-ignore
import {GetFriendRequestDto} from '../model/get-friend-request-dto'; import { GetFriendRequestDto } from '../model/get-friend-request-dto';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -33,7 +33,7 @@ import {BaseService} from '../api.base.service';
}) })
export class FriendsService extends BaseService { 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); super(basePath, configuration);
} }
@@ -44,26 +44,10 @@ export class FriendsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: { public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (friendId === null || friendId === undefined) { if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -94,24 +79,16 @@ export class FriendsService extends BaseService {
} }
} }
let localVarPath = `/API/Friends/${this.configuration.encodeParam({ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
name: "friendId", const { basePath, withCredentials } = this.configuration;
value: friendId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Request`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -124,26 +101,10 @@ export class FriendsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: { public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (friendId === null || friendId === undefined) { if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling deleteFriendEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -174,24 +136,16 @@ export class FriendsService extends BaseService {
} }
} }
let localVarPath = `/API/Friends/${this.configuration.encodeParam({ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "friendId", const { basePath, withCredentials } = this.configuration;
value: friendId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -203,26 +157,10 @@ export class FriendsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetFriendRequestDto>>;
httpHeaderAccept?: 'application/json', public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetFriendRequestDto>>>;
context?: HttpContext, public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetFriendRequestDto>>>;
transferCache?: boolean public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetFriendRequestDto>>;
public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetFriendRequestDto>>>;
public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetFriendRequestDto>>>;
public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -253,15 +191,15 @@ export class FriendsService extends BaseService {
} }
let localVarPath = `/API/Friends/Requests`; let localVarPath = `/API/Friends/Requests`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetFriendRequestDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetFriendRequestDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -273,26 +211,10 @@ export class FriendsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetFriendDto>>;
httpHeaderAccept?: 'application/json', public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetFriendDto>>>;
context?: HttpContext, public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetFriendDto>>>;
transferCache?: boolean public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetFriendDto>>;
public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetFriendDto>>>;
public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetFriendDto>>>;
public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -323,15 +245,15 @@ export class FriendsService extends BaseService {
} }
let localVarPath = `/API/Friends`; let localVarPath = `/API/Friends`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetFriendDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetFriendDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -344,26 +266,10 @@ export class FriendsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: { public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (friendId === null || friendId === undefined) { if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -394,24 +301,16 @@ export class FriendsService extends BaseService {
} }
} }
let localVarPath = `/API/Friends/${this.configuration.encodeParam({ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
name: "friendId", const { basePath, withCredentials } = this.configuration;
value: friendId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Request`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -424,26 +323,10 @@ export class FriendsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: { public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (friendId === null || friendId === undefined) { if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling sendFriendRequestEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -474,24 +358,16 @@ export class FriendsService extends BaseService {
} }
} }
let localVarPath = `/API/Friends/${this.configuration.encodeParam({ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "friendId", const { basePath, withCredentials } = this.configuration;
value: friendId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
+145 -481
View File
@@ -9,37 +9,37 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {CreateGroupDto} from '../model/create-group-dto'; import { CreateGroupDto } from '../model/create-group-dto';
// @ts-ignore // @ts-ignore
import {ErrorResponse} from '../model/error-response'; import { ErrorResponse } from '../model/error-response';
// @ts-ignore // @ts-ignore
import {GetGroupDetailsDto} from '../model/get-group-details-dto'; import { GetGroupDetailsDto } from '../model/get-group-details-dto';
// @ts-ignore // @ts-ignore
import {GetGroupDto} from '../model/get-group-dto'; import { GetGroupDto } from '../model/get-group-dto';
// @ts-ignore // @ts-ignore
import {GetGroupRankingDto} from '../model/get-group-ranking-dto'; import { GetGroupRankingDto } from '../model/get-group-ranking-dto';
// @ts-ignore // @ts-ignore
import {GetProofDto} from '../model/get-proof-dto'; import { GetProofDto } from '../model/get-proof-dto';
// @ts-ignore // @ts-ignore
import {GetUserGroupDto} from '../model/get-user-group-dto'; import { GetUserGroupDto } from '../model/get-user-group-dto';
// @ts-ignore // @ts-ignore
import {UserProofRequest} from '../model/user-proof-request'; import { UserProofRequest } from '../model/user-proof-request';
// @ts-ignore // @ts-ignore
import {UserVoteRequest} from '../model/user-vote-request'; import { UserVoteRequest } from '../model/user-vote-request';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -47,7 +47,7 @@ import {BaseService} from '../api.base.service';
}) })
export class GroupsService extends BaseService { 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); super(basePath, configuration);
} }
@@ -59,26 +59,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: { public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (groupId === null || groupId === undefined) { if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling addUserToGroupEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -112,32 +97,16 @@ export class GroupsService extends BaseService {
} }
} }
let localVarPath = `/API/Groups/${this.configuration.encodeParam({ 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"})}`;
name: "groupId", const { basePath, withCredentials } = this.configuration;
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<any>('post', `${basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -150,26 +119,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: { public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: 'application/problem+json', public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (createGroupDto === null || createGroupDto === undefined) { if (createGroupDto === null || createGroupDto === undefined) {
throw new Error('Required parameter createGroupDto was null or undefined when calling createGroupEndpoint.'); 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`; let localVarPath = `/API/Groups`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: createGroupDto, body: createGroupDto,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -234,26 +187,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (id === null || id === undefined) { if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling deleteGroupEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -284,24 +222,16 @@ export class GroupsService extends BaseService {
} }
} }
let localVarPath = `/API/Groups/${this.configuration.encodeParam({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "id", const { basePath, withCredentials } = this.configuration;
value: id,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -315,26 +245,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: { public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (groupId === null || groupId === undefined) { if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling deleteUserFromGroupEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -368,32 +283,16 @@ export class GroupsService extends BaseService {
} }
} }
let localVarPath = `/API/Groups/${this.configuration.encodeParam({ 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"})}`;
name: "groupId", const { basePath, withCredentials } = this.configuration;
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<any>('delete', `${basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -406,26 +305,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserGroupDto>>;
httpHeaderAccept?: 'application/json', public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserGroupDto>>>;
context?: HttpContext, public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserGroupDto>>>;
transferCache?: boolean public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetUserGroupDto>>;
public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetUserGroupDto>>>;
public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetUserGroupDto>>>;
public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (id === null || id === undefined) { if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getAllGroupUsersEndpoint.'); 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({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
name: "id", const { basePath, withCredentials } = this.configuration;
value: id,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Users`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<Array<GetUserGroupDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetUserGroupDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -487,26 +362,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetGroupDto>>;
httpHeaderAccept?: 'application/json', public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetGroupDto>>>;
context?: HttpContext, public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetGroupDto>>>;
transferCache?: boolean public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetGroupDto>>;
public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetGroupDto>>>;
public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetGroupDto>>>;
public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -537,15 +396,15 @@ export class GroupsService extends BaseService {
} }
let localVarPath = `/API/Groups/Users`; let localVarPath = `/API/Groups/Users`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetGroupDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetGroupDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -558,26 +417,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllProofsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { public getAllProofsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetProofDto>>;
httpHeaderAccept?: 'application/json', public getAllProofsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetProofDto>>>;
context?: HttpContext, public getAllProofsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetProofDto>>>;
transferCache?: boolean public getAllProofsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetProofDto>>;
public getAllProofsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetProofDto>>>;
public getAllProofsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetProofDto>>>;
public getAllProofsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (id === null || id === undefined) { if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getAllProofsEndpoint.'); 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({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Proofs`;
name: "id", const { basePath, withCredentials } = this.configuration;
value: id,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Proofs`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<Array<GetProofDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetProofDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -640,26 +475,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetGroupDetailsDto>;
httpHeaderAccept?: 'application/json', public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetGroupDetailsDto>>;
context?: HttpContext, public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetGroupDetailsDto>>;
transferCache?: boolean public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<GetGroupDetailsDto>;
public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<GetGroupDetailsDto>>;
public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<GetGroupDetailsDto>>;
public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (id === null || id === undefined) { if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getGroupDetailsEndpoint.'); 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({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "id", const { basePath, withCredentials } = this.configuration;
value: id,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<GetGroupDetailsDto>('get', `${basePath}${localVarPath}`, return this.httpClient.request<GetGroupDetailsDto>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -722,26 +533,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getGroupRankingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { public getGroupRankingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetGroupRankingDto>>;
httpHeaderAccept?: 'application/json', public getGroupRankingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetGroupRankingDto>>>;
context?: HttpContext, public getGroupRankingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetGroupRankingDto>>>;
transferCache?: boolean public getGroupRankingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetGroupRankingDto>>;
public getGroupRankingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetGroupRankingDto>>>;
public getGroupRankingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetGroupRankingDto>>>;
public getGroupRankingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (id === null || id === undefined) { if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getGroupRankingEndpoint.'); 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({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/GroupRank`;
name: "id", const { basePath, withCredentials } = this.configuration;
value: id,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/GroupRank`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<Array<GetGroupRankingDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetGroupRankingDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -804,26 +591,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public patchGroupStatusEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: { public patchGroupStatusEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public patchGroupStatusEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public patchGroupStatusEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public patchGroupStatusEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public patchGroupStatusEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public patchGroupStatusEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public patchGroupStatusEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (groupId === null || groupId === undefined) { if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling patchGroupStatusEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -854,24 +626,16 @@ export class GroupsService extends BaseService {
} }
} }
let localVarPath = `/API/Groups/${this.configuration.encodeParam({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Status`;
name: "groupId", const { basePath, withCredentials } = this.configuration;
value: groupId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Status`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`, return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -885,26 +649,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'body', reportProgress?: boolean, options?: { public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (groupId === null || groupId === undefined) { if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserProofEndpoint.'); 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 // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -947,25 +696,17 @@ export class GroupsService extends BaseService {
} }
} }
let localVarPath = `/API/Groups/${this.configuration.encodeParam({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/Proof`;
name: "groupId", const { basePath, withCredentials } = this.configuration;
value: groupId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Users/Proof`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`, return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: userProofRequest, body: userProofRequest,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -979,26 +720,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: { public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (groupId === null || groupId === undefined) { if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserRoleEndpoint.'); throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserRoleEndpoint.');
} }
@@ -1011,7 +736,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -1032,32 +758,16 @@ export class GroupsService extends BaseService {
} }
} }
let localVarPath = `/API/Groups/${this.configuration.encodeParam({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Role`;
name: "groupId", const { basePath, withCredentials } = this.configuration;
value: groupId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Users/${this.configuration.encodeParam({
name: "userId",
value: userId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Role`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`, return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -1071,26 +781,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'body', reportProgress?: boolean, options?: { public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public patchVoteEndpoint(groupId: number, userVoteRequest: UserVoteRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (groupId === null || groupId === undefined) { if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling patchVoteEndpoint.'); throw new Error('Required parameter groupId was null or undefined when calling patchVoteEndpoint.');
} }
@@ -1103,7 +797,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -1133,25 +828,17 @@ export class GroupsService extends BaseService {
} }
} }
let localVarPath = `/API/Groups/${this.configuration.encodeParam({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/Vote`;
name: "groupId", const { basePath, withCredentials } = this.configuration;
value: groupId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Users/Vote`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`, return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: userVoteRequest, body: userVoteRequest,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -1164,26 +851,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public startVoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { public startVoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public startVoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public startVoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public startVoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public startVoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public startVoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public startVoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (id === null || id === undefined) { if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling startVoteEndpoint.'); throw new Error('Required parameter id was null or undefined when calling startVoteEndpoint.');
} }
@@ -1193,7 +864,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -1214,24 +886,16 @@ export class GroupsService extends BaseService {
} }
} }
let localVarPath = `/API/Groups/${this.configuration.encodeParam({ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Vote`;
name: "id", const { basePath, withCredentials } = this.configuration;
value: id,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Vote`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
+39 -118
View File
@@ -9,25 +9,25 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {CreateMessageDto} from '../model/create-message-dto'; import { CreateMessageDto } from '../model/create-message-dto';
// @ts-ignore // @ts-ignore
import {ErrorResponse} from '../model/error-response'; import { ErrorResponse } from '../model/error-response';
// @ts-ignore // @ts-ignore
import {GetMessageDto} from '../model/get-message-dto'; import { GetMessageDto } from '../model/get-message-dto';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -35,7 +35,7 @@ import {BaseService} from '../api.base.service';
}) })
export class MessagesService extends BaseService { export class MessagesService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration); super(basePath, configuration);
} }
@@ -47,26 +47,10 @@ export class MessagesService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'body', reportProgress?: boolean, options?: { public deleteMessageEndpoint(id: number, groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public deleteMessageEndpoint(id: number, groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public deleteMessageEndpoint(id: number, groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public deleteMessageEndpoint(id: number, groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public deleteMessageEndpoint(id: number, groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (id === null || id === undefined) { if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling deleteMessageEndpoint.'); throw new Error('Required parameter id was null or undefined when calling deleteMessageEndpoint.');
} }
@@ -79,7 +63,8 @@ export class MessagesService extends BaseService {
// authentication (JWTBearerAuth) required // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -100,32 +85,16 @@ export class MessagesService extends BaseService {
} }
} }
let localVarPath = `/API/Messages/${this.configuration.encodeParam({ let localVarPath = `/API/Messages/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "id", const { basePath, withCredentials } = this.configuration;
value: id,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Groups/${this.configuration.encodeParam({
name: "groupId",
value: groupId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -138,26 +107,10 @@ export class MessagesService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: { public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetMessageDto>>;
httpHeaderAccept?: 'application/json', public getMessagesEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetMessageDto>>>;
context?: HttpContext, public getMessagesEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetMessageDto>>>;
transferCache?: boolean public getMessagesEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetMessageDto>>;
public getMessagesEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetMessageDto>>>;
public getMessagesEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetMessageDto>>>;
public getMessagesEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (groupId === null || groupId === undefined) { if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling getMessagesEndpoint.'); throw new Error('Required parameter groupId was null or undefined when calling getMessagesEndpoint.');
} }
@@ -190,24 +143,16 @@ export class MessagesService extends BaseService {
} }
} }
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({ let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "groupId", const { basePath, withCredentials } = this.configuration;
value: groupId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<Array<GetMessageDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetMessageDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -221,26 +166,10 @@ export class MessagesService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'body', reportProgress?: boolean, options?: { public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: 'application/problem+json', public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (groupId === null || groupId === undefined) { if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling sendMessageEndpoint.'); throw new Error('Required parameter groupId was null or undefined when calling sendMessageEndpoint.');
} }
@@ -285,25 +214,17 @@ export class MessagesService extends BaseService {
} }
} }
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({ let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "groupId", const { basePath, withCredentials } = this.configuration;
value: groupId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: createMessageDto, body: createMessageDto,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -9,21 +9,21 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {GetUserDto} from '../model/get-user-dto'; import { GetUserDto } from '../model/get-user-dto';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -31,7 +31,7 @@ import {BaseService} from '../api.base.service';
}) })
export class OverallrankingService extends BaseService { export class OverallrankingService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration); super(basePath, configuration);
} }
@@ -41,26 +41,10 @@ export class OverallrankingService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserDto>>;
httpHeaderAccept?: 'application/json', public getOverallRankingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserDto>>>;
context?: HttpContext, public getOverallRankingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserDto>>>;
transferCache?: boolean public getOverallRankingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetUserDto>>;
public getOverallRankingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetUserDto>>>;
public getOverallRankingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetUserDto>>>;
public getOverallRankingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -91,15 +75,15 @@ export class OverallrankingService extends BaseService {
} }
let localVarPath = `/API/OverallRanking`; let localVarPath = `/API/OverallRanking`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -9,23 +9,23 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {GetRandomChallengeDto} from '../model/get-random-challenge-dto'; import { GetRandomChallengeDto } from '../model/get-random-challenge-dto';
// @ts-ignore // @ts-ignore
import {RandomChallengeProofRequest} from '../model/random-challenge-proof-request'; import { RandomChallengeProofRequest } from '../model/random-challenge-proof-request';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -33,7 +33,7 @@ import {BaseService} from '../api.base.service';
}) })
export class RandomchallengesService extends BaseService { export class RandomchallengesService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration); super(basePath, configuration);
} }
@@ -43,33 +43,18 @@ export class RandomchallengesService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
// authentication (JWTBearerAuth) required // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -91,15 +76,15 @@ export class RandomchallengesService extends BaseService {
} }
let localVarPath = `/API/RandomChallenges`; let localVarPath = `/API/RandomChallenges`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -112,26 +97,10 @@ export class RandomchallengesService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: { public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetRandomChallengeDto>;
httpHeaderAccept?: 'application/json', public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetRandomChallengeDto>>;
context?: HttpContext, public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetRandomChallengeDto>>;
transferCache?: boolean public getRandomChallengeEndpoint(randomChallengeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<GetRandomChallengeDto>;
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<GetRandomChallengeDto>>;
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<GetRandomChallengeDto>>;
public getRandomChallengeEndpoint(randomChallengeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (randomChallengeId === null || randomChallengeId === undefined) { if (randomChallengeId === null || randomChallengeId === undefined) {
throw new Error('Required parameter randomChallengeId was null or undefined when calling getRandomChallengeEndpoint.'); throw new Error('Required parameter randomChallengeId was null or undefined when calling getRandomChallengeEndpoint.');
} }
@@ -164,24 +133,16 @@ export class RandomchallengesService extends BaseService {
} }
} }
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({ let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({name: "randomChallengeId", value: randomChallengeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "randomChallengeId", const { basePath, withCredentials } = this.configuration;
value: randomChallengeId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<GetRandomChallengeDto>('get', `${basePath}${localVarPath}`, return this.httpClient.request<GetRandomChallengeDto>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -195,26 +156,10 @@ export class RandomchallengesService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'body', reportProgress?: boolean, options?: { public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (randomChallengeId === null || randomChallengeId === undefined) { if (randomChallengeId === null || randomChallengeId === undefined) {
throw new Error('Required parameter randomChallengeId was null or undefined when calling patchProofEndpoint.'); throw new Error('Required parameter randomChallengeId was null or undefined when calling patchProofEndpoint.');
} }
@@ -227,7 +172,8 @@ export class RandomchallengesService extends BaseService {
// authentication (JWTBearerAuth) required // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -257,25 +203,17 @@ export class RandomchallengesService extends BaseService {
} }
} }
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({ let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({name: "randomChallengeId", value: randomChallengeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Proof`;
name: "randomChallengeId", const { basePath, withCredentials } = this.configuration;
value: randomChallengeId,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}/Proof`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`, return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: randomChallengeProofRequest, body: randomChallengeProofRequest,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
+92 -259
View File
@@ -9,37 +9,37 @@
*/ */
/* tslint:disable:no-unused-variable member-ordering */ /* tslint:disable:no-unused-variable member-ordering */
import {Inject, Injectable, Optional} from '@angular/core'; import { Inject, Injectable, Optional } from '@angular/core';
import { import { HttpClient, HttpHeaders, HttpParams,
HttpClient, HttpHeaders, HttpParams,
HttpResponse, HttpEvent, HttpContext HttpResponse, HttpEvent, HttpContext
} from '@angular/common/http'; } from '@angular/common/http';
import {Observable} from 'rxjs'; import { Observable } from 'rxjs';
import {OpenApiHttpParams, QueryParamStyle} from '../query.params'; import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore // @ts-ignore
import {CreateUserDto} from '../model/create-user-dto'; import { CreateUserDto } from '../model/create-user-dto';
// @ts-ignore // @ts-ignore
import {ErrorResponse} from '../model/error-response'; import { ErrorResponse } from '../model/error-response';
// @ts-ignore // @ts-ignore
import {GetUserChallengeDto} from '../model/get-user-challenge-dto'; import { GetUserChallengeDto } from '../model/get-user-challenge-dto';
// @ts-ignore // @ts-ignore
import {GetUserDetailsDto} from '../model/get-user-details-dto'; import { GetUserDetailsDto } from '../model/get-user-details-dto';
// @ts-ignore // @ts-ignore
import {GetUserDto} from '../model/get-user-dto'; import { GetUserDto } from '../model/get-user-dto';
// @ts-ignore // @ts-ignore
import {GetUserProofDto} from '../model/get-user-proof-dto'; import { GetUserProofDto } from '../model/get-user-proof-dto';
// @ts-ignore // @ts-ignore
import {PatchUserDesignationDto} from '../model/patch-user-designation-dto'; import { PatchUserDesignationDto } from '../model/patch-user-designation-dto';
// @ts-ignore // @ts-ignore
import {PatchUserPasswordDto} from '../model/patch-user-password-dto'; import { PatchUserPasswordDto } from '../model/patch-user-password-dto';
// @ts-ignore // @ts-ignore
import {UpdateUserDto} from '../model/update-user-dto'; import { UpdateUserDto } from '../model/update-user-dto';
// @ts-ignore // @ts-ignore
import {BASE_PATH, COLLECTION_FORMATS} from '../variables'; import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import {Configuration} from '../configuration'; import { Configuration } from '../configuration';
import {BaseService} from '../api.base.service'; import { BaseService } from '../api.base.service';
@Injectable({ @Injectable({
@@ -47,7 +47,7 @@ import {BaseService} from '../api.base.service';
}) })
export class UsersService extends BaseService { export class UsersService extends BaseService {
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) { constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration); super(basePath, configuration);
} }
@@ -58,26 +58,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: { public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: 'application/problem+json', public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (createUserDto === null || createUserDto === undefined) { if (createUserDto === null || createUserDto === undefined) {
throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.'); throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.');
} }
@@ -117,16 +101,16 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users`; let localVarPath = `/API/Users`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: createUserDto, body: createUserDto,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -138,33 +122,18 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: undefined, public deleteUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public deleteUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public deleteUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public deleteUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public deleteUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public deleteUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: undefined,
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
// authentication (JWTBearerAuth) required // authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer '); 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) { if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected); localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
} }
@@ -186,15 +155,15 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users`; let localVarPath = `/API/Users`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -206,26 +175,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserChallengeDto>>;
httpHeaderAccept?: 'application/json', public getAllUserChallengesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserChallengeDto>>>;
context?: HttpContext, public getAllUserChallengesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserChallengeDto>>>;
transferCache?: boolean public getAllUserChallengesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetUserChallengeDto>>;
public getAllUserChallengesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetUserChallengeDto>>>;
public getAllUserChallengesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetUserChallengeDto>>>;
public getAllUserChallengesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -256,15 +209,15 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users/Challenges`; let localVarPath = `/API/Users/Challenges`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetUserChallengeDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetUserChallengeDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -276,26 +229,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserProofDto>>;
httpHeaderAccept?: 'application/json', public getAllUserProofsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserProofDto>>>;
context?: HttpContext, public getAllUserProofsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserProofDto>>>;
transferCache?: boolean public getAllUserProofsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetUserProofDto>>;
public getAllUserProofsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetUserProofDto>>>;
public getAllUserProofsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetUserProofDto>>>;
public getAllUserProofsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -326,15 +263,15 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users/Proofs`; let localVarPath = `/API/Users/Proofs`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetUserProofDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetUserProofDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -346,26 +283,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserDto>>;
httpHeaderAccept?: 'application/json', public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserDto>>>;
context?: HttpContext, public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserDto>>>;
transferCache?: boolean public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<Array<GetUserDto>>;
public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<Array<GetUserDto>>>;
public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<Array<GetUserDto>>>;
public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -396,15 +317,15 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users`; let localVarPath = `/API/Users`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`, return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -416,26 +337,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: { public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDetailsDto>;
httpHeaderAccept?: 'application/json', public getUserDetailsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDetailsDto>>;
context?: HttpContext, public getUserDetailsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDetailsDto>>;
transferCache?: boolean public getUserDetailsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<GetUserDetailsDto>;
public getUserDetailsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<GetUserDetailsDto>>;
public getUserDetailsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<GetUserDetailsDto>>;
public getUserDetailsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
let localVarHeaders = this.defaultHeaders; let localVarHeaders = this.defaultHeaders;
@@ -466,15 +371,15 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users/Details`; let localVarPath = `/API/Users/Details`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<GetUserDetailsDto>('get', `${basePath}${localVarPath}`, return this.httpClient.request<GetUserDetailsDto>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -487,26 +392,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: { public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
httpHeaderAccept?: 'application/json', public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
context?: HttpContext, public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
transferCache?: boolean public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<GetUserDto>;
public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<GetUserDto>>;
public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<GetUserDto>>;
public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (id === null || id === undefined) { if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.'); throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.');
} }
@@ -539,24 +428,16 @@ export class UsersService extends BaseService {
} }
} }
let localVarPath = `/API/Users/${this.configuration.encodeParam({ let localVarPath = `/API/Users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
name: "id", const { basePath, withCredentials } = this.configuration;
value: id,
in: "path",
style: "simple",
explode: false,
dataType: "number",
dataFormat: "int32"
})}`;
const {basePath, withCredentials} = this.configuration;
return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`, return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -569,26 +450,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: { public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: 'application/problem+json', public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (patchUserDesignationDto === null || patchUserDesignationDto === undefined) { if (patchUserDesignationDto === null || patchUserDesignationDto === undefined) {
throw new Error('Required parameter patchUserDesignationDto was null or undefined when calling patchUserDesignationEndpoint.'); throw new Error('Required parameter patchUserDesignationDto was null or undefined when calling patchUserDesignationEndpoint.');
} }
@@ -631,16 +496,16 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users/Designation`; let localVarPath = `/API/Users/Designation`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`, return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: patchUserDesignationDto, body: patchUserDesignationDto,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -653,26 +518,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: { public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: 'application/problem+json', public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (patchUserPasswordDto === null || patchUserPasswordDto === undefined) { if (patchUserPasswordDto === null || patchUserPasswordDto === undefined) {
throw new Error('Required parameter patchUserPasswordDto was null or undefined when calling patchUserPasswordEndpoint.'); throw new Error('Required parameter patchUserPasswordDto was null or undefined when calling patchUserPasswordEndpoint.');
} }
@@ -715,16 +564,16 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users/Password`; let localVarPath = `/API/Users/Password`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`, return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: patchUserPasswordDto, body: patchUserPasswordDto,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
@@ -737,26 +586,10 @@ export class UsersService extends BaseService {
* @param reportProgress flag to report request and response progress. * @param reportProgress flag to report request and response progress.
* @param options additional options * @param options additional options
*/ */
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: { public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
httpHeaderAccept?: 'application/problem+json', public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
context?: HttpContext, public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
transferCache?: boolean public updateUserEndpoint(updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
}): Observable<any>;
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpResponse<any>>;
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<HttpEvent<any>>;
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
httpHeaderAccept?: 'application/problem+json',
context?: HttpContext,
transferCache?: boolean
}): Observable<any> {
if (updateUserDto === null || updateUserDto === undefined) { if (updateUserDto === null || updateUserDto === undefined) {
throw new Error('Required parameter updateUserDto was null or undefined when calling updateUserEndpoint.'); throw new Error('Required parameter updateUserDto was null or undefined when calling updateUserEndpoint.');
} }
@@ -796,16 +629,16 @@ export class UsersService extends BaseService {
} }
let localVarPath = `/API/Users`; let localVarPath = `/API/Users`;
const {basePath, withCredentials} = this.configuration; const { basePath, withCredentials } = this.configuration;
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`, return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
{ {
context: localVarHttpContext, context: localVarHttpContext,
body: updateUserDto, body: updateUserDto,
responseType: <any>responseType_, responseType: <any>responseType_,
...(withCredentials ? {withCredentials} : {}), ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders, headers: localVarHeaders,
observe: observe, observe: observe,
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}), ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress reportProgress: reportProgress
} }
); );
+9 -19
View File
@@ -1,12 +1,12 @@
import {HttpHeaders, HttpParameterCodec} from '@angular/common/http'; import { HttpHeaders, HttpParameterCodec } from '@angular/common/http';
import {Param} from './param'; import { Param } from './param';
import {OpenApiHttpParams} from './query.params'; import { OpenApiHttpParams } from './query.params';
export interface ConfigurationParameters { export interface ConfigurationParameters {
/** /**
* @deprecated Since 5.0. Use credentials instead * @deprecated Since 5.0. Use credentials instead
*/ */
apiKeys?: { [key: string]: string }; apiKeys?: {[ key: string ]: string};
username?: string; username?: string;
password?: string; password?: string;
/** /**
@@ -32,14 +32,14 @@ export interface ConfigurationParameters {
* document. They should map to the value used for authentication * document. They should map to the value used for authentication
* minus any standard prefixes such as 'Basic' or 'Bearer'. * minus any standard prefixes such as 'Basic' or 'Bearer'.
*/ */
credentials?: { [key: string]: string | (() => string | undefined) }; credentials?: {[ key: string ]: string | (() => string | undefined)};
} }
export class Configuration { export class Configuration {
/** /**
* @deprecated Since 5.0. Use credentials instead * @deprecated Since 5.0. Use credentials instead
*/ */
apiKeys?: { [key: string]: string }; apiKeys?: {[ key: string ]: string};
username?: string; username?: string;
password?: string; password?: string;
/** /**
@@ -65,19 +65,9 @@ export class Configuration {
* document. They should map to the value used for authentication * document. They should map to the value used for authentication
* minus any standard prefixes such as 'Basic' or 'Bearer'. * minus any standard prefixes such as 'Basic' or 'Bearer'.
*/ */
credentials: { [key: string]: string | (() => string | undefined) }; credentials: {[ key: string ]: string | (() => string | undefined)};
constructor({ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) {
accessToken,
apiKeys,
basePath,
credentials,
encodeParam,
encoder,
password,
username,
withCredentials
}: ConfigurationParameters = {}) {
if (apiKeys) { if (apiKeys) {
this.apiKeys = apiKeys; this.apiKeys = apiKeys;
} }
@@ -119,7 +109,7 @@ export class Configuration {
* @param contentTypes - the array of content types that are available for selection * @param contentTypes - the array of content types that are available for selection
* @returns the selected content-type or <code>undefined</code> if no selection could be made. * @returns the selected content-type or <code>undefined</code> if no selection could be made.
*/ */
public selectHeaderContentType(contentTypes: string[]): string | undefined { public selectHeaderContentType (contentTypes: string[]): string | undefined {
if (contentTypes.length === 0) { if (contentTypes.length === 0) {
return undefined; return undefined;
} }
+1 -7
View File
@@ -1,4 +1,4 @@
import {HttpParameterCodec} from '@angular/common/http'; import { HttpParameterCodec } from '@angular/common/http';
/** /**
* Custom HttpParameterCodec * Custom HttpParameterCodec
@@ -8,15 +8,12 @@ export class CustomHttpParameterCodec implements HttpParameterCodec {
encodeKey(k: string): string { encodeKey(k: string): string {
return encodeURIComponent(k); return encodeURIComponent(k);
} }
encodeValue(v: string): string { encodeValue(v: string): string {
return encodeURIComponent(v); return encodeURIComponent(v);
} }
decodeKey(k: string): string { decodeKey(k: string): string {
return decodeURIComponent(k); return decodeURIComponent(k);
} }
decodeValue(v: string): string { decodeValue(v: string): string {
return decodeURIComponent(v); return decodeURIComponent(v);
} }
@@ -26,15 +23,12 @@ export class IdentityHttpParameterCodec implements HttpParameterCodec {
encodeKey(k: string): string { encodeKey(k: string): string {
return k; return k;
} }
encodeValue(v: string): string { encodeValue(v: string): string {
return v; return v;
} }
decodeKey(k: string): string { decodeKey(k: string): string {
return k; return k;
} }
decodeValue(v: string): string { decodeValue(v: string): string {
return v; return v;
} }
@@ -7,7 +7,7 @@
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import {CreateUserGroupDto} from './create-user-group-dto'; import { CreateUserGroupDto } from './create-user-group-dto';
export interface CreateGroupDto { export interface CreateGroupDto {
@@ -7,8 +7,8 @@
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import {GetMessageDto} from './get-message-dto'; import { GetMessageDto } from './get-message-dto';
import {GetUserGroupDto} from './get-user-group-dto'; import { GetUserGroupDto } from './get-user-group-dto';
export interface GetGroupDetailsDto { export interface GetGroupDetailsDto {
@@ -7,7 +7,7 @@
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import {GetUserStatsDto} from './get-user-stats-dto'; import { GetUserStatsDto } from './get-user-stats-dto';
export interface GetUserDetailsDto { export interface GetUserDetailsDto {
+2 -2
View File
@@ -7,7 +7,7 @@
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*/ */
import {GetUserStatsDto} from './get-user-stats-dto'; import { GetUserStatsDto } from './get-user-stats-dto';
export interface GetUserDto { export interface GetUserDto {
@@ -15,7 +15,7 @@ export interface GetUserDto {
firstName?: string | null; firstName?: string | null;
name?: string | null; name?: string | null;
username?: string | null; username?: string | null;
designationId?: number | null; designationName?: string | null;
getUserStatsDto?: GetUserStatsDto | null; getUserStatsDto?: GetUserStatsDto | null;
} }
+5 -5
View File
@@ -1,15 +1,15 @@
import {EnvironmentProviders, makeEnvironmentProviders} from "@angular/core"; import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core";
import {Configuration, ConfigurationParameters} from './configuration'; import { Configuration, ConfigurationParameters } from './configuration';
import {BASE_PATH} from './variables'; import { BASE_PATH } from './variables';
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig). // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders { export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders {
return makeEnvironmentProviders([ return makeEnvironmentProviders([
typeof configOrBasePath === "string" typeof configOrBasePath === "string"
? {provide: BASE_PATH, useValue: configOrBasePath} ? { provide: BASE_PATH, useValue: configOrBasePath }
: { : {
provide: Configuration, provide: Configuration,
useValue: new Configuration({...configOrBasePath}), useValue: new Configuration({ ...configOrBasePath }),
}, },
]); ]);
} }
+2 -2
View File
@@ -1,5 +1,5 @@
import {HttpParams, HttpParameterCodec} from '@angular/common/http'; import { HttpParams, HttpParameterCodec } from '@angular/common/http';
import {CustomHttpParameterCodec, IdentityHttpParameterCodec} from './encoder'; import { CustomHttpParameterCodec, IdentityHttpParameterCodec } from './encoder';
export enum QueryParamStyle { export enum QueryParamStyle {
Json, Json,
+1 -1
View File
@@ -1,4 +1,4 @@
import {InjectionToken} from '@angular/core'; import { InjectionToken } from '@angular/core';
export const BASE_PATH = new InjectionToken<string>('basePath'); export const BASE_PATH = new InjectionToken<string>('basePath');
export const COLLECTION_FORMATS = { export const COLLECTION_FORMATS = {