7 Commits

Author SHA1 Message Date
6badb2bdff Add Tag interface 2025-06-15 18:23:56 +01:00
40aa20e96f 3.0.6 2025-06-06 16:54:26 +02:00
19ec1fa701 3.0.5 2025-06-06 16:40:57 +02:00
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
6 changed files with 13 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@mtlsz/common",
"version": "3.0.0",
"version": "3.0.6",
"description": "MTLSZ frontend packages",
"main": "dist/index.ts",
"types": "dist/index.d.ts",

View File

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

View File

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

View File

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

4
src/interfaces/tag.ts Normal file
View File

@@ -0,0 +1,4 @@
export interface Tag {
id?: number;
label: string;
}

View File

@@ -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[];
}