//#region src/api/workspaces.ts
function e(e) {
	return {
		getById: (t) => e.get(`/api/v1/workspaces/${t.id}`).then((e) => e.data),
		getAll: (t) => e.get("/api/v1/workspaces", { params: t }).then((e) => e.data),
		create: (t) => e.post("/api/v1/workspaces", t.workspaceCreateDto).then((e) => e.data),
		update: (t) => e.put(`/api/v1/workspaces/${t.id}`, t.workspaceUpdateDto).then((e) => e.data),
		delete: (t) => e.delete(`/api/v1/workspaces/id/${t.id}`).then((e) => e.data),
		batchDelete: (t) => e.delete("/api/v1/workspaces/batch", { data: { ids: t.ids } }).then((e) => e.data),
		setFavourite: (t) => e.patch(`/api/v1/workspaces/${t.id}/favourite`, t.workspaceFavouriteDto).then((e) => e.data)
	};
}
//#endregion
export { e as createWorkspacesApi };
