Move server directory outside of frontend src

This commit is contained in:
jeffvli
2022-10-25 16:52:45 -07:00
parent 863dce88b7
commit 0438f2d5f2
105 changed files with 16946 additions and 6901 deletions
+1
View File
@@ -0,0 +1 @@
declare module 'express-async-errors';
+5
View File
@@ -0,0 +1,5 @@
declare namespace Express {
export interface Request {
authUser: any;
}
}
+44
View File
@@ -0,0 +1,44 @@
export enum SortOrder {
ASC = 'asc',
DESC = 'desc',
}
export enum Item {
ALBUM = 'album',
ALBUM_ARTIST = 'albumArtist',
ARTIST = 'artist',
FOLDER = 'folder',
GENRE = 'genre',
PLAYLIST = 'playlist',
SONG = 'song',
}
export enum AlbumFilter {
FAVORITED,
NOT_FAVORITED,
}
export type OffsetPagination = {
skip: number;
take: number;
};
export type PaginationResponse = {
currentPage: number;
nextPage: string;
prevPage: string;
startIndex: number;
totalEntries: number;
};
export type SuccessResponse = {
data: any;
paginationItems?: PaginationItems;
};
export type PaginationItems = {
skip: number;
take: number;
totalEntries: number;
url: string;
};