diff --git a/package-lock.json b/package-lock.json
index 47991d8..2993388 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -292,6 +292,7 @@
"resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-20.3.20.tgz",
"integrity": "sha512-Iobw7He3yJVR2aQ6JN9Kq/2ldD8+uHzJZwd41SQ91A+TzPrBRSV0t80WHHrANZ7xnAjtHDc7zSSGp/i7DzUc9g==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"ajv": "8.18.0",
"ajv-formats": "3.0.1",
@@ -319,6 +320,7 @@
"resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-20.3.20.tgz",
"integrity": "sha512-+NNHQhQHcgQWZopStZ6os30YuP99lRzNS4wOnkJmoROy40SZct8lPnl2QW50a9Vc0AtaHx1a1NUZ+ohbf6fXqw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"@angular-devkit/core": "20.3.20",
"jsonc-parser": "3.3.1",
@@ -471,6 +473,7 @@
"resolved": "https://registry.npmjs.org/@angular/common/-/common-20.3.17.tgz",
"integrity": "sha512-Dqd8f8o9MehszTZIB7o7jrERlwLOSK64gNngK14DCQazz5lpIhAF6hBjx7zjHpa7L9eAYPK1TaxQUXypjzj18Q==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"tslib": "^2.3.0"
},
@@ -487,6 +490,7 @@
"resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-20.3.17.tgz",
"integrity": "sha512-cj3x6aFk9xOOxX+qEdeN8T5YbnBNWJ4UMHB/LQoDr7/xCJJGa40IhcOAuJeuF2kGqTwx6MCXnvjO8XOQfHhe9g==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"tslib": "^2.3.0"
},
@@ -500,6 +504,7 @@
"integrity": "sha512-w5pmO1pXO9tUMgUMWstpDmAWh5s1lJWo+2GI/ByaUEgBZkXd2S92sWoDL+bhy+JSvFzdLGdua6BncHBOX7hEjA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@babel/core": "7.28.3",
"@jridgewell/sourcemap-codec": "^1.4.14",
@@ -532,6 +537,7 @@
"resolved": "https://registry.npmjs.org/@angular/core/-/core-20.3.17.tgz",
"integrity": "sha512-YlQqxMeHI9XJw7I7oM3hYFQd4lQbK37IdlD9ztROIw5FjX6i6lmLU7+X1MQGSRi2r+X9l3IZtl33hRTNvkoUBw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"tslib": "^2.3.0"
},
@@ -557,6 +563,7 @@
"resolved": "https://registry.npmjs.org/@angular/forms/-/forms-20.3.17.tgz",
"integrity": "sha512-iGS6NwzcyJzinbPMapsQtcN0ZJ62vr6hcul+FNa40CaK2ePC04S+C5n+DIphzwnwsFHDBIWuTQRfk/lNYdN1JA==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"tslib": "^2.3.0"
},
@@ -575,6 +582,7 @@
"resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-20.3.17.tgz",
"integrity": "sha512-GA8pK+0F2/KGdYn5LMpLBrPTkQUwGjQE8Q+qsivOa150cK3OuD0po5PvYK58l+niGIVvm0wB1xGKTHTOiX/+4A==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"tslib": "^2.3.0"
},
@@ -597,6 +605,7 @@
"resolved": "https://registry.npmjs.org/@angular/router/-/router-20.3.17.tgz",
"integrity": "sha512-p0r0IOJhUcn8WHx4gkSlfwifkkYO5mSDtq4iM5OunZTlSaeSxLb1vTRg2VBgwdzpgAM+eZSMBTTVF/M3pdoELQ==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"tslib": "^2.3.0"
},
@@ -641,6 +650,7 @@
"integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@ampproject/remapping": "^2.2.0",
"@babel/code-frame": "^7.27.1",
@@ -983,6 +993,7 @@
"resolved": "https://registry.npmjs.org/@capacitor/core/-/core-8.3.0.tgz",
"integrity": "sha512-S4ajn4G/fS3VJj8salxqH/3LO5PPWv1VxGKQ27OCajnDcLJjEg9VXwgMPnlypgkIOqCJ2fmQLtk8GT+BlI9/rw==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"tslib": "^2.1.0"
}
@@ -1691,6 +1702,7 @@
"integrity": "sha512-nqhDw2ZcAUrKNPwhjinJny903bRhI0rQhiDz1LksjeRxqa36i3l75+4iXbOy0rlDpLJGxqtgoPavQjmmyS5UJw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@inquirer/checkbox": "^4.2.1",
"@inquirer/confirm": "^5.1.14",
@@ -2775,6 +2787,7 @@
"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.16.tgz",
"integrity": "sha512-JSIeW+USuMJkkcNbiOdcPkVCeI3TSnXstIVEPpp3HiaKnPRuSbUUKm9TY9o/XpIcPHWUOQItAtC5BiAwFdVITQ==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"file-type": "21.3.0",
"iterare": "1.2.1",
@@ -4824,6 +4837,7 @@
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.6.tgz",
"integrity": "sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==",
"license": "MIT",
+ "peer": true,
"dependencies": {
"follow-redirects": "^1.15.11",
"form-data": "^4.0.5",
@@ -4989,6 +5003,7 @@
}
],
"license": "MIT",
+ "peer": true,
"dependencies": {
"baseline-browser-mapping": "^2.9.0",
"caniuse-lite": "^1.0.30001759",
@@ -6116,6 +6131,7 @@
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"accepts": "^2.0.0",
"body-parser": "^2.2.1",
@@ -6590,6 +6606,7 @@
"integrity": "sha512-jq9l1DM0zVIvsm3lv9Nw9nlJnMNPOcAtsbsgiUhWcFzPE99Gvo6yRTlszSLLYacMeQ6quHD6hMfId8crVHvexw==",
"dev": true,
"license": "MIT",
+ "peer": true,
"engines": {
"node": ">=16.9.0"
}
@@ -7341,6 +7358,7 @@
"integrity": "sha512-SL0JY3DaxylDuo/MecFeiC+7pedM0zia33zl0vcjgwcq1q1FWWF1To9EIauPbl8GbMCU0R2e0uJ8bZunhYKD2g==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"cli-truncate": "^4.0.0",
"colorette": "^2.0.20",
@@ -8794,7 +8812,8 @@
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz",
"integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==",
- "license": "Apache-2.0"
+ "license": "Apache-2.0",
+ "peer": true
},
"node_modules/require-directory": {
"version": "2.1.1",
@@ -8963,6 +8982,7 @@
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
"integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
"license": "Apache-2.0",
+ "peer": true,
"dependencies": {
"tslib": "^2.1.0"
}
@@ -9001,6 +9021,7 @@
"integrity": "sha512-9GUyuksjw70uNpb1MTYWsH9MQHOHY6kwfnkafC24+7aOMZn9+rVMBxRbLvw756mrBFbIsFg6Xw9IkR2Fnn3k+Q==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"chokidar": "^4.0.0",
"immutable": "^5.0.2",
@@ -9608,7 +9629,8 @@
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
- "license": "0BSD"
+ "license": "0BSD",
+ "peer": true
},
"node_modules/tuf-js": {
"version": "4.1.0",
@@ -9658,6 +9680,7 @@
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"dev": true,
"license": "Apache-2.0",
+ "peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -9815,6 +9838,7 @@
"integrity": "sha512-uzcxnSDVjAopEUjljkWh8EIrg6tlzrjFUfMcR1EVsRDGwf/ccef0qQPRyOrROwhrTDaApueq+ja+KLPlzR/zdg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"esbuild": "^0.25.0",
"fdir": "^6.5.0",
@@ -10159,6 +10183,7 @@
"integrity": "sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==",
"dev": true,
"license": "MIT",
+ "peer": true,
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
@@ -10177,7 +10202,8 @@
"version": "0.15.1",
"resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.15.1.tgz",
"integrity": "sha512-XE96n56IQpJM7NAoXswY3XRLcWFW83xe0BiAOeMD7K5k5xecOeul3Qcpx6GqEeeHNkW5DWL5zOyTbEfB4eti8w==",
- "license": "MIT"
+ "license": "MIT",
+ "peer": true
}
}
}
diff --git a/src/app/components/friend-request/friend-request.component.html b/src/app/components/friend-request/friend-request.component.html
new file mode 100644
index 0000000..ab241e7
--- /dev/null
+++ b/src/app/components/friend-request/friend-request.component.html
@@ -0,0 +1,45 @@
+@if (friendsRequest().length > 0) {
+
+
+ @for (request of friendsRequest(); track request.userId; let i = $index) {
+ @if (i == friendsRequest().length - 1) {
+
+
+
+
+ {{ request.username }}
+
+
+
+
+
+
+
+
+ } @else {
+
+
+
+
+ {{ request.username }}
+
+
+
+
+
+
+
+
+ }
+ }
+
+
+} @else {
+
+
+ Vous n'avez aucune demande d'ami
+
+
+}
\ No newline at end of file
diff --git a/src/app/components/friend-request/friend-request.component.scss b/src/app/components/friend-request/friend-request.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/components/friend-request/friend-request.component.ts b/src/app/components/friend-request/friend-request.component.ts
new file mode 100644
index 0000000..b5023af
--- /dev/null
+++ b/src/app/components/friend-request/friend-request.component.ts
@@ -0,0 +1,89 @@
+import {Component, inject, OnInit, signal} from '@angular/core';
+import {IonicModule, ToastController} from "@ionic/angular";
+import {checkmarkCircleOutline, closeCircleOutline} from 'ionicons/icons';
+import {addIcons} from "ionicons";
+import {PipeComponent} from "../pipe/pipe.component";
+import {FriendsService, GetFriendDto, GetFriendRequestDto} from "../../services/api";
+import {firstValueFrom} from "rxjs";
+import {FriendsStateService} from "../../services/friends-state";
+
+addIcons({
+ 'check': checkmarkCircleOutline,
+ 'close': closeCircleOutline
+});
+
+@Component({
+ selector: 'app-friend-request',
+ templateUrl: './friend-request.component.html',
+ styleUrls: ['./friend-request.component.scss'],
+ imports: [
+ IonicModule,
+ PipeComponent
+ ]
+})
+export class FriendRequestComponent implements OnInit {
+ private friendsService = inject(FriendsService);
+ private toastCtrl = inject(ToastController);
+ private friendsState = inject(FriendsStateService);
+
+ friendsRequest = this.friendsState.requests;
+
+ async ngOnInit() {
+ await this.fetchFriendsRequest();
+ }
+
+ async fetchFriendsRequest() {
+ try {
+ const requests = await firstValueFrom(this.friendsService.getAllFriendRequestsEndpoint());
+ this.friendsState.setRequests(requests);
+ } catch (e) {
+ const toast = await this.toastCtrl.create({
+ message: 'Erreur lors du chargement des demandes d\'amis',
+ duration: 2000,
+ color: 'primary'
+ });
+ await toast.present();
+ }
+ console.log(this.friendsState.requests());
+ }
+
+ async acceptRequest(request: GetFriendRequestDto) {
+ try {
+ await firstValueFrom(this.friendsService.acceptFriendRequestEndpoint(request.userId));
+ this.friendsState.acceptRequest(request);
+ const toast = await this.toastCtrl.create({
+ message: 'Demande d\'ami acceptée',
+ duration: 1000,
+ color: 'success'
+ });
+ await toast.present();
+ } catch (e) {
+ const toast = await this.toastCtrl.create({
+ message: 'Echec de l\'acceptation',
+ duration: 1000,
+ color: 'danger'
+ });
+ await toast.present();
+ }
+ }
+
+ async rejectRequest(id: number) {
+ try {
+ await firstValueFrom(this.friendsService.rejectFriendRequestEndpoint(id));
+ this.friendsState.removeRequest(id);
+ const toast = await this.toastCtrl.create({
+ message: 'Demande d\'ami refusée',
+ duration: 1000,
+ color: 'success'
+ });
+ await toast.present();
+ } catch (e) {
+ const toast = await this.toastCtrl.create({
+ message: 'Echec du refus',
+ duration: 1000,
+ color: 'danger'
+ });
+ await toast.present();
+ }
+ }
+}
diff --git a/src/app/components/friends/friends-list.component.html b/src/app/components/friends/friends-list.component.html
new file mode 100644
index 0000000..6cb27b9
--- /dev/null
+++ b/src/app/components/friends/friends-list.component.html
@@ -0,0 +1,39 @@
+@if (friends().length > 0) {
+
+
+ @for (friend of friends(); track friend.friendId; let i = $index) {
+ @if (i == friends().length - 1) {
+
+
+
+
+ {{ friend.username }}
+ {{ friend.score }} pts
+
+
+
+
+ } @else {
+
+
+
+
+ {{ friend.username }}
+ {{ friend.score }} pts
+
+
+
+
+ }
+ }
+
+
+} @else {
+
+
+ C'est plus marrant à plusieurs, ajoute des amis !
+
+
+}
\ No newline at end of file
diff --git a/src/app/components/friends/friends-list.component.scss b/src/app/components/friends/friends-list.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/components/friends/friends-list.component.ts b/src/app/components/friends/friends-list.component.ts
new file mode 100644
index 0000000..86feccc
--- /dev/null
+++ b/src/app/components/friends/friends-list.component.ts
@@ -0,0 +1,67 @@
+import {Component, inject, OnInit, signal} from '@angular/core';
+import {IonicModule, ToastController} from "@ionic/angular";
+import {closeCircleOutline} from 'ionicons/icons';
+import {addIcons} from "ionicons";
+import {FriendsService, GetFriendDto} from "../../services/api";
+import {firstValueFrom} from "rxjs";
+import {FriendsStateService} from "../../services/friends-state";
+
+addIcons({
+ 'close': closeCircleOutline,
+});
+
+@Component({
+ selector: 'app-friends-list',
+ templateUrl: './friends-list.component.html',
+ styleUrls: ['./friends-list.component.scss'],
+ imports: [
+ IonicModule
+ ]
+})
+export class FriendsListComponent implements OnInit {
+ private friendsService = inject(FriendsService);
+ private toastCtrl = inject(ToastController);
+ private friendsState = inject(FriendsStateService);
+
+ friends = this.friendsState.friends;
+
+ async ngOnInit() {
+ await this.fetchFriends();
+ }
+
+ async fetchFriends() {
+ try {
+ const friends = await firstValueFrom(this.friendsService.getAllFriendsEndpoint());
+ this.friendsState.setFriends(friends);
+ } catch (e) {
+ const toast = await this.toastCtrl.create({
+ message: 'Amis introuvables',
+ duration: 2000,
+ color: 'primary'
+ });
+ await toast.present();
+ }
+ }
+
+ async deleteFriend(friendId: number) {
+ try {
+ await firstValueFrom(this.friendsService.deleteFriendEndpoint(friendId));
+ const toast = await this.toastCtrl.create({
+ message: 'Vous avez supprimé cet ami',
+ duration: 2000,
+ color: 'success'
+ });
+ await toast.present();
+ } catch (e) {
+ const toast = await this.toastCtrl.create({
+ message: 'Vous ne pouvez pas supprimer cet ami',
+ duration: 2000,
+ color: 'danger'
+ });
+ await toast.present();
+ }
+ this.friendsState.removeFriend(friendId);
+ }
+}
+
+//TODO : QUAND ON CLIQUE SUR UN JOUEUR ON PEUT VOIR SA PAGE (VAUT AUSSI POUR CLASSEMENT
diff --git a/src/app/components/pipe/pipe.component.html b/src/app/components/pipe/pipe.component.html
new file mode 100644
index 0000000..f786b29
--- /dev/null
+++ b/src/app/components/pipe/pipe.component.html
@@ -0,0 +1 @@
+|
diff --git a/src/app/components/pipe/pipe.component.scss b/src/app/components/pipe/pipe.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/components/pipe/pipe.component.ts b/src/app/components/pipe/pipe.component.ts
new file mode 100644
index 0000000..25487eb
--- /dev/null
+++ b/src/app/components/pipe/pipe.component.ts
@@ -0,0 +1,14 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'app-pipe',
+ templateUrl: './pipe.component.html',
+ styleUrls: ['./pipe.component.scss'],
+})
+export class PipeComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit() {}
+
+}
diff --git a/src/app/components/title-part/title-part.component.html b/src/app/components/title-part/title-part.component.html
new file mode 100644
index 0000000..8924783
--- /dev/null
+++ b/src/app/components/title-part/title-part.component.html
@@ -0,0 +1,3 @@
+
+ • {{ textInfo() }}
+
\ No newline at end of file
diff --git a/src/app/components/title-part/title-part.component.scss b/src/app/components/title-part/title-part.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/components/title-part/title-part.component.ts b/src/app/components/title-part/title-part.component.ts
new file mode 100644
index 0000000..74eb4a6
--- /dev/null
+++ b/src/app/components/title-part/title-part.component.ts
@@ -0,0 +1,14 @@
+import {Component, input} from '@angular/core';
+import {IonicModule} from "@ionic/angular";
+
+@Component({
+ selector: 'app-title-part',
+ templateUrl: './title-part.component.html',
+ styleUrls: ['./title-part.component.scss'],
+ imports: [
+ IonicModule
+ ]
+})
+export class TitlePartComponent {
+ textInfo = input.required();
+}
diff --git a/src/app/pages/ranking/ranking.component.html b/src/app/pages/ranking/ranking.component.html
index 975b042..9d22535 100644
--- a/src/app/pages/ranking/ranking.component.html
+++ b/src/app/pages/ranking/ranking.component.html
@@ -1,6 +1,11 @@
-
- Classement général
+
+
+
+ Classement général
+
+
+
@for (user of users(); track user.id; let i = $index) {
diff --git a/src/app/pages/ranking/ranking.component.ts b/src/app/pages/ranking/ranking.component.ts
index 8e0afb8..eb3b1f3 100644
--- a/src/app/pages/ranking/ranking.component.ts
+++ b/src/app/pages/ranking/ranking.component.ts
@@ -26,7 +26,7 @@ export class RankingComponent implements OnInit {
const loading = await this.loadCtrl.create({
message: 'Chargement...',
duration: 1000,
- spinner: 'circles'
+ spinner: 'lines-sharp-small'
});
await loading.present();
diff --git a/src/app/pages/social/social.component.html b/src/app/pages/social/social.component.html
index e69de29..619bed8 100644
--- a/src/app/pages/social/social.component.html
+++ b/src/app/pages/social/social.component.html
@@ -0,0 +1,16 @@
+
+
+
+ Mes amis
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/social/social.component.ts b/src/app/pages/social/social.component.ts
index a96c22d..2eb53dc 100644
--- a/src/app/pages/social/social.component.ts
+++ b/src/app/pages/social/social.component.ts
@@ -1,10 +1,19 @@
import {Component} from '@angular/core';
+import {TitlePartComponent} from "../../components/title-part/title-part.component";
+import {IonicModule} from "@ionic/angular";
+import {FriendRequestComponent} from "../../components/friend-request/friend-request.component";
+import {FriendsListComponent} from "../../components/friends/friends-list.component";
@Component({
selector: 'app-social',
templateUrl: './social.component.html',
styleUrls: ['./social.component.scss'],
- imports: []
+ imports: [
+ TitlePartComponent,
+ IonicModule,
+ FriendRequestComponent,
+ FriendsListComponent
+ ]
})
export class SocialComponent {
diff --git a/src/app/services/api/.openapi-generator/FILES b/src/app/services/api/.openapi-generator/FILES
index a7fd498..ab03aca 100644
--- a/src/app/services/api/.openapi-generator/FILES
+++ b/src/app/services/api/.openapi-generator/FILES
@@ -17,12 +17,10 @@ configuration.ts
encoder.ts
git_push.sh
index.ts
-model/accept-friend-request.ts
model/create-group-dto.ts
model/create-message-dto.ts
model/create-user-dto.ts
model/create-user-group-dto.ts
-model/delete-friend-request.ts
model/error-response.ts
model/get-achievement-dto.ts
model/get-designation-dto.ts
@@ -47,7 +45,6 @@ model/patch-user-designation-dto.ts
model/patch-user-password-dto.ts
model/random-challenge-proof-request.ts
model/refresh-token-dto.ts
-model/reject-friend-request.ts
model/update-user-dto.ts
model/user-proof-request.ts
model/user-vote-request.ts
diff --git a/src/app/services/api/README.md b/src/app/services/api/README.md
index f9e031a..c2ba935 100644
--- a/src/app/services/api/README.md
+++ b/src/app/services/api/README.md
@@ -59,9 +59,9 @@ In your Angular project:
```typescript
-import {ApplicationConfig} from '@angular/core';
-import {provideHttpClient} from '@angular/common/http';
-import {provideApi} from '';
+import { ApplicationConfig } from '@angular/core';
+import { provideHttpClient } from '@angular/common/http';
+import { provideApi } from '';
export const appConfig: ApplicationConfig = {
providers: [
@@ -73,19 +73,17 @@ export const appConfig: ApplicationConfig = {
```
**NOTE**
-If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you
-can still import an Angular module:
-
+If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
```typescript
-import {ApiModule} from '';
+import { ApiModule } from '';
```
If different from the generated base path, during app bootstrap, you can provide the base path to your service.
```typescript
-import {ApplicationConfig} from '@angular/core';
-import {provideHttpClient} from '@angular/common/http';
-import {provideApi} from '';
+import { ApplicationConfig } from '@angular/core';
+import { provideHttpClient } from '@angular/common/http';
+import { provideApi } from '';
export const appConfig: ApplicationConfig = {
providers: [
@@ -98,9 +96,9 @@ export const appConfig: ApplicationConfig = {
```typescript
// with a custom configuration
-import {ApplicationConfig} from '@angular/core';
-import {provideHttpClient} from '@angular/common/http';
-import {provideApi} from '';
+import { ApplicationConfig } from '@angular/core';
+import { provideHttpClient } from '@angular/common/http';
+import { provideApi } from '';
export const appConfig: ApplicationConfig = {
providers: [
@@ -117,9 +115,9 @@ export const appConfig: ApplicationConfig = {
```typescript
// with factory building a custom configuration
-import {ApplicationConfig} from '@angular/core';
-import {provideHttpClient} from '@angular/common/http';
-import {provideApi, Configuration} from '';
+import { ApplicationConfig } from '@angular/core';
+import { provideHttpClient } from '@angular/common/http';
+import { provideApi, Configuration } from '';
export const appConfig: ApplicationConfig = {
providers: [
@@ -128,10 +126,10 @@ export const appConfig: ApplicationConfig = {
{
provide: Configuration,
useFactory: (authService: AuthService) => new Configuration({
- basePath: 'http://localhost:9999',
- withCredentials: true,
- username: authService.getUsername(),
- password: authService.getPassword(),
+ basePath: 'http://localhost:9999',
+ withCredentials: true,
+ username: authService.getUsername(),
+ password: authService.getPassword(),
}),
deps: [AuthService],
multi: false
@@ -147,10 +145,10 @@ you can create an alias name when importing the modules
in order to avoid naming conflicts:
```typescript
-import {provideApi as provideUserApi} from 'my-user-api-path';
-import {provideApi as provideAdminApi} from 'my-admin-api-path';
-import {HttpClientModule} from '@angular/common/http';
-import {environment} from '../environments/environment';
+import { provideApi as provideUserApi } from 'my-user-api-path';
+import { provideApi as provideAdminApi } from 'my-admin-api-path';
+import { HttpClientModule } from '@angular/common/http';
+import { environment } from '../environments/environment';
export const appConfig: ApplicationConfig = {
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
-
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
-
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
diff --git a/src/app/services/api/api.base.service.ts b/src/app/services/api/api.base.service.ts
index b90fbe9..ca18710 100644
--- a/src/app/services/api/api.base.service.ts
+++ b/src/app/services/api/api.base.service.ts
@@ -1,16 +1,16 @@
/**
* BeReadyBackend
*
- *
+ *
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
-import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
-import {CustomHttpParameterCodec} from './encoder';
-import {Configuration} from './configuration';
-import {OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params';
+import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
+import { CustomHttpParameterCodec } from './encoder';
+import { Configuration } from './configuration';
+import { OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params';
export class BaseService {
protected basePath = 'http://localhost:5235';
@@ -18,7 +18,7 @@ export class BaseService {
public configuration: Configuration;
public encoder: HttpParameterCodec;
- constructor(basePath?: string | string[], configuration?: Configuration) {
+ constructor(basePath?: string|string[], configuration?: Configuration) {
this.configuration = configuration || new Configuration();
if (typeof this.configuration.basePath !== 'string') {
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
diff --git a/src/app/services/api/api.module.ts b/src/app/services/api/api.module.ts
index 68ca8d7..58d341f 100644
--- a/src/app/services/api/api.module.ts
+++ b/src/app/services/api/api.module.ts
@@ -1,30 +1,30 @@
-import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core';
-import {Configuration} from './configuration';
-import {HttpClient} from '@angular/common/http';
+import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
+import { Configuration } from './configuration';
+import { HttpClient } from '@angular/common/http';
@NgModule({
- imports: [],
- declarations: [],
- exports: [],
- providers: []
+ imports: [],
+ declarations: [],
+ exports: [],
+ providers: []
})
export class ApiModule {
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders
{
return {
ngModule: ApiModule,
- providers: [{provide: Configuration, useFactory: configurationFactory}]
+ providers: [ { provide: Configuration, useFactory: configurationFactory } ]
};
}
- constructor(@Optional() @SkipSelf() parentModule: ApiModule,
- @Optional() http: HttpClient) {
+ constructor( @Optional() @SkipSelf() parentModule: ApiModule,
+ @Optional() http: HttpClient) {
if (parentModule) {
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
}
if (!http) {
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
- 'See also https://github.com/angular/angular/issues/20575');
+ 'See also https://github.com/angular/angular/issues/20575');
}
}
}
diff --git a/src/app/services/api/api/achievements.service.ts b/src/app/services/api/api/achievements.service.ts
index 5f56895..7b77108 100644
--- a/src/app/services/api/api/achievements.service.ts
+++ b/src/app/services/api/api/achievements.service.ts
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
- *
+ *
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,31 +9,31 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {ErrorResponse} from '../model/error-response';
+import { ErrorResponse } from '../model/error-response';
// @ts-ignore
-import {GetAchievementDto} from '../model/get-achievement-dto';
+import { GetAchievementDto } from '../model/get-achievement-dto';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class AchievementsService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
@@ -43,26 +43,10 @@ export class AchievementsService extends BaseService {
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
let localVarHeaders = this.defaultHeaders;
@@ -93,15 +77,15 @@ export class AchievementsService extends BaseService {
}
let localVarPath = `/API/Achievements`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -113,26 +97,10 @@ export class AchievementsService extends BaseService {
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
let localVarHeaders = this.defaultHeaders;
@@ -163,15 +131,15 @@ export class AchievementsService extends BaseService {
}
let localVarPath = `/API/Achievements/Locked/Users`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -183,26 +151,10 @@ export class AchievementsService extends BaseService {
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
let localVarHeaders = this.defaultHeaders;
@@ -233,15 +185,15 @@ export class AchievementsService extends BaseService {
}
let localVarPath = `/API/Achievements/Users`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -249,31 +201,15 @@ export class AchievementsService extends BaseService {
/**
* @endpoint post /API/Achievements/{achievementId}/Users
- * @param achievementId
+ * @param achievementId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable {
if (achievementId === null || achievementId === undefined) {
throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.');
}
@@ -306,24 +242,16 @@ export class AchievementsService extends BaseService {
}
}
- let localVarPath = `/API/Achievements/${this.configuration.encodeParam({
- name: "achievementId",
- value: achievementId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Users`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Achievements/${this.configuration.encodeParam({name: "achievementId", value: achievementId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
diff --git a/src/app/services/api/api/api.ts b/src/app/services/api/api/api.ts
index 3f2adfb..43f3297 100644
--- a/src/app/services/api/api/api.ts
+++ b/src/app/services/api/api/api.ts
@@ -1,28 +1,19 @@
export * from './achievements.service';
-import {AchievementsService} from './achievements.service';
-
+import { AchievementsService } from './achievements.service';
export * from './auth.service';
-import {AuthService} from './auth.service';
-
+import { AuthService } from './auth.service';
export * from './designations.service';
-import {DesignationsService} from './designations.service';
-
+import { DesignationsService } from './designations.service';
export * from './friends.service';
-import {FriendsService} from './friends.service';
-
+import { FriendsService } from './friends.service';
export * from './groups.service';
-import {GroupsService} from './groups.service';
-
+import { GroupsService } from './groups.service';
export * from './messages.service';
-import {MessagesService} from './messages.service';
-
+import { MessagesService } from './messages.service';
export * from './overallranking.service';
-import {OverallrankingService} from './overallranking.service';
-
+import { OverallrankingService } from './overallranking.service';
export * from './randomchallenges.service';
-import {RandomchallengesService} from './randomchallenges.service';
-
+import { RandomchallengesService } from './randomchallenges.service';
export * from './users.service';
-import {UsersService} from './users.service';
-
+import { UsersService } from './users.service';
export const APIS = [AchievementsService, AuthService, DesignationsService, FriendsService, GroupsService, MessagesService, OverallrankingService, RandomchallengesService, UsersService];
diff --git a/src/app/services/api/api/auth.service.ts b/src/app/services/api/api/auth.service.ts
index 507c8aa..1a1435c 100644
--- a/src/app/services/api/api/auth.service.ts
+++ b/src/app/services/api/api/auth.service.ts
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
- *
+ *
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,65 +9,49 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {ErrorResponse} from '../model/error-response';
+import { ErrorResponse } from '../model/error-response';
// @ts-ignore
-import {GetTokenDto} from '../model/get-token-dto';
+import { GetTokenDto } from '../model/get-token-dto';
// @ts-ignore
-import {LoginDto} from '../model/login-dto';
+import { LoginDto } from '../model/login-dto';
// @ts-ignore
-import {RefreshTokenDto} from '../model/refresh-token-dto';
+import { RefreshTokenDto } from '../model/refresh-token-dto';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class AuthService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* @endpoint post /API/Auth/Login
- * @param loginDto
+ * @param loginDto
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable {
if (loginDto === null || loginDto === undefined) {
throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.');
}
@@ -108,16 +92,16 @@ export class AuthService extends BaseService {
}
let localVarPath = `/API/Auth/Login`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: loginDto,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -125,31 +109,15 @@ export class AuthService extends BaseService {
/**
* @endpoint post /API/Auth/RefreshToken
- * @param refreshTokenDto
+ * @param refreshTokenDto
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json' | 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable {
if (refreshTokenDto === null || refreshTokenDto === undefined) {
throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.');
}
@@ -190,16 +158,16 @@ export class AuthService extends BaseService {
}
let localVarPath = `/API/Auth/RefreshToken`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: refreshTokenDto,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
diff --git a/src/app/services/api/api/designations.service.ts b/src/app/services/api/api/designations.service.ts
index 26f8137..ac5e332 100644
--- a/src/app/services/api/api/designations.service.ts
+++ b/src/app/services/api/api/designations.service.ts
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
- *
+ *
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,29 +9,29 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {GetDesignationDto} from '../model/get-designation-dto';
+import { GetDesignationDto } from '../model/get-designation-dto';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class DesignationsService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
@@ -41,26 +41,10 @@ export class DesignationsService extends BaseService {
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
let localVarHeaders = this.defaultHeaders;
@@ -91,15 +75,15 @@ export class DesignationsService extends BaseService {
}
let localVarPath = `/API/Designations`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
diff --git a/src/app/services/api/api/friends.service.ts b/src/app/services/api/api/friends.service.ts
index 0d21ebd..fe0c0f8 100644
--- a/src/app/services/api/api/friends.service.ts
+++ b/src/app/services/api/api/friends.service.ts
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
- *
+ *
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,81 +9,56 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {AcceptFriendRequest} from '../model/accept-friend-request';
+import { GetFriendDto } from '../model/get-friend-dto';
// @ts-ignore
-import {DeleteFriendRequest} from '../model/delete-friend-request';
-// @ts-ignore
-import {GetFriendDto} from '../model/get-friend-dto';
-// @ts-ignore
-import {GetFriendRequestDto} from '../model/get-friend-request-dto';
-// @ts-ignore
-import {RejectFriendRequest} from '../model/reject-friend-request';
+import { GetFriendRequestDto } from '../model/get-friend-request-dto';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class FriendsService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
- * @endpoint put /API/Friends/{@FriendId}/Request
- * @param friendId
- * @param acceptFriendRequest
+ * @endpoint put /API/Friends/{friendId}/Request
+ * @param friendId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public acceptFriendRequestEndpoint(friendId: string, acceptFriendRequest: AcceptFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.');
}
- if (acceptFriendRequest === null || acceptFriendRequest === undefined) {
- throw new Error('Required parameter acceptFriendRequest was null or undefined when calling acceptFriendRequestEndpoint.');
- }
let localVarHeaders = this.defaultHeaders;
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -93,15 +68,6 @@ export class FriendsService extends BaseService {
const localVarTransferCache: boolean = options?.transferCache ?? true;
- // to determine the Content-Type header
- const consumes: string[] = [
- 'application/json'
- ];
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
- if (httpContentTypeSelected !== undefined) {
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
- }
-
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -113,59 +79,34 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends/${this.configuration.encodeParam({
- name: "friendId",
- value: friendId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "string",
- dataFormat: undefined
- })}/Request`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('put', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
- body: acceptFriendRequest,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
- * @endpoint delete /API/Friends
- * @param deleteFriendRequest
+ * @endpoint delete /API/Friends/{friendId}
+ * @param friendId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public deleteFriendEndpoint(deleteFriendRequest: DeleteFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
- if (deleteFriendRequest === null || deleteFriendRequest === undefined) {
- throw new Error('Required parameter deleteFriendRequest was null or undefined when calling deleteFriendEndpoint.');
+ public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
+ if (friendId === null || friendId === undefined) {
+ throw new Error('Required parameter friendId was null or undefined when calling deleteFriendEndpoint.');
}
let localVarHeaders = this.defaultHeaders;
@@ -173,7 +114,8 @@ export class FriendsService extends BaseService {
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -183,15 +125,6 @@ export class FriendsService extends BaseService {
const localVarTransferCache: boolean = options?.transferCache ?? true;
- // to determine the Content-Type header
- const consumes: string[] = [
- 'application/json'
- ];
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
- if (httpContentTypeSelected !== undefined) {
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
- }
-
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -203,17 +136,16 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
- body: deleteFriendRequest,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -225,26 +157,10 @@ export class FriendsService extends BaseService {
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
let localVarHeaders = this.defaultHeaders;
@@ -275,15 +191,15 @@ export class FriendsService extends BaseService {
}
let localVarPath = `/API/Friends/Requests`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -295,26 +211,10 @@ export class FriendsService extends BaseService {
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
let localVarHeaders = this.defaultHeaders;
@@ -345,61 +245,42 @@ export class FriendsService extends BaseService {
}
let localVarPath = `/API/Friends`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
}
/**
- * @endpoint delete /API/Friends/{@FriendId}/Request
- * @param friendId
- * @param rejectFriendRequest
+ * @endpoint delete /API/Friends/{friendId}/Request
+ * @param friendId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public rejectFriendRequestEndpoint(friendId: string, rejectFriendRequest: RejectFriendRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.');
}
- if (rejectFriendRequest === null || rejectFriendRequest === undefined) {
- throw new Error('Required parameter rejectFriendRequest was null or undefined when calling rejectFriendRequestEndpoint.');
- }
let localVarHeaders = this.defaultHeaders;
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -409,15 +290,6 @@ export class FriendsService extends BaseService {
const localVarTransferCache: boolean = options?.transferCache ?? true;
- // to determine the Content-Type header
- const consumes: string[] = [
- 'application/json'
- ];
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
- if (httpContentTypeSelected !== undefined) {
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
- }
-
let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -429,25 +301,16 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends/${this.configuration.encodeParam({
- name: "friendId",
- value: friendId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "string",
- dataFormat: undefined
- })}/Request`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
- body: rejectFriendRequest,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -455,31 +318,15 @@ export class FriendsService extends BaseService {
/**
* @endpoint post /API/Friends/{friendId}
- * @param friendId
+ * @param friendId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (friendId === null || friendId === undefined) {
throw new Error('Required parameter friendId was null or undefined when calling sendFriendRequestEndpoint.');
}
@@ -489,7 +336,8 @@ export class FriendsService extends BaseService {
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -510,24 +358,16 @@ export class FriendsService extends BaseService {
}
}
- let localVarPath = `/API/Friends/${this.configuration.encodeParam({
- name: "friendId",
- value: friendId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
diff --git a/src/app/services/api/api/groups.service.ts b/src/app/services/api/api/groups.service.ts
index 3a28fe9..34479a4 100644
--- a/src/app/services/api/api/groups.service.ts
+++ b/src/app/services/api/api/groups.service.ts
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
- *
+ *
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,76 +9,60 @@
*/
/* tslint:disable:no-unused-variable member-ordering */
-import {Inject, Injectable, Optional} from '@angular/core';
-import {
- HttpClient, HttpHeaders, HttpParams,
- HttpResponse, HttpEvent, HttpContext
-} from '@angular/common/http';
-import {Observable} from 'rxjs';
-import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
+import { Inject, Injectable, Optional } from '@angular/core';
+import { HttpClient, HttpHeaders, HttpParams,
+ HttpResponse, HttpEvent, HttpContext
+ } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
// @ts-ignore
-import {CreateGroupDto} from '../model/create-group-dto';
+import { CreateGroupDto } from '../model/create-group-dto';
// @ts-ignore
-import {ErrorResponse} from '../model/error-response';
+import { ErrorResponse } from '../model/error-response';
// @ts-ignore
-import {GetGroupDetailsDto} from '../model/get-group-details-dto';
+import { GetGroupDetailsDto } from '../model/get-group-details-dto';
// @ts-ignore
-import {GetGroupDto} from '../model/get-group-dto';
+import { GetGroupDto } from '../model/get-group-dto';
// @ts-ignore
-import {GetGroupRankingDto} from '../model/get-group-ranking-dto';
+import { GetGroupRankingDto } from '../model/get-group-ranking-dto';
// @ts-ignore
-import {GetProofDto} from '../model/get-proof-dto';
+import { GetProofDto } from '../model/get-proof-dto';
// @ts-ignore
-import {GetUserGroupDto} from '../model/get-user-group-dto';
+import { GetUserGroupDto } from '../model/get-user-group-dto';
// @ts-ignore
-import {UserProofRequest} from '../model/user-proof-request';
+import { UserProofRequest } from '../model/user-proof-request';
// @ts-ignore
-import {UserVoteRequest} from '../model/user-vote-request';
+import { UserVoteRequest } from '../model/user-vote-request';
// @ts-ignore
-import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
-import {Configuration} from '../configuration';
-import {BaseService} from '../api.base.service';
+import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
+import { Configuration } from '../configuration';
+import { BaseService } from '../api.base.service';
+
@Injectable({
- providedIn: 'root'
+ providedIn: 'root'
})
export class GroupsService extends BaseService {
- constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
super(basePath, configuration);
}
/**
* @endpoint post /API/Groups/{groupId}/Users/{userId}
- * @param groupId
- * @param userId
+ * @param groupId
+ * @param userId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling addUserToGroupEndpoint.');
}
@@ -91,7 +75,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -112,32 +97,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "groupId",
- value: groupId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Users/${this.configuration.encodeParam({
- name: "userId",
- value: userId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -145,31 +114,15 @@ export class GroupsService extends BaseService {
/**
* @endpoint post /API/Groups
- * @param createGroupDto
+ * @param createGroupDto
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/problem+json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable {
if (createGroupDto === null || createGroupDto === undefined) {
throw new Error('Required parameter createGroupDto was null or undefined when calling createGroupEndpoint.');
}
@@ -212,16 +165,16 @@ export class GroupsService extends BaseService {
}
let localVarPath = `/API/Groups`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('post', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: createGroupDto,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -229,31 +182,15 @@ export class GroupsService extends BaseService {
/**
* @endpoint delete /API/Groups/{id}
- * @param id
+ * @param id
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling deleteGroupEndpoint.');
}
@@ -263,7 +200,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -284,24 +222,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "id",
- value: id,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -309,32 +239,16 @@ export class GroupsService extends BaseService {
/**
* @endpoint delete /API/Groups/{groupId}/Users/{userId}
- * @param groupId
- * @param userId
+ * @param groupId
+ * @param userId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling deleteUserFromGroupEndpoint.');
}
@@ -347,7 +261,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -368,32 +283,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "groupId",
- value: groupId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Users/${this.configuration.encodeParam({
- name: "userId",
- value: userId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('delete', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -401,31 +300,15 @@ export class GroupsService extends BaseService {
/**
* @endpoint get /API/Groups/{id}/Users
- * @param id
+ * @param id
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getAllGroupUsersEndpoint.');
}
@@ -458,24 +341,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "id",
- value: id,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Users`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -487,26 +362,10 @@ export class GroupsService extends BaseService {
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
let localVarHeaders = this.defaultHeaders;
@@ -537,15 +396,15 @@ export class GroupsService extends BaseService {
}
let localVarPath = `/API/Groups/Users`;
- const {basePath, withCredentials} = this.configuration;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -553,31 +412,15 @@ export class GroupsService extends BaseService {
/**
* @endpoint get /API/Groups/{id}/Proofs
- * @param id
+ * @param id
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getAllProofsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getAllProofsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllProofsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getAllProofsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getAllProofsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getAllProofsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllProofsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getAllProofsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getAllProofsEndpoint.');
}
@@ -610,24 +453,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "id",
- value: id,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Proofs`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Proofs`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -635,31 +470,15 @@ export class GroupsService extends BaseService {
/**
* @endpoint get /API/Groups/{id}
- * @param id
+ * @param id
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable;
+ public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getGroupDetailsEndpoint.');
}
@@ -692,24 +511,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "id",
- value: id,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -717,31 +528,15 @@ export class GroupsService extends BaseService {
/**
* @endpoint get /API/Groups/{id}/GroupRank
- * @param id
+ * @param id
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public getGroupRankingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public getGroupRankingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getGroupRankingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>>;
- public getGroupRankingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: 'application/json',
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public getGroupRankingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>;
+ public getGroupRankingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getGroupRankingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>;
+ public getGroupRankingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getGroupRankingEndpoint.');
}
@@ -774,24 +569,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "id",
- value: id,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/GroupRank`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/GroupRank`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request>('get', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -799,31 +586,15 @@ export class GroupsService extends BaseService {
/**
* @endpoint patch /API/Groups/{groupId}/Status
- * @param groupId
+ * @param groupId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public patchGroupStatusEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public patchGroupStatusEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public patchGroupStatusEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public patchGroupStatusEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public patchGroupStatusEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public patchGroupStatusEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public patchGroupStatusEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public patchGroupStatusEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling patchGroupStatusEndpoint.');
}
@@ -833,7 +604,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -854,24 +626,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "groupId",
- value: groupId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Status`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Status`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('patch', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -879,32 +643,16 @@ export class GroupsService extends BaseService {
/**
* @endpoint patch /API/Groups/{groupId}/Users/Proof
- * @param groupId
- * @param userProofRequest
+ * @param groupId
+ * @param userProofRequest
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public patchGroupUserProofEndpoint(groupId: number, userProofRequest: UserProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserProofEndpoint.');
}
@@ -917,7 +665,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -947,25 +696,17 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "groupId",
- value: groupId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Users/Proof`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/Proof`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request('patch', `${basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: userProofRequest,
responseType: responseType_,
- ...(withCredentials ? {withCredentials} : {}),
+ ...(withCredentials ? { withCredentials } : {}),
headers: localVarHeaders,
observe: observe,
- ...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
reportProgress: reportProgress
}
);
@@ -973,32 +714,16 @@ export class GroupsService extends BaseService {
/**
* @endpoint patch /API/Groups/{groupId}/Users/{userId}/Role
- * @param groupId
- * @param userId
+ * @param groupId
+ * @param userId
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
* @param reportProgress flag to report request and response progress.
* @param options additional options
*/
- public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable;
- public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable>;
- public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
- httpHeaderAccept?: undefined,
- context?: HttpContext,
- transferCache?: boolean
- }): Observable {
+ public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable;
+ public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>;
+ public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable {
if (groupId === null || groupId === undefined) {
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserRoleEndpoint.');
}
@@ -1011,7 +736,8 @@ export class GroupsService extends BaseService {
// authentication (JWTBearerAuth) required
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
+ ]);
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}
@@ -1032,32 +758,16 @@ export class GroupsService extends BaseService {
}
}
- let localVarPath = `/API/Groups/${this.configuration.encodeParam({
- name: "groupId",
- value: groupId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Users/${this.configuration.encodeParam({
- name: "userId",
- value: userId,
- in: "path",
- style: "simple",
- explode: false,
- dataType: "number",
- dataFormat: "int32"
- })}/Role`;
- const {basePath, withCredentials} = this.configuration;
+ let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Role`;
+ const { basePath, withCredentials } = this.configuration;
return this.httpClient.request