Compare commits
8 Commits
0daedc28dc
...
feature/ta
| Author | SHA1 | Date | |
|---|---|---|---|
| 6badb2bdff | |||
| 40aa20e96f | |||
| 19ec1fa701 | |||
| cc2c4bc8d3 | |||
| d1c1abaf65 | |||
| 41478c893e | |||
| 233190f578 | |||
| 871d41962c |
@@ -1,13 +1,12 @@
|
||||
{
|
||||
"name": "@mtlsz/common",
|
||||
"version": "2.0.2",
|
||||
"version": "3.0.6",
|
||||
"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",
|
||||
|
||||
@@ -9,4 +9,5 @@ export interface Club {
|
||||
address?: string;
|
||||
phone?: string;
|
||||
active: boolean;
|
||||
hasManager?: boolean;
|
||||
}
|
||||
7
src/interfaces/generic-user.ts
Normal file
7
src/interfaces/generic-user.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface GenericUser {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
keycloakUserId?: string | null;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
4
src/interfaces/tag.ts
Normal file
4
src/interfaces/tag.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface Tag {
|
||||
id?: number;
|
||||
label: string;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Category } from "./category";
|
||||
import { Club } from "./club";
|
||||
import { Official } from "./official";
|
||||
import { Tag } from "./tag";
|
||||
import { TeamCategory } from "./team-category";
|
||||
|
||||
export interface Tournament {
|
||||
@@ -24,4 +25,5 @@ export interface Tournament {
|
||||
drawUrl: string | null;
|
||||
notificationsSentAt?: Date | null;
|
||||
'@type'?: string;
|
||||
tags?: Tag[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user