Changeset 3de009b for frontend/src/utils


Ignore:
Timestamp:
02/05/26 16:11:26 (5 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
929e93c
Parents:
0792d02
Message:

enable registering as listener and artist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/utils/types.ts

    r0792d02 r3de009b  
    11export interface User {
    2   username: string;
    3   fullName: string;
    4   email?: string;
    5   profilePhoto?: string | null;
    6   role?: "ADMIN" | "NONADMIN";
     2        username: string;
     3        fullName: string;
     4        email?: string;
     5        profilePhoto?: string | null;
     6        role?: "ADMIN" | "NONADMIN";
    77}
    88
    99export interface ArtistContribution {
    10   id: number;
    11   title: string;
    12   genre: string;
    13   role: string;
    14   entityType: string;
    15   isLikedByCurrentUser: boolean;
     10        id: number;
     11        title: string;
     12        genre: string;
     13        role: string;
     14        entityType: string;
     15        isLikedByCurrentUser: boolean;
    1616}
    1717
    1818export interface MusicalEntity {
    19   id: number;
    20   title: string;
    21   genre: string;
    22   type: string;
    23   releasedBy: string;
    24   isLikedByCurrentUser?: boolean;
     19        id: number;
     20        title: string;
     21        genre: string;
     22        type: string;
     23        releasedBy: string;
     24        isLikedByCurrentUser?: boolean;
    2525}
    2626
    2727export interface Song extends MusicalEntity {
    28   type: "SONG";
     28        type: "SONG";
    2929}
    3030
    3131export interface Album extends MusicalEntity {
    32   type: "ALBUM";
    33   songs: Song[];
     32        type: "ALBUM";
     33        songs: Song[];
    3434}
    3535
    3636export interface Playlist {
    37   id: number;
    38   name: string;
    39   cover: string;
    40   creatorName: string;
    41   songsInPlaylist: Song[];
    42   isSavedByCurrentUser: boolean;
     37        id: number;
     38        name: string;
     39        cover: string;
     40        creatorName: string;
     41        songsInPlaylist: Song[];
     42        isSavedByCurrentUser: boolean;
    4343}
    4444
    4545export interface BaseNonAdminUser {
    46   username: string;
    47   fullName: string;
    48   userType: string;
    49   profilePhoto: string;
    50   followers: number;
    51   following: number;
    52   isFollowedByCurrentUser: boolean;
     46        username: string;
     47        fullName: string;
     48        userType: string;
     49        profilePhoto: string;
     50        followers: number;
     51        following: number;
     52        isFollowedByCurrentUser: boolean;
    5353}
     54
     55export type UserRegisterType = "ARTIST" | "LISTENER";
Note: See TracChangeset for help on using the changeset viewer.