index.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. export interface IUserProfile {
  2. email: string;
  3. is_active: boolean;
  4. is_superuser: boolean;
  5. full_name?: string;
  6. id: number;
  7. }
  8. export interface IUserProfileUpdate {
  9. email?: string;
  10. full_name?: string;
  11. password?: string;
  12. is_active?: boolean;
  13. is_superuser?: boolean;
  14. }
  15. export interface IUserProfileCreate {
  16. email: string;
  17. full_name?: string;
  18. password: string;
  19. is_active?: boolean;
  20. is_superuser?: boolean;
  21. }
  22. export interface AppNotification {
  23. content: string;
  24. color?: string;
  25. showProgress?: boolean;
  26. };
  27. export interface MainState {
  28. token: string;
  29. isLoggedIn: boolean | null;
  30. logInError: boolean;
  31. userProfile: IUserProfile | null;
  32. dashboardMiniDrawer: boolean;
  33. dashboardShowDrawer: boolean;
  34. notifications: AppNotification[];
  35. videos: Video[];
  36. };
  37. export interface Video {
  38. id: number;
  39. title: string;
  40. stored_file_name: string;
  41. progress_state: string;
  42. }
  43. export interface VideoCreate{
  44. title: string;
  45. anchor_id: number;
  46. lang_id: number;
  47. }