import type { Except } from "type-fest"; import { Base } from "./Base"; import type { Space, SpaceEntity } from "./SpaceService"; import type { MapToEntity } from "./types/types"; import type { User } from "./UserService"; export declare const teamEntityKinds: readonly ["Admin", "Normal", "Owner"]; export type TeamEntityKind = typeof teamEntityKinds[number]; /** * * @remarks * This interface should be generated using OpenAPI generator in the future. * * @alpha */ export interface Team { id?: string; name: string; description: string; kind?: TeamEntityKind; createdById?: string; users?: User[]; spaceId: string; space?: Space; createdAt?: string; updatedAt?: string; } export type TeamEntity = Except, "space"> & { space?: SpaceEntity; }; /** * * The class for consuming all `team` resources. * * @remarks * This class should be generated using OpenAPI generator in the future. * * @alpha */ declare class TeamService extends Base { /** * Get one team by team id */ getOne({ id }: { id: string; }): Promise; /** * Get all teams */ getMany(): Promise; /** * Create one team */ createOne({ team }: { team: Team; }): Promise; /** * Delete one team by team id */ deleteOne({ id }: { id: string; }): Promise; /** * Add a user by username to a team by team id */ addUser({ username, id }: { username: string; id: string; }): Promise; /** * Remove a user by username from a team by team id */ removeUser({ username, id }: { username: string; id: string; }): Promise; } export { TeamService };