Update backend API schema

This commit is contained in:
2025-11-16 18:03:17 +05:00
parent 7b39d48316
commit b860ea95d3
8 changed files with 249 additions and 13 deletions

View File

@ -0,0 +1,10 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
export interface AddLocalTrackRequest {
source: Blob;
}

View File

@ -5,7 +5,12 @@
* OpenAPI spec version: v0
*/
export * from './addLocalTrackRequest';
export * from './playlistCreateDTO';
export * from './playlistCreateRequest';
export * from './playlistReadDTO';
export * from './playlistReadResponse';
export * from './playlistTrackResponse';
export * from './readParams';
export * from './trackResponse';
export * from './uploadBody';

View File

@ -0,0 +1,10 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
export interface PlaylistCreateRequest {
title?: string;
}

View File

@ -0,0 +1,14 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
export interface PlaylistReadResponse {
id?: number;
ownerId?: number;
title?: string;
createdAt?: string;
updatedAt?: string;
}

View File

@ -0,0 +1,15 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
export interface PlaylistTrackResponse {
trackId?: number;
title?: string;
artist?: string;
audioPath?: string;
durationSeconds?: number;
fileName?: string;
}

View File

@ -0,0 +1,15 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
export interface TrackResponse {
trackId?: number;
title?: string;
artist?: string;
audioPath?: string;
durationSeconds?: number;
fileName?: string;
}