Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 14637d415a | |||
| c8f46f6c8f | |||
| ed3d9bf52e | |||
| b3cae6e3a9 | |||
| a37b45f5b6 | |||
| 036ba39a5f | |||
| ac9d62d284 | |||
| 8f836c6d80 | |||
| e8c308adf8 | |||
| 42116be9a6 | |||
| eee7958bce | |||
| d5584ebf0a | |||
| 6a1ed5abeb |
@@ -38,4 +38,6 @@
|
|||||||
<!-- Permissions -->
|
<!-- Permissions -->
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<uses-permission android:name="android.permission.CAMERA"/>
|
||||||
|
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
Vendored
+1
-4
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright © 2015-2021 the original authors.
|
# Copyright © 2015 the original authors.
|
||||||
#
|
#
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
# you may not use this file except in compliance with the License.
|
# you may not use this file except in compliance with the License.
|
||||||
@@ -114,7 +114,6 @@ case "$( uname )" in #(
|
|||||||
NONSTOP* ) nonstop=true ;;
|
NONSTOP* ) nonstop=true ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CLASSPATH="\\\"\\\""
|
|
||||||
|
|
||||||
|
|
||||||
# Determine the Java command to use to start the JVM.
|
# Determine the Java command to use to start the JVM.
|
||||||
@@ -172,7 +171,6 @@ fi
|
|||||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||||
if "$cygwin" || "$msys" ; then
|
if "$cygwin" || "$msys" ; then
|
||||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
|
||||||
|
|
||||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||||
|
|
||||||
@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|||||||
|
|
||||||
set -- \
|
set -- \
|
||||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||||
-classpath "$CLASSPATH" \
|
|
||||||
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
-2
@@ -70,11 +70,10 @@ goto fail
|
|||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=
|
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<div class="grid grid-cols-5 items-center">
|
<div class="grid grid-cols-5 items-center">
|
||||||
|
|
||||||
<h3 class="col-span-4 text-base font-semibold text-gray-900 m-0">
|
<h3 class="col-span-4 text-base font-semibold text-gray-900 m-0">
|
||||||
{{ data().label }}
|
{{ challenge().label }}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-[11px] text-gray-500 leading-relaxed">{{ data().libelle }}</p>
|
<p class="text-[11px] text-gray-500 leading-relaxed">{{ challenge().libelle }}</p>
|
||||||
|
|
||||||
<div class="grid grid-cols-5 items-center">
|
<div class="grid grid-cols-5 items-center">
|
||||||
<span class="col-span-4 text-[11px] text-gray-500">
|
<span class="col-span-4 text-[11px] text-gray-500">
|
||||||
@@ -41,11 +41,11 @@
|
|||||||
<div class="mt-4 bg-white rounded-2xl shadow-sm p-4 space-y-3">
|
<div class="mt-4 bg-white rounded-2xl shadow-sm p-4 space-y-3">
|
||||||
<div class="grid grid-cols-5 items-center">
|
<div class="grid grid-cols-5 items-center">
|
||||||
<h3 class="col-span-4 text-base font-semibold text-gray-900 m-0">
|
<h3 class="col-span-4 text-base font-semibold text-gray-900 m-0">
|
||||||
{{ data().label }}
|
{{ challenge().label }}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="text-[11px] text-gray-500 leading-relaxed">{{ data().libelle }}</p>
|
<p class="text-[11px] text-gray-500 leading-relaxed">{{ challenge().libelle }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<app-tooltip title="Aucun malus si non réalisé"
|
<app-tooltip title="Aucun malus si non réalisé"
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
<app-proof-form #proofForm></app-proof-form>
|
<app-proof-form #proofForm></app-proof-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-button expand="block" (click)="sendProof(data().id)">Soumettre ma preuve</ion-button>
|
<ion-button expand="block" (click)="sendProof(challenge().id)">Soumettre ma preuve</ion-button>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
import {Component, inject, input, signal, viewChild} from '@angular/core';
|
import {Component, inject, input, viewChild} from '@angular/core';
|
||||||
import {IonicModule, LoadingController, ToastController} from "@ionic/angular";
|
import {IonicModule, LoadingController, ToastController} from "@ionic/angular";
|
||||||
import {GetRandomChallengeDto, RandomchallengesService} from "../../services/api";
|
import {GetRandomChallengeDto, RandomchallengesService} from "../../services/api";
|
||||||
import {firstValueFrom} from "rxjs";
|
import {firstValueFrom} from "rxjs";
|
||||||
import {TooltipComponent} from "../tooltip/tooltip.component";
|
import {TooltipComponent} from "../tooltip/tooltip.component";
|
||||||
import {ProofFormComponent} from "../proof-form/proof-form.component";
|
import {ProofFormComponent} from "../proof-form/proof-form.component";
|
||||||
import {SignOnFormComponent} from "../sign-on-form/sign-on-form.component";
|
import {addIcons} from "ionicons";
|
||||||
|
import {checkmarkCircleOutline} from "ionicons/icons";
|
||||||
|
|
||||||
|
addIcons({
|
||||||
|
"checkmark-circle": checkmarkCircleOutline,
|
||||||
|
})
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-challenge-card',
|
selector: 'app-challenge-card',
|
||||||
@@ -21,8 +26,7 @@ export class ChallengeCardComponent {
|
|||||||
private toastCtrl = inject(ToastController);
|
private toastCtrl = inject(ToastController);
|
||||||
private loadCtrl = inject(LoadingController);
|
private loadCtrl = inject(LoadingController);
|
||||||
|
|
||||||
data = input.required<GetRandomChallengeDto>();
|
challenge = input.required<GetRandomChallengeDto>();
|
||||||
|
|
||||||
proof = viewChild<ProofFormComponent>('proofForm');
|
proof = viewChild<ProofFormComponent>('proofForm');
|
||||||
|
|
||||||
isModalOpen = false;
|
isModalOpen = false;
|
||||||
@@ -60,10 +64,10 @@ export class ChallengeCardComponent {
|
|||||||
color: 'success'
|
color: 'success'
|
||||||
});
|
});
|
||||||
await toast.present();
|
await toast.present();
|
||||||
} catch {
|
} catch (e) {
|
||||||
this.isModalOpen = false;
|
this.isModalOpen = false;
|
||||||
const toast = await this.toastCtrl.create({
|
const toast = await this.toastCtrl.create({
|
||||||
message: 'Tu as déjà déposé une preuve pour ce défi',
|
message: e.error ?? "Impossible de déposer une preuve",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
color: 'danger'
|
color: 'danger'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
<p class="m-0 mt-1 text-xs text-gray-500">{{ challenge.challengeDescription }}</p>
|
<p class="m-0 mt-1 text-xs text-gray-500">{{ challenge.challengeDescription }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right shrink-0">
|
<div class="text-right shrink-0">
|
||||||
<p class="m-0 text-xs text-gray-500">{{ converterHours(challenge.challengeDuration) }}</p>
|
|
||||||
<p class="m-0 mt-1 text-xs text-gray-400">{{ challenge.challengeStartDate }}</p>
|
<p class="m-0 mt-1 text-xs text-gray-400">{{ challenge.challengeStartDate }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -12,28 +12,4 @@ import {GetUserChallengeDto} from "../../services/api";
|
|||||||
})
|
})
|
||||||
export class ChallengesAccomplishedComponent {
|
export class ChallengesAccomplishedComponent {
|
||||||
userChallenges = input.required<GetUserChallengeDto[]>();
|
userChallenges = input.required<GetUserChallengeDto[]>();
|
||||||
|
|
||||||
converterHours(hours: number) {
|
|
||||||
const day = Math.floor(hours / 24);
|
|
||||||
const week = Math.floor(day / 7);
|
|
||||||
const month = Math.floor(week / 4);
|
|
||||||
const year = Math.floor(month / 12);
|
|
||||||
|
|
||||||
switch (true) {
|
|
||||||
case year > 0:
|
|
||||||
return `${year} an${year > 1 ? 's' : ''}`;
|
|
||||||
|
|
||||||
case month > 0:
|
|
||||||
return `${month} mois`;
|
|
||||||
|
|
||||||
case week > 0:
|
|
||||||
return `${week} semaine${week > 1 ? 's' : ''}`;
|
|
||||||
|
|
||||||
case day > 0:
|
|
||||||
return `${day} jour${day > 1 ? 's' : ''}`;
|
|
||||||
|
|
||||||
default:
|
|
||||||
return `${hours} heure${hours > 1 ? 's' : ''}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@if (friendsRequest().length > 0) {
|
@if (friendsRequest().length) {
|
||||||
<div class="rounded-xl px-5 m-3 bg-white overflow-auto font-mono border-1 border-gray-300">
|
<div class="rounded-xl px-5 m-3 bg-white overflow-auto font-mono border border-gray-300">
|
||||||
<ion-list>
|
<ion-list>
|
||||||
@for (request of friendsRequest(); track request.userId; let i = $index) {
|
@for (request of friendsRequest(); track request.userId; let i = $index) {
|
||||||
@if (i == friendsRequest().length - 1) {
|
@if (i == friendsRequest().length - 1) {
|
||||||
@@ -37,9 +37,15 @@
|
|||||||
</ion-list>
|
</ion-list>
|
||||||
</div>
|
</div>
|
||||||
} @else {
|
} @else {
|
||||||
<div class="flex justify-center items-center p-4">
|
<ion-item lines="none" class="border border-stone-200 rounded-xl m-3" style="--background: #fafaf8;">
|
||||||
<p class="text-center text-sm italic text-gray-500 font-serif">
|
<div class="flex flex-col items-center w-full px-10 py-20 gap-3">
|
||||||
Vous n'avez aucune demande d'ami
|
<div class="w-10 h-10 rounded-full bg-stone-100 border border-stone-200 flex items-center justify-center">
|
||||||
</p>
|
<ion-icon name="people-outline" style="color:#a8a090; font-size:20px;"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-center">
|
||||||
|
<p class="m-0 text-sm font-medium text-stone-400">Ajoutez vos amis</p>
|
||||||
|
<p class="m-0 mt-1 text-xs text-stone-300 leading-relaxed">Vos demandes d'amis apparaîtront ici</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import {Component, inject} from '@angular/core';
|
import {Component, inject} from '@angular/core';
|
||||||
import {IonicModule, LoadingController, ToastController} from "@ionic/angular";
|
import {IonicModule, LoadingController, ToastController} from "@ionic/angular";
|
||||||
import {checkmarkCircleOutline, closeCircleOutline} from 'ionicons/icons';
|
import {checkmarkCircleOutline, closeCircleOutline, peopleOutline} from 'ionicons/icons';
|
||||||
import {addIcons} from "ionicons";
|
import {addIcons} from "ionicons";
|
||||||
import {PipeComponent} from "../pipe/pipe.component";
|
import {PipeComponent} from "../pipe/pipe.component";
|
||||||
import {FriendsService, GetFriendRequestDto} from "../../services/api";
|
import {FriendsService, GetFriendRequestDto} from "../../services/api";
|
||||||
@@ -9,7 +9,8 @@ import {FriendsStateService} from "../../services/friends-state";
|
|||||||
|
|
||||||
addIcons({
|
addIcons({
|
||||||
'check': checkmarkCircleOutline,
|
'check': checkmarkCircleOutline,
|
||||||
'close': closeCircleOutline
|
'close': closeCircleOutline,
|
||||||
|
'people-outline': peopleOutline
|
||||||
});
|
});
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@if (friends().length) {
|
@if (friends().length) {
|
||||||
<div class="rounded-xl px-5 m-3 bg-white font-mono border-1 border-gray-300">
|
<div class="rounded-xl px-5 m-3 bg-white font-mono border border-gray-300">
|
||||||
<ion-list>
|
<ion-list>
|
||||||
@for (friend of friends(); track friend.friendId; let i = $index) {
|
@for (friend of friends(); track friend.friendId; let i = $index) {
|
||||||
@if (i == friends().length - 1) {
|
@if (i == friends().length - 1) {
|
||||||
@@ -35,11 +35,17 @@
|
|||||||
</ion-list>
|
</ion-list>
|
||||||
</div>
|
</div>
|
||||||
} @else {
|
} @else {
|
||||||
<div class="flex justify-center items-center p-4">
|
<ion-item lines="none" class="border border-stone-200 rounded-xl m-3" style="--background: #fafaf8;">
|
||||||
<p class="text-center text-sm italic text-gray-500 font-serif">
|
<div class="flex flex-col items-center w-full px-10 py-20 gap-3">
|
||||||
C'est plus marrant à plusieurs, ajoute des amis !
|
<div class="w-10 h-10 rounded-full bg-stone-100 border border-stone-200 flex items-center justify-center">
|
||||||
</p>
|
<ion-icon name="people" style="color:#a8a090; font-size:20px;"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-center">
|
||||||
|
<p class="m-0 text-sm font-medium text-stone-400">Ajoutez vos amis</p>
|
||||||
|
<p class="m-0 mt-1 text-xs text-stone-300 leading-relaxed">Vos amis apparaîtront ici</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
}
|
}
|
||||||
|
|
||||||
<ion-modal [isOpen]="isModalOpen">
|
<ion-modal [isOpen]="isModalOpen">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {Component, inject, OnInit, signal} from '@angular/core';
|
import {Component, inject, signal} from '@angular/core';
|
||||||
import {IonicModule, LoadingController, ToastController} from "@ionic/angular";
|
import {IonicModule, LoadingController, ToastController} from "@ionic/angular";
|
||||||
import {closeCircleOutline} from 'ionicons/icons';
|
import {closeCircleOutline, peopleOutline} from 'ionicons/icons';
|
||||||
import {addIcons} from "ionicons";
|
import {addIcons} from "ionicons";
|
||||||
import {FriendsService, GetUserDto, UsersService} from "../../services/api";
|
import {FriendsService, GetUserDto, UsersService} from "../../services/api";
|
||||||
import {firstValueFrom} from "rxjs";
|
import {firstValueFrom} from "rxjs";
|
||||||
@@ -9,6 +9,7 @@ import {GenericUserInfoComponent} from "../generic-user-info/generic-user-info.c
|
|||||||
|
|
||||||
addIcons({
|
addIcons({
|
||||||
'close': closeCircleOutline,
|
'close': closeCircleOutline,
|
||||||
|
'people': peopleOutline
|
||||||
});
|
});
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<div class="bg-white rounded-lg p-2 shadow-sm border border-gray-200 overflow-scroll max-h-full">
|
<div class="bg-white rounded-lg p-2 shadow-sm border border-gray-200 overflow-scroll max-h-full">
|
||||||
<div class="grid grid-cols-4 gap-3">
|
<div class="grid grid-cols-4 gap-3">
|
||||||
@for (p of proofs(); track p) {
|
@for (p of proofs(); track p) {
|
||||||
<img [src]="'data:image/jpeg;base64,' + p.proof"
|
<img [src]="p.proof"
|
||||||
class="w-20 h-20 object-cover"
|
class="w-20 h-20 object-cover"
|
||||||
alt=""
|
alt=""
|
||||||
(click)="openProof(p.proof)"
|
(click)="openProof(p.proof)"
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
<ion-icon name="close-circle-outline"></ion-icon>
|
<ion-icon name="close-circle-outline"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<img [src]="'data:image/jpeg;base64,' + selectedProof()"
|
<img [src]="selectedProof()"
|
||||||
class="w-[90%] h-[90%] object-cover rounded-md mt-10"
|
class="w-[90%] h-[90%] object-cover rounded-md mt-10"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -0,0 +1,80 @@
|
|||||||
|
<ion-segment>
|
||||||
|
<ion-segment-button value="first" content-id="global">
|
||||||
|
<ion-label>Général</ion-label>
|
||||||
|
</ion-segment-button>
|
||||||
|
<ion-segment-button value="second" content-id="friends">
|
||||||
|
<ion-label>Amis</ion-label>
|
||||||
|
</ion-segment-button>
|
||||||
|
</ion-segment>
|
||||||
|
<ion-segment-view>
|
||||||
|
<ion-segment-content id="global">
|
||||||
|
@for (post of localPosts(); track post.id) {
|
||||||
|
<ion-item lines="full">
|
||||||
|
<div class="mt-2">
|
||||||
|
<div class="flex items-center gap-2 p-3">
|
||||||
|
<div class="w-8 h-8 rounded-full flex items-center justify-center text-xs bg-teal-100 text-teal-700 max-w-xs">
|
||||||
|
{{ post.username.substring(0, 2) }}
|
||||||
|
</div>
|
||||||
|
<span class="text-lg font-mono ml-2">{{ post.username }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="aspect-square overflow-hidden p-1">
|
||||||
|
<img [src]="post.proof"
|
||||||
|
alt=""
|
||||||
|
class="w-full h-full object-cover"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="px-3 py-3">
|
||||||
|
<div class="flex items-center gap-2 mb-1">
|
||||||
|
<button class="flex items-center p-0 bg-transparent border-none cursor-pointer"
|
||||||
|
(click)="likePost(post.id)">
|
||||||
|
@if (post.isLiked) {
|
||||||
|
<ion-icon name="heart" class="text-red-700 text-2xl"></ion-icon>
|
||||||
|
} @else {
|
||||||
|
<ion-icon name="heart-outline" class="text-gray-500 text-2xl"></ion-icon>
|
||||||
|
}
|
||||||
|
</button>
|
||||||
|
<span class="text-xs text-gray-400">{{ post.likes }} Likes</span>
|
||||||
|
</div>
|
||||||
|
<p class="text-sm text-gray-500 leading-snug italic">{{ post.libelle }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
|
}
|
||||||
|
</ion-segment-content>
|
||||||
|
<ion-segment-content id="friends">
|
||||||
|
@for (post of postsFriends(); track post.id) {
|
||||||
|
<ion-item lines="full">
|
||||||
|
<div class="mt-2">
|
||||||
|
<div class="flex items-center gap-2 p-3">
|
||||||
|
<div class="w-8 h-8 rounded-full flex items-center justify-center text-xs bg-teal-100 text-teal-700 max-w-xs">
|
||||||
|
{{ post.username.substring(0, 2) }}
|
||||||
|
</div>
|
||||||
|
<span class="text-lg font-mono ml-2">{{ post.username }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="aspect-square overflow-hidden p-1">
|
||||||
|
<img [src]="post.proof"
|
||||||
|
alt=""
|
||||||
|
class="w-full h-full object-cover"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="px-3 py-3">
|
||||||
|
<div class="flex items-center gap-2 mb-1">
|
||||||
|
<button class="flex items-center p-0 bg-transparent border-none cursor-pointer"
|
||||||
|
(click)="likePost(post.id)">
|
||||||
|
@if (post.isLiked) {
|
||||||
|
<ion-icon name="heart" class="text-red-700 text-2xl"></ion-icon>
|
||||||
|
} @else {
|
||||||
|
<ion-icon name="heart-outline" class="text-gray-500 text-2xl"></ion-icon>
|
||||||
|
}
|
||||||
|
</button>
|
||||||
|
<span class="text-xs text-gray-400">{{ post.likes }} Likes</span>
|
||||||
|
</div>
|
||||||
|
<p class="text-sm text-gray-500 leading-snug italic">{{ post.libelle }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
|
}
|
||||||
|
</ion-segment-content>
|
||||||
|
</ion-segment-view>
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
import {Component, inject, input, OnInit, signal} from '@angular/core';
|
||||||
|
import {FriendsService, GetFriendDto, GetPostDto, PostsService} from "../../services/api";
|
||||||
|
import {firstValueFrom} from "rxjs";
|
||||||
|
import {IonicModule, LoadingController, ToastController} from "@ionic/angular";
|
||||||
|
import {heart, heartOutline} from 'ionicons/icons';
|
||||||
|
import {addIcons} from "ionicons";
|
||||||
|
|
||||||
|
addIcons({
|
||||||
|
"heart": heart,
|
||||||
|
"heartOutline": heartOutline,
|
||||||
|
});
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-post',
|
||||||
|
templateUrl: './post.component.html',
|
||||||
|
styleUrls: ['./post.component.scss'],
|
||||||
|
imports: [
|
||||||
|
IonicModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class PostComponent implements OnInit {
|
||||||
|
private postsService = inject(PostsService);
|
||||||
|
private friendsService = inject(FriendsService);
|
||||||
|
private loadCtrl = inject(LoadingController);
|
||||||
|
private toastCtrl = inject(ToastController);
|
||||||
|
|
||||||
|
friends = signal<GetFriendDto[]>([]);
|
||||||
|
|
||||||
|
posts = input.required<GetPostDto[]>();
|
||||||
|
localPosts = signal<GetPostDto[]>([]);
|
||||||
|
postsFriends = signal<GetPostDto[]>([]);
|
||||||
|
|
||||||
|
async ngOnInit() {
|
||||||
|
const loading = await this.loadCtrl.create({
|
||||||
|
message: 'Chargement...',
|
||||||
|
spinner: 'lines-sharp-small'
|
||||||
|
});
|
||||||
|
await loading.present();
|
||||||
|
|
||||||
|
this.localPosts.set(this.posts());
|
||||||
|
|
||||||
|
try {
|
||||||
|
const friends = await firstValueFrom(this.friendsService.getAllFriendsEndpoint());
|
||||||
|
this.friends.set(friends);
|
||||||
|
this.postsFriends.set(this.localPosts().filter(post => this.friends().map(x => x.friendId).includes(post.userId)));
|
||||||
|
} catch {
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Erreur lors du chargement des amis.',
|
||||||
|
duration: 2000,
|
||||||
|
color: 'danger'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
}
|
||||||
|
await loading.dismiss();
|
||||||
|
}
|
||||||
|
|
||||||
|
async likePost(postId: number) {
|
||||||
|
this.localPosts.update(x => x.map(x => x.id != postId ? x : {
|
||||||
|
...x,
|
||||||
|
likes: x.isLiked ? x.likes - 1 : x.likes + 1,
|
||||||
|
isLiked: !x.isLiked
|
||||||
|
}));
|
||||||
|
|
||||||
|
try {
|
||||||
|
await firstValueFrom(this.postsService.patchLikeEndpoint(postId));
|
||||||
|
this.postsFriends.set(this.localPosts());
|
||||||
|
} catch {
|
||||||
|
this.localPosts.update(x => x.map(x => x.id != postId ? x : {
|
||||||
|
...x,
|
||||||
|
likes: x.isLiked ? x.likes + 1 : x.likes - 1,
|
||||||
|
isLiked: !x.isLiked
|
||||||
|
}));
|
||||||
|
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Impossible d\'aimer ce contenu',
|
||||||
|
duration: 2000,
|
||||||
|
color: 'danger'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -90,9 +90,9 @@ export class ProfilFormComponent implements OnInit {
|
|||||||
|
|
||||||
await loading2.dismiss();
|
await loading2.dismiss();
|
||||||
await toast.present();
|
await toast.present();
|
||||||
} catch {
|
} catch (e) {
|
||||||
const toast = await this.toastCtrl.create({
|
const toast = await this.toastCtrl.create({
|
||||||
message: 'Modification impossible',
|
message: e.error ?? 'Modification impossible',
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
color: 'danger'
|
color: 'danger'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
<ion-content style="--background: #f7f6f2;">
|
<ion-content style="--background: #f7f6f2;">
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<app-title-part textInfo="Défi bonus du jour"></app-title-part>
|
<app-title-part textInfo="Défi bonus du jour"></app-title-part>
|
||||||
<app-challenge-card [data]="randomChallenge()"></app-challenge-card>
|
<app-challenge-card [challenge]="randomChallenge()"></app-challenge-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export class HomeComponent implements OnInit {
|
|||||||
this.groups.set(groups);
|
this.groups.set(groups);
|
||||||
} catch {
|
} catch {
|
||||||
const toast = await this.toastCtrl.create({
|
const toast = await this.toastCtrl.create({
|
||||||
message: 'Impossible de générer un défi aléatoire',
|
message: 'Impossible de générer un défi',
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
color: 'danger'
|
color: 'danger'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -101,8 +101,9 @@ export class LoginComponent implements OnInit {
|
|||||||
try {
|
try {
|
||||||
const users = this.user().userForm.getRawValue();
|
const users = this.user().userForm.getRawValue();
|
||||||
await firstValueFrom(this.usersService.createUserEndpoint(users));
|
await firstValueFrom(this.usersService.createUserEndpoint(users));
|
||||||
|
await loading.dismiss();
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch {
|
||||||
const toast = await this.toastCtrl.create({
|
const toast = await this.toastCtrl.create({
|
||||||
message: 'Email ou mot de passe incorrect',
|
message: 'Email ou mot de passe incorrect',
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
|
|||||||
@@ -5,4 +5,24 @@
|
|||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content style="--background: #f7f6f2;">
|
<ion-content style="--background: #f7f6f2;">
|
||||||
|
@if (posts().length) {
|
||||||
|
<app-post [posts]="posts()"></app-post>
|
||||||
|
} @else {
|
||||||
|
<ion-item lines="none" class="mt-[60%]" style="--background: #F7F6F2;">
|
||||||
|
<div class="flex flex-col items-center w-full gap-3">
|
||||||
|
<div class="relative w-14 h-14">
|
||||||
|
<div class="w-14 h-14 rounded-full bg-white border border-stone-200 flex items-center justify-center">
|
||||||
|
<ion-icon name="planet" class="text-2xl text-stone-400"></ion-icon>
|
||||||
|
</div>
|
||||||
|
<div class="absolute -bottom-0.5 -right-0.5 w-5 h-5 rounded-full bg-white border border-stone-200 flex items-center justify-center">
|
||||||
|
<ion-icon name="moon-outline" class="text-[10px] text-stone-400"></ion-icon>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="text-center flex flex-col gap-1">
|
||||||
|
<p class="m-0 text-sm font-medium text-stone-400">C'est bien vide par ici</p>
|
||||||
|
<p class="m-0 text-xs text-stone-300 leading-relaxed">Les challengers dorment encore</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ion-item>
|
||||||
|
}
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -1,13 +1,50 @@
|
|||||||
import {Component} from '@angular/core';
|
import {Component, inject, signal} from '@angular/core';
|
||||||
import {IonicModule} from "@ionic/angular";
|
import {IonicModule, LoadingController, ToastController} from "@ionic/angular";
|
||||||
|
import {GetPostDto, PostsService} from "../../services/api";
|
||||||
|
import {firstValueFrom} from "rxjs";
|
||||||
|
import {PostComponent} from "../../components/post/post.component";
|
||||||
|
import {planet, moonOutline} from 'ionicons/icons';
|
||||||
|
import {addIcons} from "ionicons";
|
||||||
|
|
||||||
|
addIcons({
|
||||||
|
"planet": planet,
|
||||||
|
"moon-outline": moonOutline,
|
||||||
|
})
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-publication',
|
selector: 'app-publication',
|
||||||
templateUrl: './publication.component.html',
|
templateUrl: './publication.component.html',
|
||||||
styleUrls: ['./publication.component.scss'],
|
styleUrls: ['./publication.component.scss'],
|
||||||
imports: [
|
imports: [
|
||||||
IonicModule
|
IonicModule,
|
||||||
|
PostComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class PublicationComponent {
|
export class PublicationComponent {
|
||||||
|
private postsService = inject(PostsService);
|
||||||
|
private loadCtrl = inject(LoadingController);
|
||||||
|
private toastCtrl = inject(ToastController);
|
||||||
|
|
||||||
|
posts = signal<GetPostDto[]>([]);
|
||||||
|
|
||||||
|
async ionViewWillEnter() {
|
||||||
|
const loading = await this.loadCtrl.create({
|
||||||
|
message: 'Chargement...',
|
||||||
|
spinner: 'lines-sharp-small'
|
||||||
|
});
|
||||||
|
await loading.present();
|
||||||
|
|
||||||
|
try {
|
||||||
|
const posts = await firstValueFrom(this.postsService.getAllPostsEndpoint());
|
||||||
|
this.posts.set(posts);
|
||||||
|
} catch {
|
||||||
|
const toast = await this.toastCtrl.create({
|
||||||
|
message: 'Impossible de charger les publications.',
|
||||||
|
duration: 2000,
|
||||||
|
color: 'danger'
|
||||||
|
});
|
||||||
|
await toast.present();
|
||||||
|
}
|
||||||
|
await loading.dismiss();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,9 @@ export const appConfig: ApplicationConfig = {
|
|||||||
```
|
```
|
||||||
|
|
||||||
**NOTE**
|
**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
|
```typescript
|
||||||
import { ApiModule } from '';
|
import { ApiModule } from '';
|
||||||
```
|
```
|
||||||
@@ -181,5 +183,7 @@ new Configuration({
|
|||||||
```
|
```
|
||||||
|
|
||||||
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
||||||
|
|
||||||
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
||||||
|
|
||||||
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from './encoder';
|
import {CustomHttpParameterCodec} from './encoder';
|
||||||
import { Configuration } from './configuration';
|
import {Configuration} from './configuration';
|
||||||
import { OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params';
|
import {OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params';
|
||||||
|
|
||||||
export class BaseService {
|
export class BaseService {
|
||||||
protected basePath = 'http://localhost:5235';
|
protected basePath = 'http://localhost:5235';
|
||||||
@@ -18,7 +18,7 @@ export class BaseService {
|
|||||||
public configuration: Configuration;
|
public configuration: Configuration;
|
||||||
public encoder: HttpParameterCodec;
|
public encoder: HttpParameterCodec;
|
||||||
|
|
||||||
constructor(basePath?: string|string[], configuration?: Configuration) {
|
constructor(basePath?: string | string[], configuration?: Configuration) {
|
||||||
this.configuration = configuration || new Configuration();
|
this.configuration = configuration || new Configuration();
|
||||||
if (typeof this.configuration.basePath !== 'string') {
|
if (typeof this.configuration.basePath !== 'string') {
|
||||||
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
||||||
|
|||||||
@@ -1,30 +1,30 @@
|
|||||||
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core';
|
||||||
import { Configuration } from './configuration';
|
import {Configuration} from './configuration';
|
||||||
import { HttpClient } from '@angular/common/http';
|
import {HttpClient} from '@angular/common/http';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [],
|
imports: [],
|
||||||
declarations: [],
|
declarations: [],
|
||||||
exports: [],
|
exports: [],
|
||||||
providers: []
|
providers: []
|
||||||
})
|
})
|
||||||
export class ApiModule {
|
export class ApiModule {
|
||||||
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
|
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
|
||||||
return {
|
return {
|
||||||
ngModule: ApiModule,
|
ngModule: ApiModule,
|
||||||
providers: [ { provide: Configuration, useFactory: configurationFactory } ]
|
providers: [{provide: Configuration, useFactory: configurationFactory}]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor( @Optional() @SkipSelf() parentModule: ApiModule,
|
constructor(@Optional() @SkipSelf() parentModule: ApiModule,
|
||||||
@Optional() http: HttpClient) {
|
@Optional() http: HttpClient) {
|
||||||
if (parentModule) {
|
if (parentModule) {
|
||||||
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
||||||
}
|
}
|
||||||
if (!http) {
|
if (!http) {
|
||||||
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,31 +9,31 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { ErrorResponse } from '../model/error-response';
|
import {ErrorResponse} from '../model/error-response';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetAchievementDto } from '../model/get-achievement-dto';
|
import {GetAchievementDto} from '../model/get-achievement-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class AchievementsService extends BaseService {
|
export class AchievementsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,10 +43,26 @@ export class AchievementsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
|
public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
context?: HttpContext,
|
||||||
public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetAchievementDto>>;
|
||||||
|
public getAllAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
||||||
|
public getAllAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
||||||
|
public getAllAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -77,15 +93,15 @@ export class AchievementsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Achievements`;
|
let localVarPath = `/API/Achievements`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -97,10 +113,26 @@ export class AchievementsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
|
public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
context?: HttpContext,
|
||||||
public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetAchievementDto>>;
|
||||||
|
public getLockedAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
||||||
|
public getLockedAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
||||||
|
public getLockedAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -131,15 +163,15 @@ export class AchievementsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Achievements/Locked/Users`;
|
let localVarPath = `/API/Achievements/Locked/Users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -151,10 +183,26 @@ export class AchievementsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetAchievementDto>>;
|
public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
context?: HttpContext,
|
||||||
public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetAchievementDto>>;
|
||||||
|
public getUserAchievementsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetAchievementDto>>>;
|
||||||
|
public getUserAchievementsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetAchievementDto>>>;
|
||||||
|
public getUserAchievementsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -185,15 +233,15 @@ export class AchievementsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Achievements/Users`;
|
let localVarPath = `/API/Achievements/Users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -201,15 +249,31 @@ export class AchievementsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/Achievements/{achievementId}/Users
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public unlockAchievementEndpoint(achievementId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public unlockAchievementEndpoint(achievementId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public unlockAchievementEndpoint(achievementId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (achievementId === null || achievementId === undefined) {
|
if (achievementId === null || achievementId === undefined) {
|
||||||
throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.');
|
throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -242,16 +306,24 @@ export class AchievementsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Achievements/${this.configuration.encodeParam({name: "achievementId", value: achievementId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
|
let localVarPath = `/API/Achievements/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "achievementId",
|
||||||
|
value: achievementId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/Users`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,21 +1,31 @@
|
|||||||
export * from './achievements.service';
|
export * from './achievements.service';
|
||||||
import { AchievementsService } from './achievements.service';
|
import {AchievementsService} from './achievements.service';
|
||||||
|
|
||||||
export * from './auth.service';
|
export * from './auth.service';
|
||||||
import { AuthService } from './auth.service';
|
import {AuthService} from './auth.service';
|
||||||
|
|
||||||
export * from './designations.service';
|
export * from './designations.service';
|
||||||
import { DesignationsService } from './designations.service';
|
import {DesignationsService} from './designations.service';
|
||||||
|
|
||||||
export * from './friends.service';
|
export * from './friends.service';
|
||||||
import { FriendsService } from './friends.service';
|
import {FriendsService} from './friends.service';
|
||||||
|
|
||||||
export * from './groups.service';
|
export * from './groups.service';
|
||||||
import { GroupsService } from './groups.service';
|
import {GroupsService} from './groups.service';
|
||||||
|
|
||||||
export * from './messages.service';
|
export * from './messages.service';
|
||||||
import { MessagesService } from './messages.service';
|
import {MessagesService} from './messages.service';
|
||||||
|
|
||||||
export * from './overallranking.service';
|
export * from './overallranking.service';
|
||||||
import { OverallrankingService } from './overallranking.service';
|
import {OverallrankingService} from './overallranking.service';
|
||||||
|
|
||||||
export * from './posts.service';
|
export * from './posts.service';
|
||||||
import { PostsService } from './posts.service';
|
import {PostsService} from './posts.service';
|
||||||
|
|
||||||
export * from './randomchallenges.service';
|
export * from './randomchallenges.service';
|
||||||
import { RandomchallengesService } from './randomchallenges.service';
|
import {RandomchallengesService} from './randomchallenges.service';
|
||||||
|
|
||||||
export * from './users.service';
|
export * from './users.service';
|
||||||
import { UsersService } from './users.service';
|
import {UsersService} from './users.service';
|
||||||
|
|
||||||
export const APIS = [AchievementsService, AuthService, DesignationsService, FriendsService, GroupsService, MessagesService, OverallrankingService, PostsService, RandomchallengesService, UsersService];
|
export const APIS = [AchievementsService, AuthService, DesignationsService, FriendsService, GroupsService, MessagesService, OverallrankingService, PostsService, RandomchallengesService, UsersService];
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,49 +9,65 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { ErrorResponse } from '../model/error-response';
|
import {ErrorResponse} from '../model/error-response';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetTokenDto } from '../model/get-token-dto';
|
import {GetTokenDto} from '../model/get-token-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { LoginDto } from '../model/login-dto';
|
import {LoginDto} from '../model/login-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { RefreshTokenDto } from '../model/refresh-token-dto';
|
import {RefreshTokenDto} from '../model/refresh-token-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class AuthService extends BaseService {
|
export class AuthService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/Auth/Login
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<GetTokenDto>;
|
public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTokenDto>>;
|
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||||
public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTokenDto>>;
|
context?: HttpContext,
|
||||||
public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetTokenDto>;
|
||||||
|
public loginEndpoint(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetTokenDto>>;
|
||||||
|
public loginEndpoint(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetTokenDto>>;
|
||||||
|
public loginEndpoint(loginDto: LoginDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (loginDto === null || loginDto === undefined) {
|
if (loginDto === null || loginDto === undefined) {
|
||||||
throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.');
|
throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -92,16 +108,16 @@ export class AuthService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Auth/Login`;
|
let localVarPath = `/API/Auth/Login`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: loginDto,
|
body: loginDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -109,15 +125,31 @@ export class AuthService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/Auth/RefreshToken
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<GetTokenDto>;
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTokenDto>>;
|
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTokenDto>>;
|
context?: HttpContext,
|
||||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json' | 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetTokenDto>;
|
||||||
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetTokenDto>>;
|
||||||
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetTokenDto>>;
|
||||||
|
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (refreshTokenDto === null || refreshTokenDto === undefined) {
|
if (refreshTokenDto === null || refreshTokenDto === undefined) {
|
||||||
throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.');
|
throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -158,16 +190,16 @@ export class AuthService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Auth/RefreshToken`;
|
let localVarPath = `/API/Auth/RefreshToken`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: refreshTokenDto,
|
body: refreshTokenDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,29 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetDesignationDto } from '../model/get-designation-dto';
|
import {GetDesignationDto} from '../model/get-designation-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class DesignationsService extends BaseService {
|
export class DesignationsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,10 +41,26 @@ export class DesignationsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetDesignationDto>>;
|
public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetDesignationDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetDesignationDto>>>;
|
context?: HttpContext,
|
||||||
public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetDesignationDto>>;
|
||||||
|
public getAllDesignationsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetDesignationDto>>>;
|
||||||
|
public getAllDesignationsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetDesignationDto>>>;
|
||||||
|
public getAllDesignationsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -75,15 +91,15 @@ export class DesignationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Designations`;
|
let localVarPath = `/API/Designations`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetDesignationDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetDesignationDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,45 +9,61 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetFriendDto } from '../model/get-friend-dto';
|
import {GetFriendDto} from '../model/get-friend-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetFriendRequestDto } from '../model/get-friend-request-dto';
|
import {GetFriendRequestDto} from '../model/get-friend-request-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class FriendsService extends BaseService {
|
export class FriendsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/Friends/{friendId}/Request
|
* @endpoint put /API/Friends/{friendId}/Request
|
||||||
* @param friendId
|
* @param friendId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public acceptFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public acceptFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public acceptFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (friendId === null || friendId === undefined) {
|
if (friendId === null || friendId === undefined) {
|
||||||
throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.');
|
throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -57,8 +73,7 @@ export class FriendsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -79,16 +94,24 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
|
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "friendId",
|
||||||
|
value: friendId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/Request`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -96,15 +119,31 @@ export class FriendsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/Friends/{friendId}
|
* @endpoint delete /API/Friends/{friendId}
|
||||||
* @param friendId
|
* @param friendId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteFriendEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteFriendEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteFriendEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (friendId === null || friendId === undefined) {
|
if (friendId === null || friendId === undefined) {
|
||||||
throw new Error('Required parameter friendId was null or undefined when calling deleteFriendEndpoint.');
|
throw new Error('Required parameter friendId was null or undefined when calling deleteFriendEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -114,8 +153,7 @@ export class FriendsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -136,16 +174,24 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "friendId",
|
||||||
|
value: friendId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -157,10 +203,26 @@ export class FriendsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetFriendRequestDto>>;
|
public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetFriendRequestDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetFriendRequestDto>>>;
|
context?: HttpContext,
|
||||||
public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetFriendRequestDto>>;
|
||||||
|
public getAllFriendRequestsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetFriendRequestDto>>>;
|
||||||
|
public getAllFriendRequestsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetFriendRequestDto>>>;
|
||||||
|
public getAllFriendRequestsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -191,15 +253,15 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends/Requests`;
|
let localVarPath = `/API/Friends/Requests`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetFriendRequestDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetFriendRequestDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -211,10 +273,26 @@ export class FriendsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetFriendDto>>;
|
public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetFriendDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetFriendDto>>>;
|
context?: HttpContext,
|
||||||
public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetFriendDto>>;
|
||||||
|
public getAllFriendsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetFriendDto>>>;
|
||||||
|
public getAllFriendsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetFriendDto>>>;
|
||||||
|
public getAllFriendsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -245,15 +323,15 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends`;
|
let localVarPath = `/API/Friends`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetFriendDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetFriendDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -261,15 +339,31 @@ export class FriendsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/Friends/{friendId}/Request
|
* @endpoint delete /API/Friends/{friendId}/Request
|
||||||
* @param friendId
|
* @param friendId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public rejectFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public rejectFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public rejectFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (friendId === null || friendId === undefined) {
|
if (friendId === null || friendId === undefined) {
|
||||||
throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.');
|
throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -279,8 +373,7 @@ export class FriendsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -301,16 +394,24 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
|
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "friendId",
|
||||||
|
value: friendId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/Request`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -318,15 +419,31 @@ export class FriendsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/Friends/{friendId}
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public sendFriendRequestEndpoint(friendId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public sendFriendRequestEndpoint(friendId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public sendFriendRequestEndpoint(friendId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (friendId === null || friendId === undefined) {
|
if (friendId === null || friendId === undefined) {
|
||||||
throw new Error('Required parameter friendId was null or undefined when calling sendFriendRequestEndpoint.');
|
throw new Error('Required parameter friendId was null or undefined when calling sendFriendRequestEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -336,8 +453,7 @@ export class FriendsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -358,16 +474,24 @@ export class FriendsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "friendId",
|
||||||
|
value: friendId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,52 +9,68 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateGroupDto } from '../model/create-group-dto';
|
import {CreateGroupDto} from '../model/create-group-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { ErrorResponse } from '../model/error-response';
|
import {ErrorResponse} from '../model/error-response';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetGroupDetailsDto } from '../model/get-group-details-dto';
|
import {GetGroupDetailsDto} from '../model/get-group-details-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetGroupDto } from '../model/get-group-dto';
|
import {GetGroupDto} from '../model/get-group-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetUserGroupDto } from '../model/get-user-group-dto';
|
import {GetUserGroupDto} from '../model/get-user-group-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class GroupsService extends BaseService {
|
export class GroupsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/Groups/{groupId}/Users/{userId}
|
* @endpoint post /API/Groups/{groupId}/Users/{userId}
|
||||||
* @param groupId
|
* @param groupId
|
||||||
* @param userId
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public addUserToGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public addUserToGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling addUserToGroupEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling addUserToGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -67,8 +83,7 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -89,16 +104,32 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
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<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -106,15 +137,31 @@ export class GroupsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/Groups
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public createGroupEndpoint(createGroupDto: CreateGroupDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createGroupDto === null || createGroupDto === undefined) {
|
if (createGroupDto === null || createGroupDto === undefined) {
|
||||||
throw new Error('Required parameter createGroupDto was null or undefined when calling createGroupEndpoint.');
|
throw new Error('Required parameter createGroupDto was null or undefined when calling createGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -157,16 +204,16 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups`;
|
let localVarPath = `/API/Groups`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createGroupDto,
|
body: createGroupDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -174,15 +221,31 @@ export class GroupsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/Groups/{id}
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteGroupEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -192,8 +255,7 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -214,16 +276,24 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -231,16 +301,32 @@ export class GroupsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/Groups/{groupId}/Users/{userId}
|
* @endpoint delete /API/Groups/{groupId}/Users/{userId}
|
||||||
* @param groupId
|
* @param groupId
|
||||||
* @param userId
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteUserFromGroupEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling deleteUserFromGroupEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling deleteUserFromGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -253,8 +339,7 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -275,16 +360,32 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
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<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -292,15 +393,31 @@ export class GroupsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/Groups/{id}/Users
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserGroupDto>>;
|
public getAllGroupUsersEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserGroupDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserGroupDto>>>;
|
context?: HttpContext,
|
||||||
public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetUserGroupDto>>;
|
||||||
|
public getAllGroupUsersEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetUserGroupDto>>>;
|
||||||
|
public getAllGroupUsersEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetUserGroupDto>>>;
|
||||||
|
public getAllGroupUsersEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getAllGroupUsersEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getAllGroupUsersEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -333,16 +450,24 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/Users`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetUserGroupDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetUserGroupDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -354,10 +479,26 @@ export class GroupsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetGroupDto>>;
|
public getAllGroupsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetGroupDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetGroupDto>>>;
|
context?: HttpContext,
|
||||||
public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetGroupDto>>;
|
||||||
|
public getAllGroupsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetGroupDto>>>;
|
||||||
|
public getAllGroupsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetGroupDto>>>;
|
||||||
|
public getAllGroupsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -388,15 +529,15 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/Users`;
|
let localVarPath = `/API/Groups/Users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetGroupDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetGroupDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -404,15 +545,31 @@ export class GroupsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/Groups/{id}
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetGroupDetailsDto>;
|
public getGroupDetailsEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetGroupDetailsDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetGroupDetailsDto>>;
|
context?: HttpContext,
|
||||||
public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetGroupDetailsDto>;
|
||||||
|
public getGroupDetailsEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetGroupDetailsDto>>;
|
||||||
|
public getGroupDetailsEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetGroupDetailsDto>>;
|
||||||
|
public getGroupDetailsEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getGroupDetailsEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getGroupDetailsEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -445,16 +602,24 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetGroupDetailsDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetGroupDetailsDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -462,15 +627,31 @@ export class GroupsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/Groups/{id}/User
|
* @endpoint delete /API/Groups/{id}/User
|
||||||
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public leaveGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public leaveGroupEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public leaveGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public leaveGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public leaveGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public leaveGroupEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public leaveGroupEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public leaveGroupEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling leaveGroupEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling leaveGroupEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -480,8 +661,7 @@ export class GroupsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -502,16 +682,24 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/User`;
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/User`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -519,16 +707,32 @@ export class GroupsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/Groups/{groupId}/Users/{userId}/Role
|
* @endpoint patch /API/Groups/{groupId}/Users/{userId}/Role
|
||||||
* @param groupId
|
* @param groupId
|
||||||
* @param userId
|
* @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 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetGroupDetailsDto>;
|
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetGroupDetailsDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetGroupDetailsDto>>;
|
context?: HttpContext,
|
||||||
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetGroupDetailsDto>;
|
||||||
|
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetGroupDetailsDto>>;
|
||||||
|
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetGroupDetailsDto>>;
|
||||||
|
public patchGroupUserRoleEndpoint(groupId: number, userId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserRoleEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling patchGroupUserRoleEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -564,16 +768,32 @@ export class GroupsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Role`;
|
let localVarPath = `/API/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
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<GetGroupDetailsDto>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetGroupDetailsDto>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,108 +9,63 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateMessageDto } from '../model/create-message-dto';
|
import {CreateMessageDto} from '../model/create-message-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { ErrorResponse } from '../model/error-response';
|
import {ErrorResponse} from '../model/error-response';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetMessageDto } from '../model/get-message-dto';
|
import {GetMessageDto} from '../model/get-message-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class MessagesService extends BaseService {
|
export class MessagesService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint delete /API/Messages/{id}/Groups/{groupId}
|
|
||||||
* @param id
|
|
||||||
* @param groupId
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
* @param options additional options
|
|
||||||
*/
|
|
||||||
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
|
||||||
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteMessageEndpoint(id: number, groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteMessageEndpoint(id: number, groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (id === null || id === undefined) {
|
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteMessageEndpoint.');
|
|
||||||
}
|
|
||||||
if (groupId === null || groupId === undefined) {
|
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling deleteMessageEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
// authentication (JWTBearerAuth) required
|
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/Messages/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/Messages/Groups/{groupId}
|
* @endpoint get /API/Messages/Groups/{groupId}
|
||||||
* @param groupId
|
* @param groupId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetMessageDto>>;
|
public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getMessagesEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetMessageDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getMessagesEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetMessageDto>>>;
|
context?: HttpContext,
|
||||||
public getMessagesEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetMessageDto>>;
|
||||||
|
public getMessagesEndpoint(groupId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetMessageDto>>>;
|
||||||
|
public getMessagesEndpoint(groupId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetMessageDto>>>;
|
||||||
|
public getMessagesEndpoint(groupId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling getMessagesEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling getMessagesEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -143,16 +98,24 @@ export class MessagesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "groupId",
|
||||||
|
value: groupId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetMessageDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetMessageDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -160,16 +123,32 @@ export class MessagesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/Messages/Groups/{groupId}
|
* @endpoint post /API/Messages/Groups/{groupId}
|
||||||
* @param groupId
|
* @param groupId
|
||||||
* @param createMessageDto
|
* @param createMessageDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public sendMessageEndpoint(groupId: number, createMessageDto: CreateMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (groupId === null || groupId === undefined) {
|
if (groupId === null || groupId === undefined) {
|
||||||
throw new Error('Required parameter groupId was null or undefined when calling sendMessageEndpoint.');
|
throw new Error('Required parameter groupId was null or undefined when calling sendMessageEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -214,17 +193,25 @@ export class MessagesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({name: "groupId", value: groupId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "groupId",
|
||||||
|
value: groupId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createMessageDto,
|
body: createMessageDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,29 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetUserDto } from '../model/get-user-dto';
|
import {GetUserDto} from '../model/get-user-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class OverallrankingService extends BaseService {
|
export class OverallrankingService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,10 +41,26 @@ export class OverallrankingService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserDto>>;
|
public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getOverallRankingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getOverallRankingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserDto>>>;
|
context?: HttpContext,
|
||||||
public getOverallRankingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetUserDto>>;
|
||||||
|
public getOverallRankingEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetUserDto>>>;
|
||||||
|
public getOverallRankingEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetUserDto>>>;
|
||||||
|
public getOverallRankingEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -75,15 +91,15 @@ export class OverallrankingService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/OverallRanking`;
|
let localVarPath = `/API/OverallRanking`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,29 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetPostDto } from '../model/get-post-dto';
|
import {GetPostDto} from '../model/get-post-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class PostsService extends BaseService {
|
export class PostsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,10 +41,26 @@ export class PostsService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllPostsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetPostDto>>;
|
public getAllPostsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllPostsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetPostDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllPostsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetPostDto>>>;
|
context?: HttpContext,
|
||||||
public getAllPostsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetPostDto>>;
|
||||||
|
public getAllPostsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetPostDto>>>;
|
||||||
|
public getAllPostsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetPostDto>>>;
|
||||||
|
public getAllPostsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -75,15 +91,15 @@ export class PostsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Posts`;
|
let localVarPath = `/API/Posts`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetPostDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetPostDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -91,15 +107,31 @@ export class PostsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/Posts/{postId}/Like
|
* @endpoint patch /API/Posts/{postId}/Like
|
||||||
* @param postId
|
* @param postId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchLikeEndpoint(postId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public patchLikeEndpoint(postId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchLikeEndpoint(postId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchLikeEndpoint(postId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public patchLikeEndpoint(postId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchLikeEndpoint(postId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchLikeEndpoint(postId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchLikeEndpoint(postId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (postId === null || postId === undefined) {
|
if (postId === null || postId === undefined) {
|
||||||
throw new Error('Required parameter postId was null or undefined when calling patchLikeEndpoint.');
|
throw new Error('Required parameter postId was null or undefined when calling patchLikeEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -109,8 +141,7 @@ export class PostsService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -131,16 +162,24 @@ export class PostsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Posts/${this.configuration.encodeParam({name: "postId", value: postId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Like`;
|
let localVarPath = `/API/Posts/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "postId",
|
||||||
|
value: postId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/Like`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,29 +9,29 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetRandomChallengeDto } from '../model/get-random-challenge-dto';
|
import {GetRandomChallengeDto} from '../model/get-random-challenge-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class RandomchallengesService extends BaseService {
|
export class RandomchallengesService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,10 +41,26 @@ export class RandomchallengesService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetRandomChallengeDto>;
|
public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetRandomChallengeDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetRandomChallengeDto>>;
|
context?: HttpContext,
|
||||||
public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetRandomChallengeDto>;
|
||||||
|
public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetRandomChallengeDto>>;
|
||||||
|
public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetRandomChallengeDto>>;
|
||||||
|
public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -75,15 +91,15 @@ export class RandomchallengesService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/RandomChallenges`;
|
let localVarPath = `/API/RandomChallenges`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetRandomChallengeDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetRandomChallengeDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -91,15 +107,31 @@ export class RandomchallengesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/RandomChallenges/{randomChallengeId}
|
* @endpoint get /API/RandomChallenges/{randomChallengeId}
|
||||||
* @param randomChallengeId
|
* @param randomChallengeId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetRandomChallengeDto>;
|
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetRandomChallengeDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetRandomChallengeDto>>;
|
context?: HttpContext,
|
||||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetRandomChallengeDto>;
|
||||||
|
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetRandomChallengeDto>>;
|
||||||
|
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetRandomChallengeDto>>;
|
||||||
|
public getRandomChallengeEndpoint(randomChallengeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (randomChallengeId === null || randomChallengeId === undefined) {
|
if (randomChallengeId === null || randomChallengeId === undefined) {
|
||||||
throw new Error('Required parameter randomChallengeId was null or undefined when calling getRandomChallengeEndpoint.');
|
throw new Error('Required parameter randomChallengeId was null or undefined when calling getRandomChallengeEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -132,16 +164,24 @@ export class RandomchallengesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({name: "randomChallengeId", value: randomChallengeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "randomChallengeId",
|
||||||
|
value: randomChallengeId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetRandomChallengeDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetRandomChallengeDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -149,17 +189,32 @@ export class RandomchallengesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/RandomChallenges/{randomChallengeId}/Proof
|
* @endpoint patch /API/RandomChallenges/{randomChallengeId}/Proof
|
||||||
* @param randomChallengeId
|
* @param randomChallengeId
|
||||||
* @param libelle
|
* @param proof
|
||||||
* @param proof
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchProofEndpoint(randomChallengeId: number, libelle?: string, proof?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchProofEndpoint(randomChallengeId: number, libelle?: string, proof?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchProofEndpoint(randomChallengeId: number, libelle?: string, proof?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public patchProofEndpoint(randomChallengeId: number, libelle?: string, proof?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchProofEndpoint(randomChallengeId: number, proof?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (randomChallengeId === null || randomChallengeId === undefined) {
|
if (randomChallengeId === null || randomChallengeId === undefined) {
|
||||||
throw new Error('Required parameter randomChallengeId was null or undefined when calling patchProofEndpoint.');
|
throw new Error('Required parameter randomChallengeId was null or undefined when calling patchProofEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -169,8 +224,7 @@ export class RandomchallengesService extends BaseService {
|
|||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -198,9 +252,6 @@ export class RandomchallengesService extends BaseService {
|
|||||||
localVarFormParams = new HttpParams({encoder: this.encoder});
|
localVarFormParams = new HttpParams({encoder: this.encoder});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (libelle !== undefined) {
|
|
||||||
localVarFormParams = localVarFormParams.append('libelle', <any>libelle) as any || localVarFormParams;
|
|
||||||
}
|
|
||||||
if (proof !== undefined) {
|
if (proof !== undefined) {
|
||||||
localVarFormParams = localVarFormParams.append('proof', <any>proof) as any || localVarFormParams;
|
localVarFormParams = localVarFormParams.append('proof', <any>proof) as any || localVarFormParams;
|
||||||
}
|
}
|
||||||
@@ -216,17 +267,25 @@ export class RandomchallengesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({name: "randomChallengeId", value: randomChallengeId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Proof`;
|
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "randomChallengeId",
|
||||||
|
value: randomChallengeId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/Proof`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,59 +9,75 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpContext
|
||||||
import { Observable } from 'rxjs';
|
} from '@angular/common/http';
|
||||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
import {Observable} from 'rxjs';
|
||||||
|
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateUserDto } from '../model/create-user-dto';
|
import {CreateUserDto} from '../model/create-user-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { ErrorResponse } from '../model/error-response';
|
import {ErrorResponse} from '../model/error-response';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetUserChallengeDto } from '../model/get-user-challenge-dto';
|
import {GetUserChallengeDto} from '../model/get-user-challenge-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetUserDetailsDto } from '../model/get-user-details-dto';
|
import {GetUserDetailsDto} from '../model/get-user-details-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetUserDto } from '../model/get-user-dto';
|
import {GetUserDto} from '../model/get-user-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetUserProofDto } from '../model/get-user-proof-dto';
|
import {GetUserProofDto} from '../model/get-user-proof-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchUserDesignationDto } from '../model/patch-user-designation-dto';
|
import {PatchUserDesignationDto} from '../model/patch-user-designation-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchUserPasswordDto } from '../model/patch-user-password-dto';
|
import {PatchUserPasswordDto} from '../model/patch-user-password-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { UpdateUserDto } from '../model/update-user-dto';
|
import {UpdateUserDto} from '../model/update-user-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class UsersService extends BaseService {
|
export class UsersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/Users
|
* @endpoint post /API/Users
|
||||||
* @param createUserDto
|
* @param createUserDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createUserDto === null || createUserDto === undefined) {
|
if (createUserDto === null || createUserDto === undefined) {
|
||||||
throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.');
|
throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -101,16 +117,16 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users`;
|
let localVarPath = `/API/Users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createUserDto,
|
body: createUserDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -122,18 +138,33 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteUserEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteUserEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteUserEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
// authentication (JWTBearerAuth) required
|
// authentication (JWTBearerAuth) required
|
||||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -155,15 +186,15 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users`;
|
let localVarPath = `/API/Users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -175,10 +206,26 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserChallengeDto>>;
|
public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllUserChallengesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserChallengeDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllUserChallengesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserChallengeDto>>>;
|
context?: HttpContext,
|
||||||
public getAllUserChallengesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetUserChallengeDto>>;
|
||||||
|
public getAllUserChallengesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetUserChallengeDto>>>;
|
||||||
|
public getAllUserChallengesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetUserChallengeDto>>>;
|
||||||
|
public getAllUserChallengesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -209,15 +256,15 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users/Challenges`;
|
let localVarPath = `/API/Users/Challenges`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetUserChallengeDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetUserChallengeDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -229,10 +276,26 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserProofDto>>;
|
public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllUserProofsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserProofDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllUserProofsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserProofDto>>>;
|
context?: HttpContext,
|
||||||
public getAllUserProofsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetUserProofDto>>;
|
||||||
|
public getAllUserProofsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetUserProofDto>>>;
|
||||||
|
public getAllUserProofsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetUserProofDto>>>;
|
||||||
|
public getAllUserProofsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -263,15 +326,15 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users/Proofs`;
|
let localVarPath = `/API/Users/Proofs`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetUserProofDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetUserProofDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -283,10 +346,26 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserDto>>;
|
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserDto>>>;
|
context?: HttpContext,
|
||||||
public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetUserDto>>;
|
||||||
|
public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetUserDto>>>;
|
||||||
|
public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetUserDto>>>;
|
||||||
|
public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -317,15 +396,15 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users`;
|
let localVarPath = `/API/Users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -337,10 +416,26 @@ export class UsersService extends BaseService {
|
|||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDetailsDto>;
|
public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getUserDetailsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDetailsDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getUserDetailsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDetailsDto>>;
|
context?: HttpContext,
|
||||||
public getUserDetailsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetUserDetailsDto>;
|
||||||
|
public getUserDetailsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetUserDetailsDto>>;
|
||||||
|
public getUserDetailsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetUserDetailsDto>>;
|
||||||
|
public getUserDetailsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -371,15 +466,15 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users/Details`;
|
let localVarPath = `/API/Users/Details`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetUserDetailsDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDetailsDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -387,15 +482,31 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/Users/{id}
|
* @endpoint get /API/Users/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
context?: HttpContext,
|
||||||
public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetUserDto>;
|
||||||
|
public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetUserDto>>;
|
||||||
|
public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetUserDto>>;
|
||||||
|
public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -428,16 +539,24 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/Users/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -445,15 +564,31 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/Users/Designation
|
* @endpoint patch /API/Users/Designation
|
||||||
* @param patchUserDesignationDto
|
* @param patchUserDesignationDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (patchUserDesignationDto === null || patchUserDesignationDto === undefined) {
|
if (patchUserDesignationDto === null || patchUserDesignationDto === undefined) {
|
||||||
throw new Error('Required parameter patchUserDesignationDto was null or undefined when calling patchUserDesignationEndpoint.');
|
throw new Error('Required parameter patchUserDesignationDto was null or undefined when calling patchUserDesignationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -496,16 +631,16 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users/Designation`;
|
let localVarPath = `/API/Users/Designation`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchUserDesignationDto,
|
body: patchUserDesignationDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -513,15 +648,31 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/Users/Password
|
* @endpoint patch /API/Users/Password
|
||||||
* @param patchUserPasswordDto
|
* @param patchUserPasswordDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (patchUserPasswordDto === null || patchUserPasswordDto === undefined) {
|
if (patchUserPasswordDto === null || patchUserPasswordDto === undefined) {
|
||||||
throw new Error('Required parameter patchUserPasswordDto was null or undefined when calling patchUserPasswordEndpoint.');
|
throw new Error('Required parameter patchUserPasswordDto was null or undefined when calling patchUserPasswordEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -564,16 +715,16 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users/Password`;
|
let localVarPath = `/API/Users/Password`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchUserPasswordDto,
|
body: patchUserPasswordDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -581,15 +732,31 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/Users
|
* @endpoint put /API/Users
|
||||||
* @param updateUserDto
|
* @param updateUserDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param 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 reportProgress flag to report request and response progress.
|
||||||
* @param options additional options
|
* @param options additional options
|
||||||
*/
|
*/
|
||||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/problem+json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (updateUserDto === null || updateUserDto === undefined) {
|
if (updateUserDto === null || updateUserDto === undefined) {
|
||||||
throw new Error('Required parameter updateUserDto was null or undefined when calling updateUserEndpoint.');
|
throw new Error('Required parameter updateUserDto was null or undefined when calling updateUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -629,16 +796,16 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/Users`;
|
let localVarPath = `/API/Users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateUserDto,
|
body: updateUserDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { HttpHeaders, HttpParameterCodec } from '@angular/common/http';
|
import {HttpHeaders, HttpParameterCodec} from '@angular/common/http';
|
||||||
import { Param } from './param';
|
import {Param} from './param';
|
||||||
import { OpenApiHttpParams } from './query.params';
|
import {OpenApiHttpParams} from './query.params';
|
||||||
|
|
||||||
export interface ConfigurationParameters {
|
export interface ConfigurationParameters {
|
||||||
/**
|
/**
|
||||||
* @deprecated Since 5.0. Use credentials instead
|
* @deprecated Since 5.0. Use credentials instead
|
||||||
*/
|
*/
|
||||||
apiKeys?: {[ key: string ]: string};
|
apiKeys?: { [key: string]: string };
|
||||||
username?: string;
|
username?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
/**
|
/**
|
||||||
@@ -32,14 +32,14 @@ export interface ConfigurationParameters {
|
|||||||
* document. They should map to the value used for authentication
|
* document. They should map to the value used for authentication
|
||||||
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
||||||
*/
|
*/
|
||||||
credentials?: {[ key: string ]: string | (() => string | undefined)};
|
credentials?: { [key: string]: string | (() => string | undefined) };
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Configuration {
|
export class Configuration {
|
||||||
/**
|
/**
|
||||||
* @deprecated Since 5.0. Use credentials instead
|
* @deprecated Since 5.0. Use credentials instead
|
||||||
*/
|
*/
|
||||||
apiKeys?: {[ key: string ]: string};
|
apiKeys?: { [key: string]: string };
|
||||||
username?: string;
|
username?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
/**
|
/**
|
||||||
@@ -65,9 +65,19 @@ export class Configuration {
|
|||||||
* document. They should map to the value used for authentication
|
* document. They should map to the value used for authentication
|
||||||
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
||||||
*/
|
*/
|
||||||
credentials: {[ key: string ]: string | (() => string | undefined)};
|
credentials: { [key: string]: string | (() => string | undefined) };
|
||||||
|
|
||||||
constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) {
|
constructor({
|
||||||
|
accessToken,
|
||||||
|
apiKeys,
|
||||||
|
basePath,
|
||||||
|
credentials,
|
||||||
|
encodeParam,
|
||||||
|
encoder,
|
||||||
|
password,
|
||||||
|
username,
|
||||||
|
withCredentials
|
||||||
|
}: ConfigurationParameters = {}) {
|
||||||
if (apiKeys) {
|
if (apiKeys) {
|
||||||
this.apiKeys = apiKeys;
|
this.apiKeys = apiKeys;
|
||||||
}
|
}
|
||||||
@@ -109,7 +119,7 @@ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder,
|
|||||||
* @param contentTypes - the array of content types that are available for selection
|
* @param contentTypes - the array of content types that are available for selection
|
||||||
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
||||||
*/
|
*/
|
||||||
public selectHeaderContentType (contentTypes: string[]): string | undefined {
|
public selectHeaderContentType(contentTypes: string[]): string | undefined {
|
||||||
if (contentTypes.length === 0) {
|
if (contentTypes.length === 0) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { HttpParameterCodec } from '@angular/common/http';
|
import {HttpParameterCodec} from '@angular/common/http';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom HttpParameterCodec
|
* Custom HttpParameterCodec
|
||||||
@@ -8,12 +8,15 @@ export class CustomHttpParameterCodec implements HttpParameterCodec {
|
|||||||
encodeKey(k: string): string {
|
encodeKey(k: string): string {
|
||||||
return encodeURIComponent(k);
|
return encodeURIComponent(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
encodeValue(v: string): string {
|
encodeValue(v: string): string {
|
||||||
return encodeURIComponent(v);
|
return encodeURIComponent(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeKey(k: string): string {
|
decodeKey(k: string): string {
|
||||||
return decodeURIComponent(k);
|
return decodeURIComponent(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeValue(v: string): string {
|
decodeValue(v: string): string {
|
||||||
return decodeURIComponent(v);
|
return decodeURIComponent(v);
|
||||||
}
|
}
|
||||||
@@ -23,12 +26,15 @@ export class IdentityHttpParameterCodec implements HttpParameterCodec {
|
|||||||
encodeKey(k: string): string {
|
encodeKey(k: string): string {
|
||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
|
|
||||||
encodeValue(v: string): string {
|
encodeValue(v: string): string {
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeKey(k: string): string {
|
decodeKey(k: string): string {
|
||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeValue(v: string): string {
|
decodeValue(v: string): string {
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { CreateUserGroupDto } from './create-user-group-dto';
|
import {CreateUserGroupDto} from './create-user-group-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface CreateGroupDto {
|
export interface CreateGroupDto {
|
||||||
label: string;
|
label: string;
|
||||||
userGroups?: Array<CreateUserGroupDto> | null;
|
userGroups?: Array<CreateUserGroupDto> | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateMessageDto {
|
export interface CreateMessageDto {
|
||||||
libelle: string;
|
libelle: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateUserDto {
|
export interface CreateUserDto {
|
||||||
firstName: string;
|
firstName: string;
|
||||||
name: string;
|
name: string;
|
||||||
username: string;
|
username: string;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateUserGroupDto {
|
export interface CreateUserGroupDto {
|
||||||
userId?: number;
|
userId?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
/**
|
/**
|
||||||
* the dto used to send an error response to the client
|
* the dto used to send an error response to the client
|
||||||
*/
|
*/
|
||||||
export interface ErrorResponse {
|
export interface ErrorResponse {
|
||||||
/**
|
/**
|
||||||
* the http status code sent to the client. default is 400.
|
* the http status code sent to the client. default is 400.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetAchievementDto {
|
export interface GetAchievementDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
label?: string | null;
|
label?: string | null;
|
||||||
description?: string | null;
|
description?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetDesignationDto {
|
export interface GetDesignationDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
label?: string | null;
|
label?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetFriendDto {
|
export interface GetFriendDto {
|
||||||
friendId?: number;
|
friendId?: number;
|
||||||
username?: string | null;
|
username?: string | null;
|
||||||
score?: number;
|
score?: number;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetFriendRequestDto {
|
export interface GetFriendRequestDto {
|
||||||
userId?: number;
|
userId?: number;
|
||||||
username?: string | null;
|
username?: string | null;
|
||||||
score?: number;
|
score?: number;
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { GetMessageDto } from './get-message-dto';
|
import {GetMessageDto} from './get-message-dto';
|
||||||
import { GetUserGroupDto } from './get-user-group-dto';
|
import {GetUserGroupDto} from './get-user-group-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface GetGroupDetailsDto {
|
export interface GetGroupDetailsDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
label?: string | null;
|
label?: string | null;
|
||||||
creationDate?: string;
|
creationDate?: string;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetGroupDto {
|
export interface GetGroupDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
label?: string | null;
|
label?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetMessageDto {
|
export interface GetMessageDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
libelle?: string | null;
|
libelle?: string | null;
|
||||||
sendDate?: string;
|
sendDate?: string;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,12 +9,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetPostDto {
|
export interface GetPostDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
libelle?: string | null;
|
libelle?: string | null;
|
||||||
creationDate?: string;
|
creationDate?: string;
|
||||||
likes?: number;
|
likes?: number;
|
||||||
isLiked?: boolean;
|
isLiked?: boolean;
|
||||||
|
proof?: string | null;
|
||||||
userId?: number;
|
userId?: number;
|
||||||
username?: string | null;
|
username?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetRandomChallengeDto {
|
export interface GetRandomChallengeDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
label?: string | null;
|
label?: string | null;
|
||||||
libelle?: string | null;
|
libelle?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetTokenDto {
|
export interface GetTokenDto {
|
||||||
token?: string | null;
|
token?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetUserChallengeDto {
|
export interface GetUserChallengeDto {
|
||||||
challengeTitle?: string | null;
|
challengeTitle?: string | null;
|
||||||
challengeDescription?: string | null;
|
challengeDescription?: string | null;
|
||||||
challengeStartDate?: string;
|
challengeStartDate?: string;
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { GetUserStatsDto } from './get-user-stats-dto';
|
import {GetUserStatsDto} from './get-user-stats-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface GetUserDetailsDto {
|
export interface GetUserDetailsDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
firstName?: string | null;
|
firstName?: string | null;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { GetUserStatsDto } from './get-user-stats-dto';
|
import {GetUserStatsDto} from './get-user-stats-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface GetUserDto {
|
export interface GetUserDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
firstName?: string | null;
|
firstName?: string | null;
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetUserGroupDto {
|
export interface GetUserGroupDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
username?: string | null;
|
username?: string | null;
|
||||||
grade?: string | null;
|
grade?: string | null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetUserProofDto {
|
export interface GetUserProofDto {
|
||||||
proof?: string | null;
|
proof?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface GetUserStatsDto {
|
export interface GetUserStatsDto {
|
||||||
id?: number;
|
id?: number;
|
||||||
totalLikes?: number;
|
totalLikes?: number;
|
||||||
totalChallenge?: number;
|
totalChallenge?: number;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface LoginDto {
|
export interface LoginDto {
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchUserDesignationDto {
|
export interface PatchUserDesignationDto {
|
||||||
designationId: number;
|
designationId: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface PatchUserPasswordDto {
|
export interface PatchUserPasswordDto {
|
||||||
password: string;
|
password: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface RefreshTokenDto {
|
export interface RefreshTokenDto {
|
||||||
token: string;
|
token: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* BeReadyBackend
|
* BeReadyBackend
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface UpdateUserDto {
|
export interface UpdateUserDto {
|
||||||
firstName: string;
|
firstName: string;
|
||||||
name: string;
|
name: string;
|
||||||
username: string;
|
username: string;
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
* Standard parameter styles defined by OpenAPI spec
|
* Standard parameter styles defined by OpenAPI spec
|
||||||
*/
|
*/
|
||||||
export type StandardParamStyle =
|
export type StandardParamStyle =
|
||||||
| 'matrix'
|
| 'matrix'
|
||||||
| 'label'
|
| 'label'
|
||||||
| 'form'
|
| 'form'
|
||||||
| 'simple'
|
| 'simple'
|
||||||
| 'spaceDelimited'
|
| 'spaceDelimited'
|
||||||
| 'pipeDelimited'
|
| 'pipeDelimited'
|
||||||
| 'deepObject'
|
| 'deepObject'
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
||||||
@@ -25,13 +25,13 @@ export type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
|
|||||||
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
||||||
*/
|
*/
|
||||||
export type StandardDataType =
|
export type StandardDataType =
|
||||||
| "integer"
|
| "integer"
|
||||||
| "number"
|
| "number"
|
||||||
| "boolean"
|
| "boolean"
|
||||||
| "string"
|
| "string"
|
||||||
| "object"
|
| "object"
|
||||||
| "array"
|
| "array"
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Standard {@link DataType}s plus your own types/classes.
|
* Standard {@link DataType}s plus your own types/classes.
|
||||||
@@ -42,16 +42,16 @@ export type DataType = StandardDataType | string;
|
|||||||
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
||||||
*/
|
*/
|
||||||
export type StandardDataFormat =
|
export type StandardDataFormat =
|
||||||
| "int32"
|
| "int32"
|
||||||
| "int64"
|
| "int64"
|
||||||
| "float"
|
| "float"
|
||||||
| "double"
|
| "double"
|
||||||
| "byte"
|
| "byte"
|
||||||
| "binary"
|
| "binary"
|
||||||
| "date"
|
| "date"
|
||||||
| "date-time"
|
| "date-time"
|
||||||
| "password"
|
| "password"
|
||||||
;
|
;
|
||||||
|
|
||||||
export type DataFormat = StandardDataFormat | string;
|
export type DataFormat = StandardDataFormat | string;
|
||||||
|
|
||||||
@@ -59,11 +59,11 @@ export type DataFormat = StandardDataFormat | string;
|
|||||||
* The parameter to encode.
|
* The parameter to encode.
|
||||||
*/
|
*/
|
||||||
export interface Param {
|
export interface Param {
|
||||||
name: string;
|
name: string;
|
||||||
value: unknown;
|
value: unknown;
|
||||||
in: ParamLocation;
|
in: ParamLocation;
|
||||||
style: ParamStyle,
|
style: ParamStyle,
|
||||||
explode: boolean;
|
explode: boolean;
|
||||||
dataType: DataType;
|
dataType: DataType;
|
||||||
dataFormat: DataFormat | undefined;
|
dataFormat: DataFormat | undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core";
|
import {EnvironmentProviders, makeEnvironmentProviders} from "@angular/core";
|
||||||
import { Configuration, ConfigurationParameters } from './configuration';
|
import {Configuration, ConfigurationParameters} from './configuration';
|
||||||
import { BASE_PATH } from './variables';
|
import {BASE_PATH} from './variables';
|
||||||
|
|
||||||
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
|
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
|
||||||
export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders {
|
export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders {
|
||||||
return makeEnvironmentProviders([
|
return makeEnvironmentProviders([
|
||||||
typeof configOrBasePath === "string"
|
typeof configOrBasePath === "string"
|
||||||
? { provide: BASE_PATH, useValue: configOrBasePath }
|
? {provide: BASE_PATH, useValue: configOrBasePath}
|
||||||
: {
|
: {
|
||||||
provide: Configuration,
|
provide: Configuration,
|
||||||
useValue: new Configuration({ ...configOrBasePath }),
|
useValue: new Configuration({...configOrBasePath}),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { HttpParams, HttpParameterCodec } from '@angular/common/http';
|
import {HttpParams, HttpParameterCodec} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec, IdentityHttpParameterCodec } from './encoder';
|
import {CustomHttpParameterCodec, IdentityHttpParameterCodec} from './encoder';
|
||||||
|
|
||||||
export enum QueryParamStyle {
|
export enum QueryParamStyle {
|
||||||
Json,
|
Json,
|
||||||
@@ -153,7 +153,7 @@ export function concatHttpParamsObject(httpParams: OpenApiHttpParams, key: strin
|
|||||||
|
|
||||||
function convertToString(value: any): string {
|
function convertToString(value: any): string {
|
||||||
if (value instanceof Date) {
|
if (value instanceof Date) {
|
||||||
return value.toISOString();
|
return value.toISOString();
|
||||||
} else {
|
} else {
|
||||||
return value.toString();
|
return value.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { InjectionToken } from '@angular/core';
|
import {InjectionToken} from '@angular/core';
|
||||||
|
|
||||||
export const BASE_PATH = new InjectionToken<string>('basePath');
|
export const BASE_PATH = new InjectionToken<string>('basePath');
|
||||||
export const COLLECTION_FORMATS = {
|
export const COLLECTION_FORMATS = {
|
||||||
|
|||||||
Reference in New Issue
Block a user