5 Commits

Author SHA1 Message Date
cc2c4bc8d3 3.0.4 2025-05-06 13:33:58 +02:00
d1c1abaf65 3.0.3 2025-04-11 12:14:40 +02:00
41478c893e 3.0.2 2025-04-11 12:01:16 +02:00
233190f578 3.0.1 2025-04-11 11:55:47 +02:00
871d41962c 3.0.0 2025-04-11 11:40:09 +02:00
5 changed files with 35 additions and 32 deletions

View File

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

View File

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

View File

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

View File

@@ -1,21 +1,18 @@
import { Club } from "./club";
import { GenericUser } from "./generic-user";
import { RankingEntry } from "./ranking-entry";
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[];
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[];
}

View File

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