Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8774d93f9e | |||
| a08414717d | |||
| bc1911e26d | |||
|
|
a22c15da0d | ||
| f63ab127ab | |||
| 1d4fb2f180 | |||
| c5a3f47a4f | |||
| 63998a9859 | |||
| 4301da7dae | |||
| d7a3e9d790 | |||
| ac2751c2fd | |||
| d400a74e59 | |||
| dfb68e99b5 | |||
| 04df85bdbc | |||
| 78f6673179 | |||
| 60cc76c3c8 | |||
| 4f1f3e26e5 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@mtlsz/common",
|
"name": "@mtlsz/common",
|
||||||
"version": "3.2.0",
|
"version": "3.3.8",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@mtlsz/common",
|
"name": "@mtlsz/common",
|
||||||
"version": "3.2.0",
|
"version": "3.3.8",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"typescript": "^5.8.2"
|
"typescript": "^5.8.2"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mtlsz/common",
|
"name": "@mtlsz/common",
|
||||||
"version": "3.2.1",
|
"version": "3.4.2",
|
||||||
"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",
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ export * from "./interfaces/team-entry";
|
|||||||
export * from "./interfaces/team";
|
export * from "./interfaces/team";
|
||||||
export * from "./interfaces/tournament";
|
export * from "./interfaces/tournament";
|
||||||
export * from "./interfaces/guest-player-request";
|
export * from "./interfaces/guest-player-request";
|
||||||
|
export * from "./interfaces/guest-player-from-other-country-request";
|
||||||
export * from "./interfaces/single-tournament";
|
export * from "./interfaces/single-tournament";
|
||||||
export * from "./interfaces/team-championship";
|
export * from "./interfaces/team-championship";
|
||||||
export * from "./interfaces/tag";
|
export * from "./interfaces/tag";
|
||||||
@@ -27,3 +28,7 @@ export * from "./interfaces/confirmation-request/player-confirmation-request";
|
|||||||
export * from "./interfaces/confirmation-request/team-admin-confirmation-request";
|
export * from "./interfaces/confirmation-request/team-admin-confirmation-request";
|
||||||
export * from "./interfaces/confirmation-request/team-manager-confirmation-request";
|
export * from "./interfaces/confirmation-request/team-manager-confirmation-request";
|
||||||
export * from "./interfaces/confirmation-requests";
|
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";
|
||||||
|
|||||||
7
src/interfaces/adult.ts
Normal file
7
src/interfaces/adult.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { GenericUser } from "./generic-user";
|
||||||
|
import { Player } from "./player";
|
||||||
|
|
||||||
|
export interface Adult extends GenericUser {
|
||||||
|
id?: number;
|
||||||
|
kids: Player[];
|
||||||
|
}
|
||||||
@@ -8,10 +8,18 @@ export interface ConfirmationRequest {
|
|||||||
id: number;
|
id: number;
|
||||||
status: number;
|
status: number;
|
||||||
roleString: string;
|
roleString: string;
|
||||||
|
lastName: string | null;
|
||||||
|
firstName: string | null;
|
||||||
|
email: string | null;
|
||||||
|
phone: string | null;
|
||||||
|
keycloakUserId: string | null;
|
||||||
entity:
|
entity:
|
||||||
| PlayerConfirmationRequest
|
| PlayerConfirmationRequest
|
||||||
| AdultConfirmationRequest
|
| AdultConfirmationRequest
|
||||||
| TeamManagerConfirmationRequest
|
| TeamManagerConfirmationRequest
|
||||||
| TeamAdminConfirmationRequest
|
| TeamAdminConfirmationRequest
|
||||||
| OfficialConfirmationRequest;
|
| OfficialConfirmationRequest;
|
||||||
|
canBeRevoked: boolean | null;
|
||||||
|
hasMissingData: boolean | null;
|
||||||
|
createdAt: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Player } from "../player";
|
import { Player } from "../player";
|
||||||
|
|
||||||
export interface AdultConfirmationRequest {
|
export interface AdultConfirmationRequest {
|
||||||
|
id?: number;
|
||||||
kids: Player[];
|
kids: Player[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export const enum ConfirmationRequestStatus {
|
||||||
|
PENDING = 1,
|
||||||
|
APPROVED = 2,
|
||||||
|
DECLINED = 3,
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
export interface OfficialConfirmationRequest {
|
export interface OfficialConfirmationRequest {
|
||||||
|
id?: number;
|
||||||
referee: boolean;
|
referee: boolean;
|
||||||
umpire: boolean;
|
umpire: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Club } from "../club";
|
import { Club } from "../club";
|
||||||
|
|
||||||
export interface PlayerConfirmationRequest {
|
export interface PlayerConfirmationRequest {
|
||||||
|
id?: number;
|
||||||
club: Club;
|
club: Club;
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Club } from "../club";
|
import { Club } from "../club";
|
||||||
|
|
||||||
export interface TeamAdminConfirmationRequest {
|
export interface TeamAdminConfirmationRequest {
|
||||||
|
id?: number;
|
||||||
active: boolean;
|
active: boolean;
|
||||||
club: Club;
|
club: Club;
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Club } from "../club";
|
import { Club } from "../club";
|
||||||
|
|
||||||
export interface TeamManagerConfirmationRequest {
|
export interface TeamManagerConfirmationRequest {
|
||||||
|
id?: number;
|
||||||
club: Club;
|
club: Club;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
export interface GuestPlayerFromOtherCountryRequest {
|
||||||
|
id?: number;
|
||||||
|
lastName: string;
|
||||||
|
firstName: string;
|
||||||
|
gender: string;
|
||||||
|
rankingSingles: number | null;
|
||||||
|
rankingDoubles: number | null;
|
||||||
|
rankingMixed: number | null;
|
||||||
|
}
|
||||||
@@ -20,4 +20,5 @@ export interface Official extends GenericUser {
|
|||||||
tshirtCount?: number;
|
tshirtCount?: number;
|
||||||
hasCards?: boolean;
|
hasCards?: boolean;
|
||||||
hasCoin?: boolean;
|
hasCoin?: boolean;
|
||||||
|
isJVB?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export interface Player extends GenericUser {
|
|||||||
id?: number;
|
id?: number;
|
||||||
gender: string;
|
gender: string;
|
||||||
birthDate: string;
|
birthDate: string;
|
||||||
birthPlace: string | null;
|
birthPlace?: string | null;
|
||||||
officialId?: number;
|
officialId?: number;
|
||||||
club: Club;
|
club: Club;
|
||||||
active?: boolean;
|
active?: boolean;
|
||||||
|
|||||||
@@ -12,4 +12,5 @@ export interface TeamEntry {
|
|||||||
missingMalePlayerCount?: number;
|
missingMalePlayerCount?: number;
|
||||||
missingFemalePlayerCount?: number;
|
missingFemalePlayerCount?: number;
|
||||||
canAddGuestPlayers: boolean;
|
canAddGuestPlayers: boolean;
|
||||||
|
remainingGuestsCount?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
7
src/interfaces/team-manager.ts
Normal file
7
src/interfaces/team-manager.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
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