3.2.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mtlsz/common",
|
||||
"version": "3.1.1",
|
||||
"version": "3.2.0",
|
||||
"description": "MTLSZ frontend packages",
|
||||
"main": "dist/index.ts",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
@@ -20,3 +20,9 @@ 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";
|
||||
|
||||
17
src/interfaces/confirmation-request.ts
Normal file
17
src/interfaces/confirmation-request.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user