added interceptor and authService to manage log

This commit is contained in:
2026-03-24 19:08:34 +01:00
parent 491c57b061
commit ef2afb0b58
66 changed files with 1815 additions and 777 deletions
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface AcceptFriendRequest {
export interface AcceptFriendRequest {
friendId?: number;
}
@@ -1,20 +1,21 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CreateUserGroupDto } from './create-user-group-dto';
import {CreateUserGroupDto} from './create-user-group-dto';
export interface CreateGroupDto {
label?: string | null;
title?: string | null;
description?: string | null;
duration?: number;
export interface CreateGroupDto {
label: string;
title: string;
description: string;
duration: number;
voteDuration?: number | null;
userGroups?: Array<CreateUserGroupDto> | null;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,8 +9,8 @@
*/
export interface CreateMessageDto {
libelle?: string | null;
sendDate?: string;
export interface CreateMessageDto {
libelle: string;
sendDate: string;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,11 +9,11 @@
*/
export interface CreateUserDto {
firstName?: string | null;
name?: string | null;
username?: string | null;
email?: string | null;
password?: string | null;
export interface CreateUserDto {
firstName: string;
name: string;
username: string;
email: string;
password: string;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface CreateUserGroupDto {
export interface CreateUserGroupDto {
userId?: number;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface DeleteFriendRequest {
export interface DeleteFriendRequest {
friendId?: number;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetAchievementDto {
export interface GetAchievementDto {
id?: number;
label?: string | null;
description?: string | null;
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetDesignationDto {
export interface GetDesignationDto {
id?: number;
label?: string | null;
}
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetFriendDto {
export interface GetFriendDto {
username?: string | null;
score?: number;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetFriendRequestDto {
export interface GetFriendRequestDto {
username?: string | null;
score?: number;
}
@@ -1,17 +1,17 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GetMessageDto } from './get-message-dto';
import { GetUserGroupDto } from './get-user-group-dto';
import {GetMessageDto} from './get-message-dto';
import {GetUserGroupDto} from './get-user-group-dto';
export interface GetGroupDetailsDto {
export interface GetGroupDetailsDto {
id?: number;
label?: string | null;
isFinished?: boolean;
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetGroupDto {
export interface GetGroupDto {
id?: number;
label?: string | null;
isFinished?: boolean;
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetGroupRankingDto {
export interface GetGroupRankingDto {
userId?: number;
username?: string | null;
score?: number;
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetMessageDto {
export interface GetMessageDto {
id?: number;
libelle?: string | null;
sendDate?: string;
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetProofDto {
export interface GetProofDto {
userId?: number;
username?: string | null;
proof?: string | null;
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetRandomChallengeDto {
export interface GetRandomChallengeDto {
id?: number;
libelle?: string | null;
duration?: number;
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetTokenDto {
export interface GetTokenDto {
token?: string | null;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetUserChallengeDto {
export interface GetUserChallengeDto {
challengeTitle?: string | null;
challengeDescription?: string | null;
challengeDuration?: number;
@@ -1,22 +1,22 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GetUserStatsDto } from './get-user-stats-dto';
import {GetUserStatsDto} from './get-user-stats-dto';
export interface GetUserDetailsDto {
export interface GetUserDetailsDto {
id?: number;
firstName?: string | null;
name?: string | null;
username?: string | null;
email?: string | null;
designationId?: number;
designationId?: number | null;
creationDate?: string;
getUserStatsDto?: GetUserStatsDto | null;
}
+4 -4
View File
@@ -1,21 +1,21 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { GetUserStatsDto } from './get-user-stats-dto';
import {GetUserStatsDto} from './get-user-stats-dto';
export interface GetUserDto {
export interface GetUserDto {
id?: number;
firstName?: string | null;
name?: string | null;
username?: string | null;
designationId?: number;
designationId?: number | null;
getUserStatsDto?: GetUserStatsDto | null;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetUserGroupDto {
export interface GetUserGroupDto {
id?: number;
username?: string | null;
grade?: string | null;
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetUserProofDto {
export interface GetUserProofDto {
id?: number;
proof?: string | null;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface GetUserStatsDto {
export interface GetUserStatsDto {
id?: number;
score?: number;
totalWin?: number;
+4 -4
View File
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,8 +9,8 @@
*/
export interface LoginDto {
username?: string | null;
password?: string | null;
export interface LoginDto {
username: string;
password: string;
}
+1
View File
@@ -4,6 +4,7 @@ export * from './create-message-dto';
export * from './create-user-dto';
export * from './create-user-group-dto';
export * from './delete-friend-request';
export * from './error-response';
export * from './get-achievement-dto';
export * from './get-designation-dto';
export * from './get-friend-dto';
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface PatchUserDesignationDto {
designationId?: number;
export interface PatchUserDesignationDto {
designationId: number;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface PatchUserPasswordDto {
password?: string | null;
export interface PatchUserPasswordDto {
password: string;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface RandomChallengeProofRequest {
export interface RandomChallengeProofRequest {
proof?: string | null;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface RefreshTokenDto {
token?: string | null;
export interface RefreshTokenDto {
token: string;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface RejectFriendRequest {
export interface RejectFriendRequest {
friendId?: number;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,10 +9,10 @@
*/
export interface UpdateUserDto {
firstName?: string | null;
name?: string | null;
username?: string | null;
email?: string | null;
export interface UpdateUserDto {
firstName: string;
name: string;
username: string;
email: string;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface UserProofRequest {
export interface UserProofRequest {
proof?: string | null;
}
@@ -1,7 +1,7 @@
/**
* BeReadyBackend
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
@@ -9,7 +9,7 @@
*/
export interface UserVoteRequest {
export interface UserVoteRequest {
votedProofId?: number;
}