Shitty gadgets removed. Some useful gadgets added.

This commit is contained in:
2026-07-11 03:12:56 +03:30
parent 2f8c9f0f4d
commit ed8ff61205
31 changed files with 1489 additions and 170 deletions

View File

@@ -1,5 +1,6 @@
import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsISO8601, IsOptional } from 'class-validator';
import { IsISO8601, IsInt, IsOptional, Max, Min } from 'class-validator';
import { Type } from 'class-transformer';
export class TodaySummaryQueryDto {
@ApiPropertyOptional({
@@ -17,4 +18,16 @@ export class TodaySummaryQueryDto {
@IsOptional()
@IsISO8601()
to?: string;
@ApiPropertyOptional({
description:
'Client UTC offset in minutes (same sign as Date.getTimezoneOffset negated). Used for hourly buckets.',
example: 210,
})
@IsOptional()
@Type(() => Number)
@IsInt()
@Min(-840)
@Max(840)
utcOffsetMinutes?: number;
}