3.0.0
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@mtlsz/common",
|
"name": "@mtlsz/common",
|
||||||
"version": "2.1.1",
|
"version": "3.0.0",
|
||||||
"description": "MTLSZ frontend packages",
|
"description": "MTLSZ frontend packages",
|
||||||
"main": "dist/index.ts",
|
"main": "dist/index.ts",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
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 | null;
|
||||||
|
lastName: string | null;
|
||||||
|
emai: string | null;
|
||||||
|
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;
|
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 */
|
/** @deprecated Use referee and umpire booleans instead */
|
||||||
type?: number;
|
type?: number;
|
||||||
referee: boolean;
|
referee: boolean;
|
||||||
|
|||||||
@@ -1,21 +1,18 @@
|
|||||||
import { Club } from "./club";
|
import { Club } from "./club";
|
||||||
|
import { GenericUser } from "./generic-user";
|
||||||
import { RankingEntry } from "./ranking-entry";
|
import { RankingEntry } from "./ranking-entry";
|
||||||
|
|
||||||
export interface Player {
|
export interface Player extends GenericUser {
|
||||||
id?: number;
|
id?: number;
|
||||||
firstName: string;
|
gender: string;
|
||||||
lastName: string;
|
birthDate: string;
|
||||||
gender: string;
|
birthPlace: string | null;
|
||||||
birthDate: string;
|
officialId?: number;
|
||||||
birthPlace: string | null;
|
club: Club;
|
||||||
officialId?: number;
|
active?: boolean;
|
||||||
club: Club;
|
licenceFrom?: string;
|
||||||
email?: string;
|
licenceTo?: string;
|
||||||
keycloakUserId?: string;
|
disabledBecauseRanking?: boolean;
|
||||||
active?: boolean;
|
disabledBecauseSimilarEntry?: boolean;
|
||||||
licenceFrom?: string;
|
rankingEntries?: RankingEntry[];
|
||||||
licenceTo?: string;
|
|
||||||
disabledBecauseRanking?: boolean;
|
|
||||||
disabledBecauseSimilarEntry?: boolean;
|
|
||||||
rankingEntries?: RankingEntry[];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import { Club } from "./club";
|
import { Club } from "./club";
|
||||||
|
import { GenericUser } from "./generic-user";
|
||||||
|
|
||||||
export interface TeamAdministrator {
|
export interface TeamAdministrator extends GenericUser {
|
||||||
id?: number;
|
id?: number;
|
||||||
keycloakId?: string;
|
/** @deprecated since 3.0.0. Use keycloakUserId instead */
|
||||||
lastName: string;
|
keycloakId?: string;
|
||||||
firstName: string;
|
active?: boolean;
|
||||||
email: string;
|
club: Club;
|
||||||
active?: boolean;
|
|
||||||
club: Club;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user