frontend vibecoded chnages
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
/* @ts-nocheck */
|
||||
/* eslint-disable */
|
||||
/* @noformat */
|
||||
/* @formatter:off */
|
||||
/**
|
||||
* Generated by ng-openapi
|
||||
* Generated Angular service for ClientController 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 { ClientRegistrationRequestDto, RequestOptions, Client } from "../models";
|
||||
|
||||
@Injectable({ providedIn: "root" })
|
||||
export class ClientControllerService {
|
||||
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');
|
||||
}
|
||||
|
||||
registerClient(clientRegistrationRequestDto: ClientRegistrationRequestDto, observe?: 'body', options?: RequestOptions<'json'>): Observable<Client>;
|
||||
registerClient(clientRegistrationRequestDto: ClientRegistrationRequestDto, observe?: 'response', options?: RequestOptions<'json'>): Observable<HttpResponse<Client>>;
|
||||
registerClient(clientRegistrationRequestDto: ClientRegistrationRequestDto, observe?: 'events', options?: RequestOptions<'json'>): Observable<HttpEvent<Client>>;
|
||||
registerClient(clientRegistrationRequestDto: ClientRegistrationRequestDto, observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
|
||||
const url = `${this.basePath}/api/client/register`;
|
||||
|
||||
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');
|
||||
}
|
||||
// Set Content-Type for JSON requests if not already set
|
||||
if (!headers.has('Content-Type')) {
|
||||
headers = headers.set('Content-Type', 'application/json');
|
||||
}
|
||||
|
||||
return this.httpClient.request('post', url, {
|
||||
body: clientRegistrationRequestDto,
|
||||
observe,
|
||||
headers,
|
||||
reportProgress: options?.reportProgress,
|
||||
withCredentials: options?.withCredentials,
|
||||
context: this.createContextWithClientId(options?.context)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
/* @ts-nocheck */
|
||||
/* eslint-disable */
|
||||
/* @noformat */
|
||||
/* @formatter:off */
|
||||
/**
|
||||
* Generated by ng-openapi
|
||||
* Generated Angular service for HealthController 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 } from "../models";
|
||||
|
||||
@Injectable({ providedIn: "root" })
|
||||
export class HealthControllerService {
|
||||
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');
|
||||
}
|
||||
|
||||
ping(observe?: 'body', options?: RequestOptions<'text'>): Observable<string>;
|
||||
ping(observe?: 'response', options?: RequestOptions<'text'>): Observable<HttpResponse<string>>;
|
||||
ping(observe?: 'events', options?: RequestOptions<'text'>): Observable<HttpEvent<string>>;
|
||||
ping(observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
|
||||
const url = `${this.basePath}/health/ping`;
|
||||
|
||||
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,
|
||||
responseType: 'text',
|
||||
reportProgress: options?.reportProgress,
|
||||
withCredentials: options?.withCredentials,
|
||||
context: this.createContextWithClientId(options?.context)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/* @ts-nocheck */
|
||||
/* eslint-disable */
|
||||
/* @noformat */
|
||||
/* @formatter:off */
|
||||
/**
|
||||
* Generated by ng-openapi
|
||||
* Generated service exports
|
||||
* Do not edit this file manually
|
||||
*/
|
||||
export { ClientControllerService } from "./clientController.service";
|
||||
export { HealthControllerService } from "./healthController.service";
|
||||
export { PlayerControllerService } from "./playerController.service";
|
||||
export { SessionControllerService } from "./sessionController.service";
|
||||
export { UserControllerService } from "./userController.service";
|
||||
export { YoutubeControllerService } from "./youtubeController.service";
|
||||
@@ -0,0 +1,55 @@
|
||||
/* @ts-nocheck */
|
||||
/* eslint-disable */
|
||||
/* @noformat */
|
||||
/* @formatter:off */
|
||||
/**
|
||||
* Generated by ng-openapi
|
||||
* Generated Angular service for PlayerController 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 } from "../models";
|
||||
|
||||
@Injectable({ providedIn: "root" })
|
||||
export class PlayerControllerService {
|
||||
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');
|
||||
}
|
||||
|
||||
play(id: string, observe?: 'body', options?: RequestOptions<'text'>): Observable<string>;
|
||||
play(id: string, observe?: 'response', options?: RequestOptions<'text'>): Observable<HttpResponse<string>>;
|
||||
play(id: string, observe?: 'events', options?: RequestOptions<'text'>): Observable<HttpEvent<string>>;
|
||||
play(id: string, observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
|
||||
const url = `${this.basePath}/api/player/play/${id}`;
|
||||
|
||||
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,
|
||||
responseType: 'text',
|
||||
reportProgress: options?.reportProgress,
|
||||
withCredentials: options?.withCredentials,
|
||||
context: this.createContextWithClientId(options?.context)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
/* @ts-nocheck */
|
||||
/* eslint-disable */
|
||||
/* @noformat */
|
||||
/* @formatter:off */
|
||||
/**
|
||||
* Generated by ng-openapi
|
||||
* Generated Angular service for UserController 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 { CreateUserRequest, RequestOptions, User } from "../models";
|
||||
|
||||
@Injectable({ providedIn: "root" })
|
||||
export class UserControllerService {
|
||||
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');
|
||||
}
|
||||
|
||||
createUser(createUserRequest: CreateUserRequest, observe?: 'body', options?: RequestOptions<'json'>): Observable<Array<User>>;
|
||||
createUser(createUserRequest: CreateUserRequest, observe?: 'response', options?: RequestOptions<'json'>): Observable<HttpResponse<Array<User>>>;
|
||||
createUser(createUserRequest: CreateUserRequest, observe?: 'events', options?: RequestOptions<'json'>): Observable<HttpEvent<Array<User>>>;
|
||||
createUser(createUserRequest: CreateUserRequest, observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
|
||||
const url = `${this.basePath}/api/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');
|
||||
}
|
||||
// Set Content-Type for JSON requests if not already set
|
||||
if (!headers.has('Content-Type')) {
|
||||
headers = headers.set('Content-Type', 'application/json');
|
||||
}
|
||||
|
||||
return this.httpClient.request('post', url, {
|
||||
body: createUserRequest,
|
||||
observe,
|
||||
headers,
|
||||
reportProgress: options?.reportProgress,
|
||||
withCredentials: options?.withCredentials,
|
||||
context: this.createContextWithClientId(options?.context)
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
/* @ts-nocheck */
|
||||
/* eslint-disable */
|
||||
/* @noformat */
|
||||
/* @formatter:off */
|
||||
/**
|
||||
* Generated by ng-openapi
|
||||
* Generated Angular service for YoutubeController 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 { QueryDto, RequestOptions, MusicRecord } from "../models";
|
||||
|
||||
@Injectable({ providedIn: "root" })
|
||||
export class YoutubeControllerService {
|
||||
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');
|
||||
}
|
||||
|
||||
query(queryDto: QueryDto, observe?: 'body', options?: RequestOptions<'json'>): Observable<Array<MusicRecord>>;
|
||||
query(queryDto: QueryDto, observe?: 'response', options?: RequestOptions<'json'>): Observable<HttpResponse<Array<MusicRecord>>>;
|
||||
query(queryDto: QueryDto, observe?: 'events', options?: RequestOptions<'json'>): Observable<HttpEvent<Array<MusicRecord>>>;
|
||||
query(queryDto: QueryDto, observe?: 'body' | 'events' | 'response', options?: RequestOptions<'arraybuffer' | 'blob' | 'json' | 'text'>): Observable<any> {
|
||||
const url = `${this.basePath}/api/youtube/query`;
|
||||
|
||||
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');
|
||||
}
|
||||
// Set Content-Type for JSON requests if not already set
|
||||
if (!headers.has('Content-Type')) {
|
||||
headers = headers.set('Content-Type', 'application/json');
|
||||
}
|
||||
|
||||
return this.httpClient.request('post', url, {
|
||||
body: queryDto,
|
||||
observe,
|
||||
headers,
|
||||
reportProgress: options?.reportProgress,
|
||||
withCredentials: options?.withCredentials,
|
||||
context: this.createContextWithClientId(options?.context)
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user