Skip to content

Commit

Permalink
type :: team Type
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed May 8, 2024
1 parent 8ed2b9d commit 1c6a83a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/utils/types/teamType.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,38 @@
export type TeamType = 'CLUB' | 'TEAM_PROJECT' | 'PRIVATE_PROJECT' | 'ETC' | string;
export type MemberRoleType = 'ADMINISTRATOR' | 'MEMBER';

export type TeamListType = {
team_id: string;
team_name_ko: string;
team_name_en: string;
administrator_name: string;
team_type: TeamType;
deploy_list: string[];
};

export type TeamCheckType = {
team_list: TeamListType[];
};

export type TeamCreateType = {
team_name_ko: string;
team_name_en: string;
team_type: TeamType;
team_member_list: string[];
};

export type MemberType = {
member_name: string;
member_number: string;
member_role: MemberRoleType[];
user_id: string;
};

export type TeamDetailType = {
team_name_ko: string;
team_name_en: string;
member_count: number;
admin_name: string;
created_at: string;
member_list: MemberType[];
};

0 comments on commit 1c6a83a

Please sign in to comment.