refactor: use action property for setting maint. mode

This commit is contained in:
izzy 2025-11-14 15:49:12 +00:00
parent bdb53dba32
commit aad47ce45a
No known key found for this signature in database
GPG key ID: 5059F398521BB0F6
15 changed files with 142 additions and 29 deletions

View file

@ -41,7 +41,7 @@ export type ActivityStatisticsResponseDto = {
likes: number;
};
export type SetMaintenanceModeDto = {
maintenanceMode: boolean;
action: MaintenanceAction;
};
export type MaintenanceLoginDto = {
token?: string;
@ -4881,6 +4881,10 @@ export enum UserAvatarColor {
Gray = "gray",
Amber = "amber"
}
export enum MaintenanceAction {
Start = "start",
End = "end"
}
export enum NotificationLevel {
Success = "success",
Error = "error",