Jelajahi Sumber

:fire: type Role

visuddhinanda 3 tahun lalu
induk
melakukan
d416390d38
1 mengubah file dengan 16 tambahan dan 18 penghapusan
  1. 16 18
      dashboard/src/components/api/Group.ts

+ 16 - 18
dashboard/src/components/api/Group.ts

@@ -1,25 +1,23 @@
-import { IStudioApiResponse } from "./Auth";
-
-export type Role = "owner" | "manager" | "editor" | "member";
+import { IStudioApiResponse, Role } from "./Auth";
 
 export interface IGroupDataRequest {
-	uid: string;
-	name: string;
-	description: string;
-	studio: IStudioApiResponse;
-	role: Role;
-	created_at: string;
+  uid: string;
+  name: string;
+  description: string;
+  studio: IStudioApiResponse;
+  role: Role;
+  created_at: string;
 }
 export interface IGroupResponse {
-	ok: boolean;
-	message: string;
-	data: IGroupDataRequest;
+  ok: boolean;
+  message: string;
+  data: IGroupDataRequest;
 }
 export interface IGroupListResponse {
-	ok: boolean;
-	message: string;
-	data: {
-		rows: IGroupDataRequest[];
-		count: number;
-	};
+  ok: boolean;
+  message: string;
+  data: {
+    rows: IGroupDataRequest[];
+    count: number;
+  };
 }