frontend vibecoded chnages

This commit is contained in:
2026-07-24 17:46:52 +02:00
parent f5154a87e0
commit c23d8bbb90
63 changed files with 1125 additions and 1938 deletions
@@ -0,0 +1,132 @@
/* @ts-nocheck */
/* eslint-disable */
/* @noformat */
/* @formatter:off */
/**
* Generated by ng-openapi
* Generated Angular service for SessionController controller
* Do not edit this file manually
*/
import { HttpClient, HttpContext, HttpContextToken, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from "@angular/common/http";
import { inject, Injectable } from "@angular/core";
import { Observable } from "rxjs";
import { BASE_PATH_DEFAULT, CLIENT_CONTEXT_TOKEN_DEFAULT } from "../tokens";
import { HttpParamsBuilder } from "../utils/http-params-builder";
import { RequestOptions, User, Session } from "../models";
@Injectable({ providedIn: "root" })
export class SessionControllerService {
private readonly httpClient: HttpClient = inject(HttpClient);
private readonly basePath: string = inject(BASE_PATH_DEFAULT);
private readonly clientContextToken: HttpContextToken<string> = CLIENT_CONTEXT_TOKEN_DEFAULT;
private createContextWithClientId(existingContext?: HttpContext): HttpContext {
const context = existingContext || new HttpContext();
return context.set(this.clientContextToken, 'default');
}
addMusic(musicId: string, observe?: 'body', options?: RequestOptions<'json'>): Observable<User>;
addMusic(musicId: string, observe?: 'response', options?: RequestOptions<'json'>): Observable<HttpResponse<User>>;
addMusic(musicId: string, observe?: 'events', options?: RequestOptions<'json'>): Observable<HttpEvent<User>>;
addMusic(musicId: string, observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
const url = `${this.basePath}/session/music/add/${musicId}`;
let headers: HttpHeaders;
if (options?.headers instanceof HttpHeaders) {
headers = options.headers;
} else {
headers = new HttpHeaders(options?.headers);
}
// Advertise the response content type declared in the spec
if (!headers.has('Accept')) {
headers = headers.set('Accept', 'application/json');
}
return this.httpClient.request('post', url, {
body: null,
observe,
headers,
reportProgress: options?.reportProgress,
withCredentials: options?.withCredentials,
context: this.createContextWithClientId(options?.context)
});
}
getSession(observe?: 'body', options?: RequestOptions<'json'>): Observable<Session>;
getSession(observe?: 'response', options?: RequestOptions<'json'>): Observable<HttpResponse<Session>>;
getSession(observe?: 'events', options?: RequestOptions<'json'>): Observable<HttpEvent<Session>>;
getSession(observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
const url = `${this.basePath}/session`;
let headers: HttpHeaders;
if (options?.headers instanceof HttpHeaders) {
headers = options.headers;
} else {
headers = new HttpHeaders(options?.headers);
}
// Advertise the response content type declared in the spec
if (!headers.has('Accept')) {
headers = headers.set('Accept', 'application/json');
}
return this.httpClient.request('get', url, {
observe,
headers,
reportProgress: options?.reportProgress,
withCredentials: options?.withCredentials,
context: this.createContextWithClientId(options?.context)
});
}
playNext(observe?: 'body', options?: RequestOptions<'json'>): Observable<Session>;
playNext(observe?: 'response', options?: RequestOptions<'json'>): Observable<HttpResponse<Session>>;
playNext(observe?: 'events', options?: RequestOptions<'json'>): Observable<HttpEvent<Session>>;
playNext(observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
const url = `${this.basePath}/session/testing/play/next`;
let headers: HttpHeaders;
if (options?.headers instanceof HttpHeaders) {
headers = options.headers;
} else {
headers = new HttpHeaders(options?.headers);
}
// Advertise the response content type declared in the spec
if (!headers.has('Accept')) {
headers = headers.set('Accept', 'application/json');
}
return this.httpClient.request('get', url, {
observe,
headers,
reportProgress: options?.reportProgress,
withCredentials: options?.withCredentials,
context: this.createContextWithClientId(options?.context)
});
}
nextUser(observe?: 'body', options?: RequestOptions<'json'>): Observable<Session>;
nextUser(observe?: 'response', options?: RequestOptions<'json'>): Observable<HttpResponse<Session>>;
nextUser(observe?: 'events', options?: RequestOptions<'json'>): Observable<HttpEvent<Session>>;
nextUser(observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
const url = `${this.basePath}/session/testing/next/user`;
let headers: HttpHeaders;
if (options?.headers instanceof HttpHeaders) {
headers = options.headers;
} else {
headers = new HttpHeaders(options?.headers);
}
// Advertise the response content type declared in the spec
if (!headers.has('Accept')) {
headers = headers.set('Accept', 'application/json');
}
return this.httpClient.request('get', url, {
observe,
headers,
reportProgress: options?.reportProgress,
withCredentials: options?.withCredentials,
context: this.createContextWithClientId(options?.context)
});
}
}