import { ApiProperty } from "@nestjs/swagger";
import { IsEnum, IsString } from "class-validator";

enum type {
    YEARLY = "YEARLY",
    MONTHLY = "MONTHLY",
    WEEKLY = "WEEKLY",
    DAILY = "DAILY"
}

export class Graph {

    @ApiProperty({ description: "type comes here", enum: type, required: true })
    @IsEnum(type)
    type: string;

}

export class GraphResponse {

    hour?: number;
    day?: string;
    date?: string;
    month?: string;
    count?: number;

}