Compare commits
1 Commits
63998a9859
...
feature/ta
| Author | SHA1 | Date | |
|---|---|---|---|
| 6badb2bdff |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@mtlsz/common",
|
||||
"version": "3.2.0",
|
||||
"version": "2.0.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@mtlsz/common",
|
||||
"version": "3.2.0",
|
||||
"version": "2.0.2",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"typescript": "^5.8.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mtlsz/common",
|
||||
"version": "3.3.4",
|
||||
"version": "3.0.6",
|
||||
"description": "MTLSZ frontend packages",
|
||||
"main": "dist/index.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
13
src/index.ts
13
src/index.ts
@@ -18,16 +18,3 @@ 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";
|
||||
export * from "./interfaces/adult";
|
||||
export * from "./interfaces/team-manager";
|
||||
export * from "./interfaces/confirmation-request/confirmation-request-status";
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
import { GenericUser } from "./generic-user";
|
||||
import { Player } from "./player";
|
||||
|
||||
export interface Adult extends GenericUser {
|
||||
id?: number;
|
||||
kids: Player[];
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
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;
|
||||
canBeRevoked: boolean | null;
|
||||
createdAt: string | null;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import { Player } from "../player";
|
||||
|
||||
export interface AdultConfirmationRequest {
|
||||
kids: Player[];
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
export enum ConfirmationRequestStatus {
|
||||
PENDING = 1,
|
||||
APPROVED = 2,
|
||||
DECLINED = 3,
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
export interface OfficialConfirmationRequest {
|
||||
referee: boolean;
|
||||
umpire: boolean;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import { Club } from "../club";
|
||||
|
||||
export interface PlayerConfirmationRequest {
|
||||
club: Club;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
import { Club } from "../club";
|
||||
|
||||
export interface TeamAdminConfirmationRequest {
|
||||
active: boolean;
|
||||
club: Club;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import { Club } from "../club";
|
||||
|
||||
export interface TeamManagerConfirmationRequest {
|
||||
club: Club;
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
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;
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
export interface Role {
|
||||
role: string;
|
||||
status: number;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import { Club } from "./club";
|
||||
import { GenericUser } from "./generic-user";
|
||||
|
||||
export interface TeamManager extends GenericUser {
|
||||
id?: number;
|
||||
club: Club;
|
||||
}
|
||||
Reference in New Issue
Block a user