Compare commits
5 Commits
feature/ta
...
c2db3785e1
| Author | SHA1 | Date | |
|---|---|---|---|
| c2db3785e1 | |||
| 67a999796a | |||
| 6e533bd945 | |||
| eb9f59cd31 | |||
| d13248277f |
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"name": "@mtlsz/common",
|
||||
"version": "3.0.6",
|
||||
"version": "2.1.0",
|
||||
"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",
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -9,5 +9,4 @@ export interface Club {
|
||||
address?: string;
|
||||
phone?: string;
|
||||
active: boolean;
|
||||
hasManager?: boolean;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
export interface GenericUser {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
keycloakUserId?: string | null;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user