Implement "import history" in import page

This commit is contained in:
2026-01-08 03:57:00 +05:00
parent c29c12feec
commit 9984bb804a
26 changed files with 591 additions and 127 deletions

View File

@ -0,0 +1,16 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
import type { BaseTrackProgressType } from './baseTrackProgressType';
export interface BaseTrackProgress {
id?: string;
playlistId?: number;
trackSourceId?: number;
userId?: number;
timestamp?: number;
type?: BaseTrackProgressType;
}

View File

@ -0,0 +1,16 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
export type BaseTrackProgressType = typeof BaseTrackProgressType[keyof typeof BaseTrackProgressType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const BaseTrackProgressType = {
PLAYLIST: 'PLAYLIST',
TRACK: 'TRACK',
EXTERNAL_TRACK: 'EXTERNAL_TRACK',
} as const;

View File

@ -6,14 +6,19 @@
*/
export * from './addLocalTrackRequest';
export * from './playlistCreateDTO';
export * from './baseTrackProgress';
export * from './baseTrackProgressType';
export * from './playlistCreateRequest';
export * from './playlistReadDTO';
export * from './playlistProgress';
export * from './playlistProgressAllOf';
export * from './playlistProgressAllOfStatus';
export * from './playlistReadResponse';
export * from './playlistTrackResponse';
export * from './readParams';
export * from './singleTrackProgress';
export * from './singleTrackProgressAllOf';
export * from './streamProgress200Item';
export * from './trackBulkReorderRequest';
export * from './trackReoderAfterRequest';
export * from './trackReorderAfterRequest';
export * from './trackResponse';
export * from './uploadBody';
export * from './uploadBody';
export * from './youtubeTrackRequest';

View File

@ -0,0 +1,10 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
import type { BaseTrackProgress } from './baseTrackProgress';
import type { PlaylistProgressAllOf } from './playlistProgressAllOf';
export type PlaylistProgress = BaseTrackProgress & PlaylistProgressAllOf;

View File

@ -0,0 +1,14 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
import type { PlaylistProgressAllOfStatus } from './playlistProgressAllOfStatus';
export type PlaylistProgressAllOf = {
ytdlnStdout?: string;
overallProgress?: number;
trackCount?: number;
status?: PlaylistProgressAllOfStatus;
};

View File

@ -0,0 +1,15 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
export type PlaylistProgressAllOfStatus = typeof PlaylistProgressAllOfStatus[keyof typeof PlaylistProgressAllOfStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const PlaylistProgressAllOfStatus = {
LOADING: 'LOADING',
FINISHED: 'FINISHED',
} as const;

View File

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

View File

@ -0,0 +1,10 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
import type { BaseTrackProgress } from './baseTrackProgress';
import type { SingleTrackProgressAllOf } from './singleTrackProgressAllOf';
export type SingleTrackProgress = BaseTrackProgress & SingleTrackProgressAllOf;

View File

@ -5,6 +5,7 @@
* OpenAPI spec version: v0
*/
export interface PlaylistCreateDTO {
export type SingleTrackProgressAllOf = {
title?: string;
}
format?: string;
};

View File

@ -0,0 +1,10 @@
/**
* Generated by orval v7.16.0 🍺
* Do not edit manually.
* OpenAPI definition
* OpenAPI spec version: v0
*/
import type { PlaylistProgress } from './playlistProgress';
import type { SingleTrackProgress } from './singleTrackProgress';
export type StreamProgress200Item = PlaylistProgress | SingleTrackProgress;

View File

@ -10,6 +10,7 @@ export interface TrackResponse {
title?: string;
artist?: string;
audioPath?: string;
fileFormat?: string;
durationSeconds?: number;
fileName?: string;
}

View File

@ -5,7 +5,6 @@
* OpenAPI spec version: v0
*/
export interface TrackReorderAfterRequest {
moveTrackId?: number;
targetTrackId?: number;
export interface YoutubeTrackRequest {
youtubeUrl?: string;
}