Channel.ts 965 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { IStudioApiResponse, Role } from "./Auth";
  2. export type TChannelType =
  3. | "translation"
  4. | "nissaya"
  5. | "original"
  6. | "wbw"
  7. | "commentary";
  8. export interface IChannelApiData {
  9. id: string;
  10. name: string;
  11. type: TChannelType;
  12. }
  13. export interface ChannelInfoProps {
  14. channelName: string;
  15. channelId: string;
  16. channelType: string;
  17. studioName: string;
  18. studioId: string;
  19. studioType: string;
  20. }
  21. export type IFinal = [number, boolean];
  22. export interface IApiResponseChannelData {
  23. uid: string;
  24. name: string;
  25. summary: string;
  26. type: string;
  27. studio: IStudioApiResponse;
  28. lang: string;
  29. status: number;
  30. created_at: string;
  31. updated_at: string;
  32. role?: Role;
  33. final?: IFinal[];
  34. }
  35. export interface IApiResponseChannel {
  36. ok: boolean;
  37. message: string;
  38. data: IApiResponseChannelData;
  39. }
  40. export interface IApiResponseChannelList {
  41. ok: boolean;
  42. message: string;
  43. data: {
  44. rows: IApiResponseChannelData[];
  45. count: number;
  46. };
  47. }