Compare commits
27 Commits
feature/ta
...
dfb68e99b5
| Author | SHA1 | Date | |
|---|---|---|---|
| dfb68e99b5 | |||
| 04df85bdbc | |||
| 78f6673179 | |||
| 60cc76c3c8 | |||
| 4f1f3e26e5 | |||
| 99cfb97e3c | |||
| cff48d1e96 | |||
| dfa40e5397 | |||
| c08588d5e8 | |||
| 0b212e701b | |||
| 8dd92f32b7 | |||
| 8b8fe1402b | |||
| 2abc690bf9 | |||
| 5937c0cc5b | |||
| df4ab60ee0 | |||
| e1397d781c | |||
| 696c3577a7 | |||
| c538aed244 | |||
| a75edc31e1 | |||
| b4a9bdb1d4 | |||
| 1fea26987e | |||
| 209775f968 | |||
| c2db3785e1 | |||
| 67a999796a | |||
| 6e533bd945 | |||
| eb9f59cd31 | |||
| d13248277f |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@mtlsz/common",
|
||||
"version": "2.0.2",
|
||||
"version": "3.2.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@mtlsz/common",
|
||||
"version": "2.0.2",
|
||||
"version": "3.2.0",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"typescript": "^5.8.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mtlsz/common",
|
||||
"version": "3.0.6",
|
||||
"version": "3.2.6",
|
||||
"description": "MTLSZ frontend packages",
|
||||
"main": "dist/index.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
10
src/index.ts
10
src/index.ts
@@ -18,3 +18,13 @@ export * from "./interfaces/tournament";
|
||||
export * from "./interfaces/guest-player-request";
|
||||
export * from "./interfaces/single-tournament";
|
||||
export * from "./interfaces/team-championship";
|
||||
export * from "./interfaces/tag";
|
||||
export * from "./interfaces/role";
|
||||
export * from "./interfaces/confirmation-request";
|
||||
export * from "./interfaces/confirmation-request/adult-confirmation-request";
|
||||
export * from "./interfaces/confirmation-request/official-confirmation-request";
|
||||
export * from "./interfaces/confirmation-request/player-confirmation-request";
|
||||
export * from "./interfaces/confirmation-request/team-admin-confirmation-request";
|
||||
export * from "./interfaces/confirmation-request/team-manager-confirmation-request";
|
||||
export * from "./interfaces/confirmation-requests";
|
||||
export * from "./interfaces/generic-user";
|
||||
|
||||
22
src/interfaces/confirmation-request.ts
Normal file
22
src/interfaces/confirmation-request.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { AdultConfirmationRequest } from "./confirmation-request/adult-confirmation-request";
|
||||
import { OfficialConfirmationRequest } from "./confirmation-request/official-confirmation-request";
|
||||
import { PlayerConfirmationRequest } from "./confirmation-request/player-confirmation-request";
|
||||
import { TeamAdminConfirmationRequest } from "./confirmation-request/team-admin-confirmation-request";
|
||||
import { TeamManagerConfirmationRequest } from "./confirmation-request/team-manager-confirmation-request";
|
||||
|
||||
export interface ConfirmationRequest {
|
||||
id: number;
|
||||
status: number;
|
||||
roleString: string;
|
||||
lastName: string | null;
|
||||
firstName: string | null;
|
||||
email: string | null;
|
||||
phone: string | null;
|
||||
keycloakUserId: string | null;
|
||||
entity:
|
||||
| PlayerConfirmationRequest
|
||||
| AdultConfirmationRequest
|
||||
| TeamManagerConfirmationRequest
|
||||
| TeamAdminConfirmationRequest
|
||||
| OfficialConfirmationRequest;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Player } from "../player";
|
||||
|
||||
export interface AdultConfirmationRequest {
|
||||
kids: Player[];
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export interface OfficialConfirmationRequest {
|
||||
referee: boolean;
|
||||
umpire: boolean;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Club } from "../club";
|
||||
|
||||
export interface PlayerConfirmationRequest {
|
||||
club: Club;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import { Club } from "../club";
|
||||
|
||||
export interface TeamAdminConfirmationRequest {
|
||||
active: boolean;
|
||||
club: Club;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Club } from "../club";
|
||||
|
||||
export interface TeamManagerConfirmationRequest {
|
||||
club: Club;
|
||||
}
|
||||
6
src/interfaces/confirmation-requests.ts
Normal file
6
src/interfaces/confirmation-requests.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { ConfirmationRequest } from "./confirmation-request";
|
||||
|
||||
export interface ConfirmationRequests {
|
||||
roles: ConfirmationRequest[];
|
||||
canAddNewRole: boolean;
|
||||
}
|
||||
@@ -6,7 +6,7 @@ export interface Player extends GenericUser {
|
||||
id?: number;
|
||||
gender: string;
|
||||
birthDate: string;
|
||||
birthPlace: string | null;
|
||||
birthPlace?: string | null;
|
||||
officialId?: number;
|
||||
club: Club;
|
||||
active?: boolean;
|
||||
|
||||
4
src/interfaces/role.ts
Normal file
4
src/interfaces/role.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface Role {
|
||||
role: string;
|
||||
status: number;
|
||||
}
|
||||
Reference in New Issue
Block a user