Added functions to send and see proof before valid participation from random challenge
This commit is contained in:
Generated
+148
@@ -18,6 +18,7 @@
|
||||
"@capacitor/angular": "^2.0.3",
|
||||
"@capacitor/core": "latest",
|
||||
"@ionic/angular": "^8.8.1",
|
||||
"@microsoft/signalr": "^10.0.0",
|
||||
"@openapitools/openapi-generator-cli": "^2.30.2",
|
||||
"@tailwindcss/postcss": "^4.2.1",
|
||||
"postcss": "^8.5.8",
|
||||
@@ -2323,6 +2324,28 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@microsoft/signalr": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@microsoft/signalr/-/signalr-10.0.0.tgz",
|
||||
"integrity": "sha512-0BRqz/uCx3JdrOqiqgFhih/+hfTERaUfCZXFB52uMaZJrKaPRzHzMuqVsJC/V3pt7NozcNXGspjKiQEK+X7P2w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"abort-controller": "^3.0.0",
|
||||
"eventsource": "^2.0.2",
|
||||
"fetch-cookie": "^2.0.3",
|
||||
"node-fetch": "^2.6.7",
|
||||
"ws": "^7.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@microsoft/signalr/node_modules/eventsource": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/eventsource/-/eventsource-2.0.2.tgz",
|
||||
"integrity": "sha512-IzUmBGPR3+oUG9dUeXynyNmf91/3zUSJg1lCktzKw47OXuhco54U3r9B7O4XX+Rb1Itm9OZ2b0RkTs10bICOxA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@modelcontextprotocol/sdk": {
|
||||
"version": "1.26.0",
|
||||
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.26.0.tgz",
|
||||
@@ -4671,6 +4694,18 @@
|
||||
"node": "^20.17.0 || >=22.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/abort-controller": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
|
||||
"integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"event-target-shim": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.5"
|
||||
}
|
||||
},
|
||||
"node_modules/accepts": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
|
||||
@@ -6088,6 +6123,15 @@
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/event-target-shim": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
|
||||
"integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/eventemitter3": {
|
||||
"version": "5.0.4",
|
||||
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",
|
||||
@@ -6245,6 +6289,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/fetch-cookie": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-2.2.0.tgz",
|
||||
"integrity": "sha512-h9AgfjURuCgA2+2ISl8GbavpUdR+WGAM2McW/ovn4tVccegp8ZqCKWSBR8uRdM8dDNlx5WdKRWxBYUwteLDCNQ==",
|
||||
"license": "Unlicense",
|
||||
"dependencies": {
|
||||
"set-cookie-parser": "^2.4.8",
|
||||
"tough-cookie": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/figures": {
|
||||
"version": "3.2.0",
|
||||
"resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz",
|
||||
@@ -8737,6 +8791,27 @@
|
||||
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/psl": {
|
||||
"version": "1.15.0",
|
||||
"resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz",
|
||||
"integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"punycode": "^2.3.1"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/lupomontero"
|
||||
}
|
||||
},
|
||||
"node_modules/punycode": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
|
||||
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/qs": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz",
|
||||
@@ -8753,6 +8828,12 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/querystringify": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz",
|
||||
"integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/range-parser": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
||||
@@ -8833,6 +8914,12 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/requires-port": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
|
||||
"integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/resolve": {
|
||||
"version": "1.22.10",
|
||||
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
|
||||
@@ -9104,6 +9191,12 @@
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/set-cookie-parser": {
|
||||
"version": "2.7.2",
|
||||
"resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
|
||||
"integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/setprototypeof": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
||||
@@ -9610,6 +9703,30 @@
|
||||
"url": "https://github.com/sponsors/Borewit"
|
||||
}
|
||||
},
|
||||
"node_modules/tough-cookie": {
|
||||
"version": "4.1.4",
|
||||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz",
|
||||
"integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"psl": "^1.1.33",
|
||||
"punycode": "^2.1.1",
|
||||
"universalify": "^0.2.0",
|
||||
"url-parse": "^1.5.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/tough-cookie/node_modules/universalify": {
|
||||
"version": "0.2.0",
|
||||
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz",
|
||||
"integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/tr46": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
||||
@@ -9805,6 +9922,16 @@
|
||||
"browserslist": ">= 4.21.0"
|
||||
}
|
||||
},
|
||||
"node_modules/url-parse": {
|
||||
"version": "1.5.10",
|
||||
"resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",
|
||||
"integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"querystringify": "^2.1.1",
|
||||
"requires-port": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/util-deprecate": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
||||
@@ -10075,6 +10202,27 @@
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/ws": {
|
||||
"version": "7.5.10",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz",
|
||||
"integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=8.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"bufferutil": "^4.0.1",
|
||||
"utf-8-validate": "^5.0.2"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"bufferutil": {
|
||||
"optional": true
|
||||
},
|
||||
"utf-8-validate": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/xml2js": {
|
||||
"version": "0.6.2",
|
||||
"resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz",
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
"@capacitor/angular": "^2.0.3",
|
||||
"@capacitor/core": "latest",
|
||||
"@ionic/angular": "^8.8.1",
|
||||
"@microsoft/signalr": "^10.0.0",
|
||||
"@openapitools/openapi-generator-cli": "^2.30.2",
|
||||
"@tailwindcss/postcss": "^4.2.1",
|
||||
"postcss": "^8.5.8",
|
||||
|
||||
@@ -1,25 +1,69 @@
|
||||
<div class="bg-white m-4 rounded-2xl border border-amber-200 shadow-sm p-4 space-y-3">
|
||||
|
||||
<div class="grid grid-cols-5 items-center">
|
||||
|
||||
<h3 class="col-span-4 text-base font-semibold text-gray-900 m-0">
|
||||
Title
|
||||
{{ data().label }}
|
||||
</h3>
|
||||
|
||||
<span class="col-span-1 text-right text-xs font-extrabold text-yellow-900 bg-amber-50 px-2 py-1 rounded-lg">
|
||||
{{ tag() }}
|
||||
</span>
|
||||
</div>
|
||||
<p class="text-[11px] text-gray-500 leading-relaxed">Description</p>
|
||||
|
||||
<p class="text-[11px] text-gray-500 leading-relaxed">{{ data().libelle }}</p>
|
||||
|
||||
<div class="grid grid-cols-5 items-center">
|
||||
<span class="col-span-4 text-[11px] text-gray-500">
|
||||
Info supplémentaire
|
||||
</span>
|
||||
<span class="col-span-4 text-[11px] text-gray-500">
|
||||
Aucun malus pour ce défi
|
||||
</span>
|
||||
|
||||
<div class="col-span-1 flex justify-end">
|
||||
<ion-button
|
||||
fill="clear"
|
||||
class="m-0 p-0 min-h-0 text-[11px] font-black bg-black text-white rounded-3xl"
|
||||
style="--padding-top: 4px; --padding-bottom: 4px;">
|
||||
style="--padding-top: 4px; --padding-bottom: 4px;"
|
||||
(touchstart)="setOpen(true, data().id)">
|
||||
{{ action() }}
|
||||
</ion-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ion-modal [isOpen]="isModalOpen">
|
||||
<ng-template>
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>Défi Quotidien</ion-title>
|
||||
<ion-buttons slot="start" style="--ion-color-primary: #0054E9;">
|
||||
<ion-back-button default-href="" (touchstart)="setOpen(false, null)"></ion-back-button>
|
||||
</ion-buttons>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
<ion-content class="ion-padding m-1" style="--background: #f7f6f2;">
|
||||
|
||||
<div class="mt-4 bg-white rounded-2xl shadow-sm p-4 space-y-3">
|
||||
<div class="grid grid-cols-5 items-center">
|
||||
<h3 class="col-span-4 text-base font-semibold text-gray-900 m-0">
|
||||
{{ data().label }}
|
||||
</h3>
|
||||
<span class="col-span-1 text-right text-xs font-extrabold text-yellow-900 bg-amber-50 px-2 py-1 rounded-lg">
|
||||
{{ tag() }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<p class="text-[11px] text-gray-500 leading-relaxed">{{ data().libelle }}</p>
|
||||
</div>
|
||||
|
||||
<app-tooltip title="Aucun malus si non réalisé"
|
||||
content="entièrement facultatif et solo. Points réduits comparé à un défi classique."></app-tooltip>
|
||||
|
||||
<div class="mb-6">
|
||||
<app-proof-form #proofForm></app-proof-form>
|
||||
</div>
|
||||
|
||||
<ion-button expand="block" (touchstart)="sendProof(data().id)">Soumettre ma preuve</ion-button>
|
||||
|
||||
</ion-content>
|
||||
</ng-template>
|
||||
</ion-modal>
|
||||
@@ -1,16 +1,74 @@
|
||||
import {Component, input} from '@angular/core';
|
||||
import {IonicModule} from "@ionic/angular";
|
||||
import {Component, inject, input, signal, viewChild} from '@angular/core';
|
||||
import {IonicModule, ToastController} from "@ionic/angular";
|
||||
import {GetRandomChallengeDto, RandomchallengesService} from "../../services/api";
|
||||
import {firstValueFrom} from "rxjs";
|
||||
import {TooltipComponent} from "../tooltip/tooltip.component";
|
||||
import {ProofFormComponent} from "../proof-form/proof-form.component";
|
||||
import {SignOnFormComponent} from "../sign-on-form/sign-on-form.component";
|
||||
|
||||
@Component({
|
||||
selector: 'app-challenge-card',
|
||||
templateUrl: './challenge-card.component.html',
|
||||
styleUrls: ['./challenge-card.component.scss'],
|
||||
imports: [
|
||||
IonicModule
|
||||
IonicModule,
|
||||
TooltipComponent,
|
||||
ProofFormComponent
|
||||
]
|
||||
})
|
||||
export class ChallengeCardComponent {
|
||||
private randomChallengesService = inject(RandomchallengesService);
|
||||
private toastCtrl = inject(ToastController);
|
||||
|
||||
action = input.required<string>();
|
||||
tag = input.required<string>();
|
||||
color = input.required<string>();
|
||||
data = input.required<GetRandomChallengeDto>();
|
||||
|
||||
selectedChallenge = signal<GetRandomChallengeDto>(null);
|
||||
|
||||
proof = viewChild<ProofFormComponent>('proofForm');
|
||||
|
||||
isModalOpen = false;
|
||||
|
||||
async setOpen(isOpen: boolean, randomChallengeId: number) {
|
||||
if (isOpen) {
|
||||
try {
|
||||
const userInfo = await firstValueFrom(this.randomChallengesService.getRandomChallengeEndpoint(randomChallengeId));
|
||||
this.selectedChallenge.set(userInfo);
|
||||
this.isModalOpen = isOpen;
|
||||
} catch {
|
||||
const toast = await this.toastCtrl.create({
|
||||
message: 'Impossible de charger les données du défi',
|
||||
duration: 2000,
|
||||
color: 'danger'
|
||||
});
|
||||
await toast.present();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async sendProof(randomChallengeId: number) {
|
||||
const file = this.proof().proofForm.value.proof;
|
||||
|
||||
try {
|
||||
await firstValueFrom(this.randomChallengesService.patchProofEndpoint(randomChallengeId, file));
|
||||
|
||||
this.isModalOpen = false;
|
||||
const toast = await this.toastCtrl.create({
|
||||
message: 'La preuve de ta réussite a bien été déposée',
|
||||
duration: 2000,
|
||||
color: 'success'
|
||||
});
|
||||
await toast.present();
|
||||
} catch(err) {
|
||||
const toast = await this.toastCtrl.create({
|
||||
message: 'Impossible de déposer ta preuve',
|
||||
duration: 2000,
|
||||
color: 'danger'
|
||||
});
|
||||
await toast.present();
|
||||
console.log(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<app-title-part textInfo="Ta preuve"></app-title-part>
|
||||
|
||||
<form [formGroup]="proofForm">
|
||||
<div [ngClass]="{ 'py-20': !previewUrl }" class="mt-2 rounded-lg p-1 bg-white border-2 border-dashed border-gray-300 flex items-center justify-center cursor-pointer overflow-hidden"
|
||||
(click)="fileInput.click()">
|
||||
|
||||
@if (previewUrl) {
|
||||
<ng-container>
|
||||
<img class="rounded-lg" [src]="previewUrl" alt=""/>
|
||||
</ng-container>
|
||||
} @else {
|
||||
<p class="text-xs text-gray-400 text-center"> Prendre une photo </p>
|
||||
}
|
||||
</div>
|
||||
|
||||
<input #fileInput type="file" hidden (change)="onFileChange(fileInput.files)">
|
||||
</form>
|
||||
@@ -0,0 +1,36 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators} from "@angular/forms";
|
||||
import {IonicModule} from "@ionic/angular";
|
||||
import {TitlePartComponent} from "../title-part/title-part.component";
|
||||
import {NgClass} from "@angular/common";
|
||||
|
||||
@Component({
|
||||
selector: 'app-proof-form',
|
||||
templateUrl: './proof-form.component.html',
|
||||
styleUrls: ['./proof-form.component.scss'],
|
||||
imports: [
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
ReactiveFormsModule,
|
||||
TitlePartComponent,
|
||||
NgClass
|
||||
]
|
||||
})
|
||||
export class ProofFormComponent {
|
||||
proofForm: FormGroup = new FormGroup({
|
||||
proof: new FormControl(null, [Validators.required]),
|
||||
})
|
||||
|
||||
previewUrl: string | null = null;
|
||||
|
||||
onFileChange(files?: FileList | null) {
|
||||
if (!files?.length) return;
|
||||
|
||||
const file = files[0];
|
||||
|
||||
this.previewUrl = URL.createObjectURL(file);
|
||||
this.proofForm.patchValue({
|
||||
proof: file
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
<div [ngClass]="{
|
||||
'border-l-red-700': color() == 'red',
|
||||
'border-l-green-700': color() == 'green'}"
|
||||
class="ml-4 mr-5 pl-4 border border-gray-400 rounded-r-xl border-l-{{color()}}-700 border-l-4 bg-[#f7f6f2]">
|
||||
class="mt-4 mb-4 pl-4 border border-gray-400 rounded-r-xl border-l-{{color()}}-700 border-l-4 bg-[#f7f6f2]">
|
||||
<p class="text-[11px] text-gray-600">
|
||||
<strong class="text-gray-900">{{ title() }}</strong>
|
||||
— {{ content() }}
|
||||
|
||||
@@ -17,16 +17,16 @@
|
||||
<ion-content style="--background: #f7f6f2;">
|
||||
<div class="mt-4">
|
||||
<app-title-part textInfo="Défi bonus du jour"></app-title-part>
|
||||
<app-challenge-card action="Regarder" tag="+1 pts" color=""></app-challenge-card>
|
||||
<app-challenge-card [data]="randomChallenge()" action="Regarder" tag="+1 pts" color=""></app-challenge-card>
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<app-title-part textInfo="Vote en attente"></app-title-part>
|
||||
<app-challenge-card action="Voir" tag="Vote" color=""></app-challenge-card>
|
||||
<app-challenge-card [data]="randomChallenge()" action="Voir" tag="Vote" color=""></app-challenge-card>
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<app-title-part textInfo="Défis en cours"></app-title-part>
|
||||
<app-challenge-card action="Participer" tag="Défis" color=""></app-challenge-card>
|
||||
<app-challenge-card [data]="randomChallenge()" action="Participer" tag="Défis" color=""></app-challenge-card>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {IonicModule} from "@ionic/angular";
|
||||
import {addIcons} from "ionicons";
|
||||
import {walkOutline, addOutline} from "ionicons/icons";
|
||||
import {TitlePartComponent} from "../../components/title-part/title-part.component";
|
||||
import {ChallengeCardComponent} from "../../components/challenge-card/challenge-card.component";
|
||||
import {Component, inject, OnInit, signal} from '@angular/core';
|
||||
import {IonicModule, ToastController} from "@ionic/angular";
|
||||
import { addIcons } from "ionicons";
|
||||
import { walkOutline, addOutline } from "ionicons/icons";
|
||||
import { TitlePartComponent } from "../../components/title-part/title-part.component";
|
||||
import { ChallengeCardComponent } from "../../components/challenge-card/challenge-card.component";
|
||||
import * as signalR from '@microsoft/signalr';
|
||||
import {GetRandomChallengeDto, RandomchallengesService} from "../../services/api";
|
||||
import {firstValueFrom} from "rxjs";
|
||||
|
||||
addIcons({
|
||||
'profile': walkOutline,
|
||||
@@ -20,5 +23,46 @@ addIcons({
|
||||
ChallengeCardComponent
|
||||
]
|
||||
})
|
||||
export class HomeComponent {
|
||||
}
|
||||
export class HomeComponent implements OnInit {
|
||||
|
||||
// private connection: signalR.HubConnection;
|
||||
//
|
||||
// ngOnInit(): void {
|
||||
// this.connection = new signalR.HubConnectionBuilder()
|
||||
// .withUrl('http://localhost:5235/timeHub', {
|
||||
// withCredentials: true
|
||||
// })
|
||||
// .build();
|
||||
//
|
||||
// this.connection.on('ReceiveTime', (time) => {
|
||||
// console.log('Server time:', time);
|
||||
// });
|
||||
//
|
||||
// this.connection.start()
|
||||
// .then(() => {
|
||||
// console.log('Connected to SignalR');
|
||||
// this.connection.invoke('SendTime');
|
||||
// })
|
||||
// .catch(err => console.error('Connection error:', err));
|
||||
// }
|
||||
|
||||
private randomChallengeService = inject(RandomchallengesService)
|
||||
private toastCtrl = inject(ToastController);
|
||||
|
||||
randomChallenge = signal<GetRandomChallengeDto>({});
|
||||
|
||||
async ngOnInit() {
|
||||
try {
|
||||
const randomChallenge = await firstValueFrom(this.randomChallengeService.generateRandomChallengeEndpoint());
|
||||
this.randomChallenge.set(randomChallenge);
|
||||
}
|
||||
catch {
|
||||
const toast = await this.toastCtrl.create({
|
||||
message: 'Impossible de générer un défi aléatoire',
|
||||
duration: 2000,
|
||||
color: 'danger'
|
||||
});
|
||||
await toast.present();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -73,9 +73,7 @@ export const appConfig: ApplicationConfig = {
|
||||
```
|
||||
|
||||
**NOTE**
|
||||
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you
|
||||
can still import an Angular module:
|
||||
|
||||
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
|
||||
```typescript
|
||||
import { ApiModule } from '';
|
||||
```
|
||||
@@ -183,7 +181,5 @@ new Configuration({
|
||||
```
|
||||
|
||||
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
||||
|
||||
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
||||
|
||||
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from './encoder';
|
||||
import {Configuration} from './configuration';
|
||||
import {OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params';
|
||||
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from './encoder';
|
||||
import { Configuration } from './configuration';
|
||||
import { OpenApiHttpParams, QueryParamStyle, concatHttpParamsObject} from './query.params';
|
||||
|
||||
export class BaseService {
|
||||
protected basePath = 'http://localhost:5235';
|
||||
@@ -18,7 +18,7 @@ export class BaseService {
|
||||
public configuration: Configuration;
|
||||
public encoder: HttpParameterCodec;
|
||||
|
||||
constructor(basePath?: string | string[], configuration?: Configuration) {
|
||||
constructor(basePath?: string|string[], configuration?: Configuration) {
|
||||
this.configuration = configuration || new Configuration();
|
||||
if (typeof this.configuration.basePath !== 'string') {
|
||||
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core';
|
||||
import {Configuration} from './configuration';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
||||
import { Configuration } from './configuration';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [],
|
||||
declarations: [],
|
||||
exports: [],
|
||||
providers: []
|
||||
imports: [],
|
||||
declarations: [],
|
||||
exports: [],
|
||||
providers: []
|
||||
})
|
||||
export class ApiModule {
|
||||
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
|
||||
return {
|
||||
ngModule: ApiModule,
|
||||
providers: [{provide: Configuration, useFactory: configurationFactory}]
|
||||
providers: [ { provide: Configuration, useFactory: configurationFactory } ]
|
||||
};
|
||||
}
|
||||
|
||||
constructor(@Optional() @SkipSelf() parentModule: ApiModule,
|
||||
@Optional() http: HttpClient) {
|
||||
constructor( @Optional() @SkipSelf() parentModule: ApiModule,
|
||||
@Optional() http: HttpClient) {
|
||||
if (parentModule) {
|
||||
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
||||
}
|
||||
if (!http) {
|
||||
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
||||
'See also https://github.com/angular/angular/issues/20575');
|
||||
'See also https://github.com/angular/angular/issues/20575');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,31 +9,31 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import {Inject, Injectable, Optional} from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||
|
||||
// @ts-ignore
|
||||
import {ErrorResponse} from '../model/error-response';
|
||||
import { ErrorResponse } from '../model/error-response';
|
||||
// @ts-ignore
|
||||
import {GetAchievementDto} from '../model/get-achievement-dto';
|
||||
import { GetAchievementDto } from '../model/get-achievement-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class AchievementsService extends BaseService {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
@@ -43,26 +43,10 @@ export class AchievementsService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public getAllAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -93,15 +77,15 @@ export class AchievementsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Achievements`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -113,26 +97,10 @@ export class AchievementsService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public getLockedAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -163,15 +131,15 @@ export class AchievementsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Achievements/Locked/Users`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -183,26 +151,10 @@ export class AchievementsService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public getUserAchievementsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -233,15 +185,15 @@ export class AchievementsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Achievements/Users`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetAchievementDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -249,31 +201,15 @@ export class AchievementsService extends BaseService {
|
||||
|
||||
/**
|
||||
* @endpoint post /API/Achievements/{achievementId}/Users
|
||||
* @param achievementId
|
||||
* @param achievementId
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/problem+json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public unlockAchievementEndpoint(achievementId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter achievementId was null or undefined when calling unlockAchievementEndpoint.');
|
||||
}
|
||||
@@ -306,24 +242,16 @@ export class AchievementsService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Achievements/${this.configuration.encodeParam({
|
||||
name: "achievementId",
|
||||
value: achievementId,
|
||||
in: "path",
|
||||
style: "simple",
|
||||
explode: false,
|
||||
dataType: "number",
|
||||
dataFormat: "int32"
|
||||
})}/Users`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/Achievements/${this.configuration.encodeParam({name: "achievementId", value: achievementId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Users`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,28 +1,19 @@
|
||||
export * from './achievements.service';
|
||||
import {AchievementsService} from './achievements.service';
|
||||
|
||||
import { AchievementsService } from './achievements.service';
|
||||
export * from './auth.service';
|
||||
import {AuthService} from './auth.service';
|
||||
|
||||
import { AuthService } from './auth.service';
|
||||
export * from './designations.service';
|
||||
import {DesignationsService} from './designations.service';
|
||||
|
||||
import { DesignationsService } from './designations.service';
|
||||
export * from './friends.service';
|
||||
import {FriendsService} from './friends.service';
|
||||
|
||||
import { FriendsService } from './friends.service';
|
||||
export * from './groups.service';
|
||||
import {GroupsService} from './groups.service';
|
||||
|
||||
import { GroupsService } from './groups.service';
|
||||
export * from './messages.service';
|
||||
import {MessagesService} from './messages.service';
|
||||
|
||||
import { MessagesService } from './messages.service';
|
||||
export * from './overallranking.service';
|
||||
import {OverallrankingService} from './overallranking.service';
|
||||
|
||||
import { OverallrankingService } from './overallranking.service';
|
||||
export * from './randomchallenges.service';
|
||||
import {RandomchallengesService} from './randomchallenges.service';
|
||||
|
||||
import { RandomchallengesService } from './randomchallenges.service';
|
||||
export * from './users.service';
|
||||
import {UsersService} from './users.service';
|
||||
|
||||
import { UsersService } from './users.service';
|
||||
export const APIS = [AchievementsService, AuthService, DesignationsService, FriendsService, GroupsService, MessagesService, OverallrankingService, RandomchallengesService, UsersService];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,65 +9,49 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import {Inject, Injectable, Optional} from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||
|
||||
// @ts-ignore
|
||||
import {ErrorResponse} from '../model/error-response';
|
||||
import { ErrorResponse } from '../model/error-response';
|
||||
// @ts-ignore
|
||||
import {GetTokenDto} from '../model/get-token-dto';
|
||||
import { GetTokenDto } from '../model/get-token-dto';
|
||||
// @ts-ignore
|
||||
import {LoginDto} from '../model/login-dto';
|
||||
import { LoginDto } from '../model/login-dto';
|
||||
// @ts-ignore
|
||||
import {RefreshTokenDto} from '../model/refresh-token-dto';
|
||||
import { RefreshTokenDto } from '../model/refresh-token-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class AuthService extends BaseService {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint post /API/Auth/Login
|
||||
* @param loginDto
|
||||
* @param loginDto
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public loginEndpoint(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
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?: '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) {
|
||||
throw new Error('Required parameter loginDto was null or undefined when calling loginEndpoint.');
|
||||
}
|
||||
@@ -108,16 +92,16 @@ export class AuthService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Auth/Login`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: loginDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -125,31 +109,15 @@ export class AuthService extends BaseService {
|
||||
|
||||
/**
|
||||
* @endpoint post /API/Auth/RefreshToken
|
||||
* @param refreshTokenDto
|
||||
* @param refreshTokenDto
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public refreshTokenEndpoint(refreshTokenDto: RefreshTokenDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json' | 'application/problem+json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
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?: '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) {
|
||||
throw new Error('Required parameter refreshTokenDto was null or undefined when calling refreshTokenEndpoint.');
|
||||
}
|
||||
@@ -190,16 +158,16 @@ export class AuthService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Auth/RefreshToken`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: refreshTokenDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,29 +9,29 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import {Inject, Injectable, Optional} from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||
|
||||
// @ts-ignore
|
||||
import {GetDesignationDto} from '../model/get-designation-dto';
|
||||
import { GetDesignationDto } from '../model/get-designation-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class DesignationsService extends BaseService {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
@@ -41,26 +41,10 @@ export class DesignationsService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public getAllDesignationsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -91,15 +75,15 @@ export class DesignationsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Designations`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetDesignationDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,61 +9,45 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import {Inject, Injectable, Optional} from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||
|
||||
// @ts-ignore
|
||||
import {GetFriendDto} from '../model/get-friend-dto';
|
||||
import { GetFriendDto } from '../model/get-friend-dto';
|
||||
// @ts-ignore
|
||||
import {GetFriendRequestDto} from '../model/get-friend-request-dto';
|
||||
import { GetFriendRequestDto } from '../model/get-friend-request-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class FriendsService extends BaseService {
|
||||
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
||||
super(basePath, configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint put /API/Friends/{friendId}/Request
|
||||
* @param friendId
|
||||
* @param friendId
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public acceptFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter friendId was null or undefined when calling acceptFriendRequestEndpoint.');
|
||||
}
|
||||
@@ -73,7 +57,8 @@ export class FriendsService extends BaseService {
|
||||
// authentication (JWTBearerAuth) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -94,24 +79,16 @@ export class FriendsService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
||||
name: "friendId",
|
||||
value: friendId,
|
||||
in: "path",
|
||||
style: "simple",
|
||||
explode: false,
|
||||
dataType: "number",
|
||||
dataFormat: "int32"
|
||||
})}/Request`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -119,31 +96,15 @@ export class FriendsService extends BaseService {
|
||||
|
||||
/**
|
||||
* @endpoint delete /API/Friends/{friendId}
|
||||
* @param friendId
|
||||
* @param friendId
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public deleteFriendEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter friendId was null or undefined when calling deleteFriendEndpoint.');
|
||||
}
|
||||
@@ -153,7 +114,8 @@ export class FriendsService extends BaseService {
|
||||
// authentication (JWTBearerAuth) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -174,24 +136,16 @@ export class FriendsService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
||||
name: "friendId",
|
||||
value: friendId,
|
||||
in: "path",
|
||||
style: "simple",
|
||||
explode: false,
|
||||
dataType: "number",
|
||||
dataFormat: "int32"
|
||||
})}`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -203,26 +157,10 @@ export class FriendsService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public getAllFriendRequestsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -253,15 +191,15 @@ export class FriendsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Friends/Requests`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetFriendRequestDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -273,26 +211,10 @@ export class FriendsService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public getAllFriendsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -323,15 +245,15 @@ export class FriendsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Friends`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetFriendDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -339,31 +261,15 @@ export class FriendsService extends BaseService {
|
||||
|
||||
/**
|
||||
* @endpoint delete /API/Friends/{friendId}/Request
|
||||
* @param friendId
|
||||
* @param friendId
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public rejectFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter friendId was null or undefined when calling rejectFriendRequestEndpoint.');
|
||||
}
|
||||
@@ -373,7 +279,8 @@ export class FriendsService extends BaseService {
|
||||
// authentication (JWTBearerAuth) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -394,24 +301,16 @@ export class FriendsService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
||||
name: "friendId",
|
||||
value: friendId,
|
||||
in: "path",
|
||||
style: "simple",
|
||||
explode: false,
|
||||
dataType: "number",
|
||||
dataFormat: "int32"
|
||||
})}/Request`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Request`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -419,31 +318,15 @@ export class FriendsService extends BaseService {
|
||||
|
||||
/**
|
||||
* @endpoint post /API/Friends/{friendId}
|
||||
* @param friendId
|
||||
* @param friendId
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<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> {
|
||||
public sendFriendRequestEndpoint(friendId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter friendId was null or undefined when calling sendFriendRequestEndpoint.');
|
||||
}
|
||||
@@ -453,7 +336,8 @@ export class FriendsService extends BaseService {
|
||||
// authentication (JWTBearerAuth) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -474,24 +358,16 @@ export class FriendsService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({
|
||||
name: "friendId",
|
||||
value: friendId,
|
||||
in: "path",
|
||||
style: "simple",
|
||||
explode: false,
|
||||
dataType: "number",
|
||||
dataFormat: "int32"
|
||||
})}`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/Friends/${this.configuration.encodeParam({name: "friendId", value: friendId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,64 +9,48 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import {Inject, Injectable, Optional} from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||
|
||||
// @ts-ignore
|
||||
import {CreateMessageDto} from '../model/create-message-dto';
|
||||
import { CreateMessageDto } from '../model/create-message-dto';
|
||||
// @ts-ignore
|
||||
import {ErrorResponse} from '../model/error-response';
|
||||
import { ErrorResponse } from '../model/error-response';
|
||||
// @ts-ignore
|
||||
import {GetMessageDto} from '../model/get-message-dto';
|
||||
import { GetMessageDto } from '../model/get-message-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint delete /API/Messages/{id}/Groups/{groupId}
|
||||
* @param id
|
||||
* @param 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> {
|
||||
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.');
|
||||
}
|
||||
@@ -79,7 +63,8 @@ export class MessagesService extends BaseService {
|
||||
// authentication (JWTBearerAuth) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -100,32 +85,16 @@ export class MessagesService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
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} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -133,31 +102,15 @@ export class MessagesService extends BaseService {
|
||||
|
||||
/**
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
* @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?: '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> {
|
||||
public getMessagesEndpoint(groupId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter groupId was null or undefined when calling getMessagesEndpoint.');
|
||||
}
|
||||
@@ -190,24 +143,16 @@ export class MessagesService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({
|
||||
name: "groupId",
|
||||
value: groupId,
|
||||
in: "path",
|
||||
style: "simple",
|
||||
explode: false,
|
||||
dataType: "number",
|
||||
dataFormat: "int32"
|
||||
})}`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/Messages/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<Array<GetMessageDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -215,32 +160,16 @@ export class MessagesService extends BaseService {
|
||||
|
||||
/**
|
||||
* @endpoint post /API/Messages/Groups/{groupId}
|
||||
* @param groupId
|
||||
* @param createMessageDto
|
||||
* @param groupId
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
* @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?: '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> {
|
||||
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?: '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) {
|
||||
throw new Error('Required parameter groupId was null or undefined when calling sendMessageEndpoint.');
|
||||
}
|
||||
@@ -285,25 +214,17 @@ export class MessagesService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Messages/Groups/${this.configuration.encodeParam({
|
||||
name: "groupId",
|
||||
value: groupId,
|
||||
in: "path",
|
||||
style: "simple",
|
||||
explode: false,
|
||||
dataType: "number",
|
||||
dataFormat: "int32"
|
||||
})}`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/Messages/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>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createMessageDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,29 +9,29 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import {Inject, Injectable, Optional} from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||
|
||||
// @ts-ignore
|
||||
import {GetUserDto} from '../model/get-user-dto';
|
||||
import { GetUserDto } from '../model/get-user-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class 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);
|
||||
}
|
||||
|
||||
@@ -41,26 +41,10 @@ export class OverallrankingService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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> {
|
||||
public getOverallRankingEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -91,15 +75,15 @@ export class OverallrankingService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/OverallRanking`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,31 +9,31 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import {Inject, Injectable, Optional} from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||
|
||||
// @ts-ignore
|
||||
import {GetRandomChallengeDto} from '../model/get-random-challenge-dto';
|
||||
import { GetRandomChallengeDto } from '../model/get-random-challenge-dto';
|
||||
// @ts-ignore
|
||||
import {RandomChallengeProofRequest} from '../model/random-challenge-proof-request';
|
||||
import { RandomChallengeProofRequest } from '../model/random-challenge-proof-request';
|
||||
|
||||
// @ts-ignore
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class 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);
|
||||
}
|
||||
|
||||
@@ -43,33 +43,19 @@ export class RandomchallengesService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<any>;
|
||||
public generateRandomChallengeEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<HttpResponse<any>>;
|
||||
public generateRandomChallengeEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<HttpEvent<any>>;
|
||||
public generateRandomChallengeEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<any> {
|
||||
public generateRandomChallengeEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
// authentication (JWTBearerAuth) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -91,15 +77,15 @@ export class RandomchallengesService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/RandomChallenges`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetRandomChallengeDto>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -107,31 +93,15 @@ export class RandomchallengesService extends BaseService {
|
||||
|
||||
/**
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
* @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?: '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> {
|
||||
public getRandomChallengeEndpoint(randomChallengeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter randomChallengeId was null or undefined when calling getRandomChallengeEndpoint.');
|
||||
}
|
||||
@@ -164,24 +134,16 @@ 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"
|
||||
})}`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -189,32 +151,16 @@ export class RandomchallengesService extends BaseService {
|
||||
|
||||
/**
|
||||
* @endpoint patch /API/RandomChallenges/{randomChallengeId}/Proof
|
||||
* @param randomChallengeId
|
||||
* @param randomChallengeProofRequest
|
||||
* @param randomChallengeId
|
||||
* @param randomChallengeProofRequest
|
||||
* @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 patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<any>;
|
||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'response', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<HttpResponse<any>>;
|
||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'events', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<HttpEvent<any>>;
|
||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<any> {
|
||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
||||
public patchProofEndpoint(randomChallengeId: number, randomChallengeProofRequest: RandomChallengeProofRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
if (randomChallengeId === null || randomChallengeId === undefined) {
|
||||
throw new Error('Required parameter randomChallengeId was null or undefined when calling patchProofEndpoint.');
|
||||
}
|
||||
@@ -227,7 +173,8 @@ export class RandomchallengesService extends BaseService {
|
||||
// authentication (JWTBearerAuth) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -257,25 +204,17 @@ 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`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/RandomChallenges/${this.configuration.encodeParam({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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: randomChallengeProofRequest,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,75 +9,59 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import {Inject, Injectable, Optional} from '@angular/core';
|
||||
import {
|
||||
HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {OpenApiHttpParams, QueryParamStyle} from '../query.params';
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent, HttpContext
|
||||
} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
||||
|
||||
// @ts-ignore
|
||||
import {CreateUserDto} from '../model/create-user-dto';
|
||||
import { CreateUserDto } from '../model/create-user-dto';
|
||||
// @ts-ignore
|
||||
import {ErrorResponse} from '../model/error-response';
|
||||
import { ErrorResponse } from '../model/error-response';
|
||||
// @ts-ignore
|
||||
import {GetUserChallengeDto} from '../model/get-user-challenge-dto';
|
||||
import { GetUserChallengeDto } from '../model/get-user-challenge-dto';
|
||||
// @ts-ignore
|
||||
import {GetUserDetailsDto} from '../model/get-user-details-dto';
|
||||
import { GetUserDetailsDto } from '../model/get-user-details-dto';
|
||||
// @ts-ignore
|
||||
import {GetUserDto} from '../model/get-user-dto';
|
||||
import { GetUserDto } from '../model/get-user-dto';
|
||||
// @ts-ignore
|
||||
import {GetUserProofDto} from '../model/get-user-proof-dto';
|
||||
import { GetUserProofDto } from '../model/get-user-proof-dto';
|
||||
// @ts-ignore
|
||||
import {PatchUserDesignationDto} from '../model/patch-user-designation-dto';
|
||||
import { PatchUserDesignationDto } from '../model/patch-user-designation-dto';
|
||||
// @ts-ignore
|
||||
import {PatchUserPasswordDto} from '../model/patch-user-password-dto';
|
||||
import { PatchUserPasswordDto } from '../model/patch-user-password-dto';
|
||||
// @ts-ignore
|
||||
import {UpdateUserDto} from '../model/update-user-dto';
|
||||
import { UpdateUserDto } from '../model/update-user-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
* @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?: '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> {
|
||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.');
|
||||
}
|
||||
@@ -117,16 +101,16 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createUserDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -138,33 +122,18 @@ export class UsersService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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> {
|
||||
public deleteUserEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, 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;
|
||||
|
||||
// authentication (JWTBearerAuth) required
|
||||
localVarHeaders = this.configuration.addCredentialToHeaders('JWTBearerAuth', 'Authorization', localVarHeaders, 'Bearer ');
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -186,15 +155,15 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -206,26 +175,10 @@ export class UsersService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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> {
|
||||
public getAllUserChallengesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -256,15 +209,15 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users/Challenges`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetUserChallengeDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -276,26 +229,10 @@ export class UsersService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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> {
|
||||
public getAllUserProofsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -326,15 +263,15 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users/Proofs`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetUserProofDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -346,26 +283,10 @@ export class UsersService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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> {
|
||||
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -396,15 +317,15 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -416,26 +337,10 @@ export class UsersService extends BaseService {
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
* @param options additional options
|
||||
*/
|
||||
public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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> {
|
||||
public getUserDetailsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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;
|
||||
|
||||
@@ -466,15 +371,15 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users/Details`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetUserDetailsDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -482,31 +387,15 @@ export class UsersService extends BaseService {
|
||||
|
||||
/**
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
* @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?: '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> {
|
||||
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.');
|
||||
}
|
||||
@@ -539,24 +428,16 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users/${this.configuration.encodeParam({
|
||||
name: "id",
|
||||
value: id,
|
||||
in: "path",
|
||||
style: "simple",
|
||||
explode: false,
|
||||
dataType: "number",
|
||||
dataFormat: "int32"
|
||||
})}`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
let localVarPath = `/API/Users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -564,31 +445,15 @@ export class UsersService extends BaseService {
|
||||
|
||||
/**
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
* @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?: '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> {
|
||||
public patchUserDesignationEndpoint(patchUserDesignationDto: PatchUserDesignationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter patchUserDesignationDto was null or undefined when calling patchUserDesignationEndpoint.');
|
||||
}
|
||||
@@ -631,16 +496,16 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users/Designation`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: patchUserDesignationDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -648,31 +513,15 @@ export class UsersService extends BaseService {
|
||||
|
||||
/**
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
* @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?: '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> {
|
||||
public patchUserPasswordEndpoint(patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter patchUserPasswordDto was null or undefined when calling patchUserPasswordEndpoint.');
|
||||
}
|
||||
@@ -715,16 +564,16 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users/Password`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: patchUserPasswordDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -732,31 +581,15 @@ export class UsersService extends BaseService {
|
||||
|
||||
/**
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
* @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?: '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> {
|
||||
public updateUserEndpoint(updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/problem+json', context?: HttpContext, 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) {
|
||||
throw new Error('Required parameter updateUserDto was null or undefined when calling updateUserEndpoint.');
|
||||
}
|
||||
@@ -796,16 +629,16 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/Users`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: updateUserDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import {HttpHeaders, HttpParameterCodec} from '@angular/common/http';
|
||||
import {Param} from './param';
|
||||
import {OpenApiHttpParams} from './query.params';
|
||||
import { HttpHeaders, HttpParameterCodec } from '@angular/common/http';
|
||||
import { Param } from './param';
|
||||
import { OpenApiHttpParams } from './query.params';
|
||||
|
||||
export interface ConfigurationParameters {
|
||||
/**
|
||||
* @deprecated Since 5.0. Use credentials instead
|
||||
*/
|
||||
apiKeys?: { [key: string]: string };
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
username?: string;
|
||||
password?: string;
|
||||
/**
|
||||
@@ -32,14 +32,14 @@ export interface ConfigurationParameters {
|
||||
* document. They should map to the value used for authentication
|
||||
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
||||
*/
|
||||
credentials?: { [key: string]: string | (() => string | undefined) };
|
||||
credentials?: {[ key: string ]: string | (() => string | undefined)};
|
||||
}
|
||||
|
||||
export class Configuration {
|
||||
/**
|
||||
* @deprecated Since 5.0. Use credentials instead
|
||||
*/
|
||||
apiKeys?: { [key: string]: string };
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
username?: string;
|
||||
password?: string;
|
||||
/**
|
||||
@@ -65,19 +65,9 @@ export class Configuration {
|
||||
* document. They should map to the value used for authentication
|
||||
* 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) {
|
||||
this.apiKeys = apiKeys;
|
||||
}
|
||||
@@ -119,7 +109,7 @@ export class Configuration {
|
||||
* @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.
|
||||
*/
|
||||
public selectHeaderContentType(contentTypes: string[]): string | undefined {
|
||||
public selectHeaderContentType (contentTypes: string[]): string | undefined {
|
||||
if (contentTypes.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {HttpParameterCodec} from '@angular/common/http';
|
||||
import { HttpParameterCodec } from '@angular/common/http';
|
||||
|
||||
/**
|
||||
* Custom HttpParameterCodec
|
||||
@@ -8,15 +8,12 @@ export class CustomHttpParameterCodec implements HttpParameterCodec {
|
||||
encodeKey(k: string): string {
|
||||
return encodeURIComponent(k);
|
||||
}
|
||||
|
||||
encodeValue(v: string): string {
|
||||
return encodeURIComponent(v);
|
||||
}
|
||||
|
||||
decodeKey(k: string): string {
|
||||
return decodeURIComponent(k);
|
||||
}
|
||||
|
||||
decodeValue(v: string): string {
|
||||
return decodeURIComponent(v);
|
||||
}
|
||||
@@ -26,15 +23,12 @@ export class IdentityHttpParameterCodec implements HttpParameterCodec {
|
||||
encodeKey(k: string): string {
|
||||
return k;
|
||||
}
|
||||
|
||||
encodeValue(v: string): string {
|
||||
return v;
|
||||
}
|
||||
|
||||
decodeKey(k: string): string {
|
||||
return k;
|
||||
}
|
||||
|
||||
decodeValue(v: string): string {
|
||||
return v;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import {CreateUserGroupDto} from './create-user-group-dto';
|
||||
import { CreateUserGroupDto } from './create-user-group-dto';
|
||||
|
||||
|
||||
export interface CreateGroupDto {
|
||||
export interface CreateGroupDto {
|
||||
label: string;
|
||||
title: string;
|
||||
description: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface CreateMessageDto {
|
||||
export interface CreateMessageDto {
|
||||
libelle: string;
|
||||
sendDate: string;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface CreateUserDto {
|
||||
export interface CreateUserDto {
|
||||
firstName: string;
|
||||
name: string;
|
||||
username: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface CreateUserGroupDto {
|
||||
export interface CreateUserGroupDto {
|
||||
userId?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -12,7 +12,7 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetAchievementDto {
|
||||
export interface GetAchievementDto {
|
||||
id?: number;
|
||||
label?: string | null;
|
||||
description?: string | null;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetDesignationDto {
|
||||
export interface GetDesignationDto {
|
||||
id?: number;
|
||||
label?: string | null;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetFriendDto {
|
||||
export interface GetFriendDto {
|
||||
friendId?: number;
|
||||
username?: string | null;
|
||||
score?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetFriendRequestDto {
|
||||
export interface GetFriendRequestDto {
|
||||
userId?: number;
|
||||
username?: string | null;
|
||||
score?: number;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import {GetMessageDto} from './get-message-dto';
|
||||
import {GetUserGroupDto} from './get-user-group-dto';
|
||||
import { GetMessageDto } from './get-message-dto';
|
||||
import { GetUserGroupDto } from './get-user-group-dto';
|
||||
|
||||
|
||||
export interface GetGroupDetailsDto {
|
||||
export interface GetGroupDetailsDto {
|
||||
id?: number;
|
||||
label?: string | null;
|
||||
isFinished?: boolean;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetGroupDto {
|
||||
export interface GetGroupDto {
|
||||
id?: number;
|
||||
label?: string | null;
|
||||
isFinished?: boolean;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetGroupRankingDto {
|
||||
export interface GetGroupRankingDto {
|
||||
userId?: number;
|
||||
username?: string | null;
|
||||
score?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetMessageDto {
|
||||
export interface GetMessageDto {
|
||||
id?: number;
|
||||
libelle?: string | null;
|
||||
sendDate?: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetProofDto {
|
||||
export interface GetProofDto {
|
||||
userId?: number;
|
||||
username?: string | null;
|
||||
proof?: string | null;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,8 +9,9 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetRandomChallengeDto {
|
||||
export interface GetRandomChallengeDto {
|
||||
id?: number;
|
||||
label?: string | null;
|
||||
libelle?: string | null;
|
||||
duration?: number;
|
||||
isAlreadyPast?: boolean;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetTokenDto {
|
||||
export interface GetTokenDto {
|
||||
token?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetUserChallengeDto {
|
||||
export interface GetUserChallengeDto {
|
||||
challengeTitle?: string | null;
|
||||
challengeDescription?: string | null;
|
||||
challengeDuration?: number;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import {GetUserStatsDto} from './get-user-stats-dto';
|
||||
import { GetUserStatsDto } from './get-user-stats-dto';
|
||||
|
||||
|
||||
export interface GetUserDetailsDto {
|
||||
export interface GetUserDetailsDto {
|
||||
id?: number;
|
||||
firstName?: string | null;
|
||||
name?: string | null;
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import {GetUserStatsDto} from './get-user-stats-dto';
|
||||
import { GetUserStatsDto } from './get-user-stats-dto';
|
||||
|
||||
|
||||
export interface GetUserDto {
|
||||
export interface GetUserDto {
|
||||
id?: number;
|
||||
firstName?: string | null;
|
||||
name?: string | null;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetUserGroupDto {
|
||||
export interface GetUserGroupDto {
|
||||
id?: number;
|
||||
username?: string | null;
|
||||
grade?: string | null;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetUserProofDto {
|
||||
export interface GetUserProofDto {
|
||||
id?: number;
|
||||
proof?: string | null;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface GetUserStatsDto {
|
||||
export interface GetUserStatsDto {
|
||||
id?: number;
|
||||
score?: number;
|
||||
totalWin?: number;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface LoginDto {
|
||||
export interface LoginDto {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface PatchUserDesignationDto {
|
||||
export interface PatchUserDesignationDto {
|
||||
designationId: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface PatchUserPasswordDto {
|
||||
export interface PatchUserPasswordDto {
|
||||
password: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface RandomChallengeProofRequest {
|
||||
export interface RandomChallengeProofRequest {
|
||||
proof?: Blob | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface RefreshTokenDto {
|
||||
export interface RefreshTokenDto {
|
||||
token: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface UpdateUserDto {
|
||||
export interface UpdateUserDto {
|
||||
firstName: string;
|
||||
name: string;
|
||||
username: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface UserProofRequest {
|
||||
export interface UserProofRequest {
|
||||
proof?: Blob | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* BeReadyBackend
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
|
||||
export interface UserVoteRequest {
|
||||
export interface UserVoteRequest {
|
||||
votedProofId?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
* Standard parameter styles defined by OpenAPI spec
|
||||
*/
|
||||
export type StandardParamStyle =
|
||||
| 'matrix'
|
||||
| 'label'
|
||||
| 'form'
|
||||
| 'simple'
|
||||
| 'spaceDelimited'
|
||||
| 'pipeDelimited'
|
||||
| 'deepObject'
|
||||
;
|
||||
| 'matrix'
|
||||
| 'label'
|
||||
| 'form'
|
||||
| 'simple'
|
||||
| 'spaceDelimited'
|
||||
| 'pipeDelimited'
|
||||
| 'deepObject'
|
||||
;
|
||||
|
||||
/**
|
||||
* 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>
|
||||
*/
|
||||
export type StandardDataType =
|
||||
| "integer"
|
||||
| "number"
|
||||
| "boolean"
|
||||
| "string"
|
||||
| "object"
|
||||
| "array"
|
||||
;
|
||||
| "integer"
|
||||
| "number"
|
||||
| "boolean"
|
||||
| "string"
|
||||
| "object"
|
||||
| "array"
|
||||
;
|
||||
|
||||
/**
|
||||
* 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>
|
||||
*/
|
||||
export type StandardDataFormat =
|
||||
| "int32"
|
||||
| "int64"
|
||||
| "float"
|
||||
| "double"
|
||||
| "byte"
|
||||
| "binary"
|
||||
| "date"
|
||||
| "date-time"
|
||||
| "password"
|
||||
;
|
||||
| "int32"
|
||||
| "int64"
|
||||
| "float"
|
||||
| "double"
|
||||
| "byte"
|
||||
| "binary"
|
||||
| "date"
|
||||
| "date-time"
|
||||
| "password"
|
||||
;
|
||||
|
||||
export type DataFormat = StandardDataFormat | string;
|
||||
|
||||
@@ -59,11 +59,11 @@ export type DataFormat = StandardDataFormat | string;
|
||||
* The parameter to encode.
|
||||
*/
|
||||
export interface Param {
|
||||
name: string;
|
||||
value: unknown;
|
||||
in: ParamLocation;
|
||||
style: ParamStyle,
|
||||
explode: boolean;
|
||||
dataType: DataType;
|
||||
dataFormat: DataFormat | undefined;
|
||||
name: string;
|
||||
value: unknown;
|
||||
in: ParamLocation;
|
||||
style: ParamStyle,
|
||||
explode: boolean;
|
||||
dataType: DataType;
|
||||
dataFormat: DataFormat | undefined;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import {EnvironmentProviders, makeEnvironmentProviders} from "@angular/core";
|
||||
import {Configuration, ConfigurationParameters} from './configuration';
|
||||
import {BASE_PATH} from './variables';
|
||||
import { EnvironmentProviders, makeEnvironmentProviders } from "@angular/core";
|
||||
import { Configuration, ConfigurationParameters } from './configuration';
|
||||
import { BASE_PATH } from './variables';
|
||||
|
||||
// Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
|
||||
export function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders {
|
||||
return makeEnvironmentProviders([
|
||||
typeof configOrBasePath === "string"
|
||||
? {provide: BASE_PATH, useValue: configOrBasePath}
|
||||
? { provide: BASE_PATH, useValue: configOrBasePath }
|
||||
: {
|
||||
provide: Configuration,
|
||||
useValue: new Configuration({...configOrBasePath}),
|
||||
useValue: new Configuration({ ...configOrBasePath }),
|
||||
},
|
||||
]);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import {HttpParams, HttpParameterCodec} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec, IdentityHttpParameterCodec} from './encoder';
|
||||
import { HttpParams, HttpParameterCodec } from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec, IdentityHttpParameterCodec } from './encoder';
|
||||
|
||||
export enum QueryParamStyle {
|
||||
Json,
|
||||
@@ -153,7 +153,7 @@ export function concatHttpParamsObject(httpParams: OpenApiHttpParams, key: strin
|
||||
|
||||
function convertToString(value: any): string {
|
||||
if (value instanceof Date) {
|
||||
return value.toISOString();
|
||||
return value.toISOString();
|
||||
} else {
|
||||
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 COLLECTION_FORMATS = {
|
||||
|
||||
Reference in New Issue
Block a user