2 Commits

Author SHA1 Message Date
533eba775e Export tag interface 2025-06-15 19:11:15 +01:00
d13248277f Add Tag interface 2025-06-15 18:47:37 +01:00
7 changed files with 33 additions and 36 deletions

View File

@@ -1,12 +1,13 @@
{
"name": "@mtlsz/common",
"version": "3.0.6",
"version": "2.0.2",
"description": "MTLSZ frontend packages",
"main": "dist/index.ts",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"publish": "npm publish --registry http://registry.trweb.hu"
},
"repository": {
"type": "git",

View File

@@ -18,3 +18,4 @@ export * from "./interfaces/tournament";
export * from "./interfaces/guest-player-request";
export * from "./interfaces/single-tournament";
export * from "./interfaces/team-championship";
export * from "./interfaces/tag";

View File

@@ -9,5 +9,4 @@ export interface Club {
address?: string;
phone?: string;
active: boolean;
hasManager?: boolean;
}

View File

@@ -1,7 +0,0 @@
export interface GenericUser {
firstName: string;
lastName: string;
email: string;
phone: string | null;
keycloakUserId?: string | null;
}

View File

@@ -1,9 +1,8 @@
import { GenericUser } from "./generic-user";
export interface Official extends GenericUser {
export interface Official {
id?: number;
/** @deprecated since 3.0.0. Use lastName and firstName instead */
name?: string;
name: string;
email: string;
phone?: string;
/** @deprecated Use referee and umpire booleans instead */
type?: number;
referee: boolean;

View File

@@ -1,18 +1,21 @@
import { Club } from "./club";
import { GenericUser } from "./generic-user";
import { RankingEntry } from "./ranking-entry";
export interface Player extends GenericUser {
id?: number;
gender: string;
birthDate: string;
birthPlace: string | null;
officialId?: number;
club: Club;
active?: boolean;
licenceFrom?: string;
licenceTo?: string;
disabledBecauseRanking?: boolean;
disabledBecauseSimilarEntry?: boolean;
rankingEntries?: RankingEntry[];
export interface Player {
id?: number;
firstName: string;
lastName: string;
gender: string;
birthDate: string;
birthPlace: string | null;
officialId?: number;
club: Club;
email?: string;
keycloakUserId?: string;
active?: boolean;
licenceFrom?: string;
licenceTo?: string;
disabledBecauseRanking?: boolean;
disabledBecauseSimilarEntry?: boolean;
rankingEntries?: RankingEntry[];
}

View File

@@ -1,10 +1,11 @@
import { Club } from "./club";
import { GenericUser } from "./generic-user";
export interface TeamAdministrator extends GenericUser {
id?: number;
/** @deprecated since 3.0.0. Use keycloakUserId instead */
keycloakId?: string;
active?: boolean;
club: Club;
export interface TeamAdministrator {
id?: number;
keycloakId?: string;
lastName: string;
firstName: string;
email: string;
active?: boolean;
club: Club;
}