Implement "import history" in import page
This commit is contained in:
16
app/composeables/api/models/baseTrackProgress.ts
Normal file
16
app/composeables/api/models/baseTrackProgress.ts
Normal 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;
|
||||
}
|
||||
16
app/composeables/api/models/baseTrackProgressType.ts
Normal file
16
app/composeables/api/models/baseTrackProgressType.ts
Normal 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;
|
||||
@ -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';
|
||||
10
app/composeables/api/models/playlistProgress.ts
Normal file
10
app/composeables/api/models/playlistProgress.ts
Normal 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;
|
||||
14
app/composeables/api/models/playlistProgressAllOf.ts
Normal file
14
app/composeables/api/models/playlistProgressAllOf.ts
Normal 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;
|
||||
};
|
||||
15
app/composeables/api/models/playlistProgressAllOfStatus.ts
Normal file
15
app/composeables/api/models/playlistProgressAllOfStatus.ts
Normal 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;
|
||||
@ -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;
|
||||
}
|
||||
10
app/composeables/api/models/singleTrackProgress.ts
Normal file
10
app/composeables/api/models/singleTrackProgress.ts
Normal 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;
|
||||
@ -5,6 +5,7 @@
|
||||
* OpenAPI spec version: v0
|
||||
*/
|
||||
|
||||
export interface PlaylistCreateDTO {
|
||||
export type SingleTrackProgressAllOf = {
|
||||
title?: string;
|
||||
}
|
||||
format?: string;
|
||||
};
|
||||
10
app/composeables/api/models/streamProgress200Item.ts
Normal file
10
app/composeables/api/models/streamProgress200Item.ts
Normal 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;
|
||||
@ -10,6 +10,7 @@ export interface TrackResponse {
|
||||
title?: string;
|
||||
artist?: string;
|
||||
audioPath?: string;
|
||||
fileFormat?: string;
|
||||
durationSeconds?: number;
|
||||
fileName?: string;
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
* OpenAPI spec version: v0
|
||||
*/
|
||||
|
||||
export interface TrackReorderAfterRequest {
|
||||
moveTrackId?: number;
|
||||
targetTrackId?: number;
|
||||
export interface YoutubeTrackRequest {
|
||||
youtubeUrl?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user