update to v2
This commit is contained in:
11
src/interfaces/guest-player-request.ts
Normal file
11
src/interfaces/guest-player-request.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Player } from "./player";
|
||||
import { TeamEntry } from "./team-entry";
|
||||
|
||||
export interface GuestPlayerRequest {
|
||||
id: number;
|
||||
// aki kéri a playert
|
||||
applicant: TeamEntry;
|
||||
// a kért játékos
|
||||
requestedPlayer: Player;
|
||||
status: number;
|
||||
}
|
||||
@@ -1,10 +1,22 @@
|
||||
export interface Official {
|
||||
id?: number;
|
||||
name: string;
|
||||
email: string;
|
||||
phone?: string;
|
||||
/** @deprecated Use referee and umpire booleans instead */
|
||||
type?: number;
|
||||
referee: boolean;
|
||||
umpire: boolean;
|
||||
id?: number;
|
||||
name: string;
|
||||
email: string;
|
||||
phone?: string;
|
||||
/** @deprecated Use referee and umpire booleans instead */
|
||||
type?: number;
|
||||
referee: boolean;
|
||||
umpire: boolean;
|
||||
umpireLevel?: string;
|
||||
refereeLevel?: string;
|
||||
grade?: string;
|
||||
birthDate?: string;
|
||||
didUmpireExamAt?: string;
|
||||
didRefereeExamAt?: string;
|
||||
city?: string;
|
||||
shirtSize?: string;
|
||||
otherInfo?: string;
|
||||
tshirtCount?: number;
|
||||
hasCards?: boolean;
|
||||
hasCoin?: boolean;
|
||||
}
|
||||
|
||||
8
src/interfaces/single-tournament.ts
Normal file
8
src/interfaces/single-tournament.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Category } from "./category";
|
||||
import { Tournament } from "./tournament";
|
||||
|
||||
export interface SingleTournament extends Tournament {
|
||||
categories: Array<Category>;
|
||||
allowedWithoutPartner: boolean;
|
||||
allowedSimilarEntries: boolean;
|
||||
}
|
||||
@@ -1,10 +1,11 @@
|
||||
import { Category } from "./category";
|
||||
|
||||
export interface TeamCategory {
|
||||
id?: number;
|
||||
name: string;
|
||||
class: number;
|
||||
gender: string;
|
||||
age?: string;
|
||||
categories?: Category[];
|
||||
}
|
||||
id?: number;
|
||||
name: string;
|
||||
gender: string;
|
||||
class: number;
|
||||
age: string | null;
|
||||
minMalePlayerCount: number | null;
|
||||
minFemalePlayerCount: number | null;
|
||||
maxNumberOfGuestPlayers: number | null;
|
||||
priority: number;
|
||||
}
|
||||
|
||||
6
src/interfaces/team-championship.ts
Normal file
6
src/interfaces/team-championship.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { TeamCategory } from "./team-category";
|
||||
import { Tournament } from "./tournament";
|
||||
|
||||
export interface TeamChampionship extends Tournament {
|
||||
teamCategories: Array<TeamCategory>;
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
import { Club } from "./club";
|
||||
import { Team } from "./team";
|
||||
import { TeamCategory } from "./team-category";
|
||||
import { Tournament } from "./tournament";
|
||||
import { TeamChampionship } from "./team-championship";
|
||||
|
||||
export interface TeamEntry {
|
||||
id?: number;
|
||||
sentBy: Club;
|
||||
status: number;
|
||||
category: TeamCategory;
|
||||
tournament: Tournament;
|
||||
createdAt: string;
|
||||
updatedAt?: string;
|
||||
team: Team;
|
||||
id?: number;
|
||||
sentBy: Club;
|
||||
teamChampionship: TeamChampionship;
|
||||
category: TeamCategory;
|
||||
team: Team;
|
||||
missingMalePlayerCount?: number;
|
||||
missingFemalePlayerCount?: number;
|
||||
canAddGuestPlayers: boolean;
|
||||
}
|
||||
|
||||
@@ -10,8 +10,6 @@ export interface Tournament {
|
||||
dateTo?: string;
|
||||
entryDeadline?: string;
|
||||
entryOpenFrom?: string;
|
||||
categories: Array<Category>;
|
||||
teamCategories?: Array<TeamCategory>;
|
||||
/**
|
||||
* @deprecated use organizerName instead
|
||||
*/
|
||||
@@ -20,12 +18,10 @@ export interface Tournament {
|
||||
active: boolean;
|
||||
city?: string;
|
||||
onlyWithLicence: boolean;
|
||||
teamChampionship: boolean;
|
||||
allowedWithoutPartner: boolean;
|
||||
allowedSimilarEntries: boolean;
|
||||
entriesChecked?: boolean;
|
||||
referee: Official | null;
|
||||
deputyReferee: Official | null;
|
||||
drawUrl: string | null;
|
||||
notificationsSentAt?: Date | null;
|
||||
'@type'?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user