fix: close competition cutover integrity gaps

This commit is contained in:
dahyeon committed 2026-07-12 21:22:22 +00:00
1 parent 7ea2002975
commit 683d602d63
57 files changed
+4805 -1582

No files matched your search

+63 -28
View File
@@ -1,4 +1,4 @@
import type { CompetitionDetailResponse, CompetitionPhase } from "./competition.js";
import type { CompetitionPhase } from "./competition.js";
import type { CompetitionFormatType } from "./format.js";
import type {
CommunityId,
@@ -13,11 +13,16 @@ import type { IsoDateTime, SeriesProjection } from "./series.js";
export type MatchLifecycleStatus =
| "recruiting"
| "team-building"
| "ready"
| "running"
| "completed"
| "cancelled";
| "team-built"
| "in-progress"
| "finished";
export type MatchGameMode =
| "pair"
| "round-robin"
| "double-elimination";
export type MatchPosition = "TOP" | "JGL" | "MID" | "ADC" | "SUP";
export interface MatchCompetitionSummaryView {
id: CompetitionId;
@@ -25,48 +30,79 @@ export interface MatchCompetitionSummaryView {
formatType: CompetitionFormatType;
}
export interface MatchSummaryResponse {
id: MatchId;
communityId: CommunityId;
shortCode?: string;
title: string;
description: string;
scheduledAt: IsoDateTime;
status: MatchLifecycleStatus;
maxParticipants: number;
participantCount: number;
joined: boolean;
competition?: MatchCompetitionSummaryView;
createdAt: IsoDateTime;
updatedAt: IsoDateTime;
export interface MatchPositionPreferenceView {
position: MatchPosition;
priority: number;
}
export interface MatchTierView {
queueType: string;
tier: string;
rank: string;
leaguePoints: number;
wins: number;
losses: number;
fetchedAt: IsoDateTime;
}
export interface MatchParticipantView {
userId: UserId;
displayName: string;
gameName?: string;
tagLine?: string;
profileIconId?: number;
tier?: MatchTierView;
preferredPositions: MatchPositionPreferenceView[];
joinedAt: IsoDateTime;
excluded: boolean;
}
export interface MatchTeamMemberView {
userId: UserId;
assignedPosition: MatchPosition;
cost?: number;
}
export interface MatchTeamView {
teamIndex: number;
name: string;
captainUserId?: UserId;
members: MatchTeamMemberView[];
}
export interface MatchScheduleItemView {
time: string;
label: string;
}
export interface MatchDetailResponse
extends Omit<MatchSummaryResponse, "competition"> {
/** Canonical wire DTO returned by both Match list and detail endpoints. */
export interface MatchDetailResponse {
_id: MatchId;
communityId: CommunityId;
competitionId?: CompetitionId;
shortCode?: string;
title: string;
description: string;
mapId: number;
status: MatchLifecycleStatus;
scheduledAt: IsoDateTime;
maxParticipants: number;
gameCount: number;
gameMode: MatchGameMode;
roundRobinMaxRounds?: number;
doubleEliminationResetFinalEnabled?: boolean;
hostUserId?: UserId;
participants: MatchParticipantView[];
teams: MatchTeamView[];
prizes: string[];
notices: string[];
schedule: MatchScheduleItemView[];
competition?: CompetitionDetailResponse;
joined: boolean;
createdAt: IsoDateTime;
updatedAt: IsoDateTime;
}
export type MatchSummaryResponse = MatchDetailResponse;
export interface TeamTournamentCodeView {
gameSlotId: GameSlotId;
seriesId: SeriesId;
@@ -87,9 +123,8 @@ export interface TeamCompetitionViewResponse {
}
export interface MatchListResponse {
matches: MatchSummaryResponse[];
matches: MatchDetailResponse[];
total: number;
page: number;
pageSize: number;
totalItems: number;
totalPages: number;
limit: number;
}