Parcourir la source

add type Role

visuddhinanda il y a 3 ans
Parent
commit
83d551ea2a
1 fichiers modifiés avec 11 ajouts et 9 suppressions
  1. 11 9
      dashboard/src/components/api/Auth.ts

+ 11 - 9
dashboard/src/components/api/Auth.ts

@@ -1,14 +1,16 @@
+export type Role = "owner" | "manager" | "editor" | "member";
+
 export interface IUserApiResponse {
-	id: string;
-	userName: string;
-	nickName: string;
-	avatar: string;
+  id: string;
+  userName: string;
+  nickName: string;
+  avatar: string;
 }
 
 export interface IStudioApiResponse {
-	id: string;
-	nickName: string;
-	studioName: string;
-	avatar: string;
-	owner: IUserApiResponse;
+  id: string;
+  nickName: string;
+  studioName: string;
+  avatar: string;
+  owner: IUserApiResponse;
 }