File

apps/recallassess/recallassess-api/src/api/client/learning-group/dto/course-license-utilization.dto.ts

Description

One row of course license utilization (client-safe; only exposed fields survive serialization).

Index

Properties

Properties

availableLicenses
Type : number
Decorators :
@Expose()
@ApiProperty()
courseId
Type : number
Decorators :
@Expose()
@ApiProperty()
courseName
Type : string
Decorators :
@Expose()
@ApiProperty()
licensesCurrentlyUsed
Type : number
Decorators :
@Expose()
@ApiProperty()
totalLicensesAllocated
Type : number
Decorators :
@Expose()
@ApiProperty()
utilizationPercentage
Type : number
Decorators :
@Expose()
@ApiProperty()
import { ApiProperty } from "@nestjs/swagger";
import { Exclude, Expose } from "class-transformer";

/**
 * One row of course license utilization (client-safe; only exposed fields survive serialization).
 */
@Exclude()
export class CourseLicenseUtilizationRowDto {
  @Expose()
  @ApiProperty()
  courseId!: number;

  @Expose()
  @ApiProperty()
  courseName!: string;

  @Expose()
  @ApiProperty()
  totalLicensesAllocated!: number;

  @Expose()
  @ApiProperty()
  licensesCurrentlyUsed!: number;

  @Expose()
  @ApiProperty()
  availableLicenses!: number;

  @Expose()
  @ApiProperty()
  utilizationPercentage!: number;
}

results matching ""

    No results matching ""