gg
This commit is contained in:
@@ -73,7 +73,25 @@ export class ChangePasswordDto {
|
||||
newPassword: string;
|
||||
}
|
||||
|
||||
import { Exclude, Expose } from "class-transformer";
|
||||
import { Exclude, Expose, Type } from "class-transformer";
|
||||
|
||||
@Exclude()
|
||||
export class UsageLimitDto {
|
||||
@Expose()
|
||||
analysisCount: number;
|
||||
|
||||
@Expose()
|
||||
couponCount: number;
|
||||
|
||||
@Expose()
|
||||
maxAnalyses: number;
|
||||
|
||||
@Expose()
|
||||
maxCoupons: number;
|
||||
|
||||
@Expose()
|
||||
lastResetDate: Date;
|
||||
}
|
||||
|
||||
@Exclude()
|
||||
export class UserResponseDto {
|
||||
@@ -95,9 +113,16 @@ export class UserResponseDto {
|
||||
@Expose()
|
||||
isActive: boolean;
|
||||
|
||||
@Expose()
|
||||
subscriptionStatus: string;
|
||||
|
||||
@Expose()
|
||||
createdAt: Date;
|
||||
|
||||
@Expose()
|
||||
updatedAt: Date;
|
||||
|
||||
@Expose()
|
||||
@Type(() => UsageLimitDto)
|
||||
usageLimit?: UsageLimitDto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user