Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions frontend-next-migration/src/entities/Clan/types/clan.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,21 @@ export type IClan = {
phrase: string;
labels: Array[];
positionLeaderboard?: number;

roles: IClanRole[];
goal: string;
clanLogo: string;
battlePoints: number;
language: string;
points: number;
ageRange: string;
};

export type IClanRole = {
_id: string;
name: string;
clanRoleType: string;
rights?: Record<string, boolean>;
};

export type IClanPosition = {
Expand All @@ -37,11 +52,12 @@ export type ICreateClanResponse = {
export type IJoin = {
clan_id: string;
player_id: string;
join_message: string;
};

export type IClanCreateDto = Pick<IClan, 'name' | 'tag' | 'phrase' | 'labels' | 'isOpen'>;

export type IClanUpdateDto = Pick<IClan, '_id' | 'name' | 'tag' | 'phrase' | 'labels' | 'isOpen'>;

export type IJoinDto = Pick<IJoin, 'clan_id' | 'player_id' | 'join_message'>;
export type IJoinDto = Pick<IJoin, 'clan_id' | 'player_id'>;

export type IClanRoleDto = Pick<IClanRole, '_id' | 'name' | 'clanRoleType'>;
Loading