Compare commits
10 Commits
main
...
63998a9859
| Author | SHA1 | Date | |
|---|---|---|---|
| 63998a9859 | |||
| 4301da7dae | |||
| d7a3e9d790 | |||
| ac2751c2fd | |||
| d400a74e59 | |||
| dfb68e99b5 | |||
| 04df85bdbc | |||
| 78f6673179 | |||
| 60cc76c3c8 | |||
| 4f1f3e26e5 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mtlsz/common",
|
"name": "@mtlsz/common",
|
||||||
"version": "3.2.1",
|
"version": "3.3.4",
|
||||||
"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",
|
||||||
|
|||||||
@@ -27,3 +27,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,17 @@ 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;
|
||||||
|
createdAt: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
export enum ConfirmationRequestStatus {
|
||||||
|
PENDING = 1,
|
||||||
|
APPROVED = 2,
|
||||||
|
DECLINED = 3,
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
|||||||
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