- Fix Next.js build failure: remove duplicate route at (dashboard)/listings/[id] that conflicted with (public)/listings/[id] (same URL path in two route groups) - Fix 772 ESLint errors: auto-fix import ordering (import-x/order), remove unused imports/variables, convert empty interfaces to type aliases, replace require() with ESM imports, fix consistent-type-imports violations - Add CLAUDE.md for developer onboarding documentation - All checks pass: 0 lint errors, typecheck clean, 230 tests passing, build success Co-Authored-By: Paperclip <noreply@paperclip.ing>
18 lines
587 B
TypeScript
18 lines
587 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsString, MinLength } from 'class-validator';
|
|
|
|
export class AdjustSubscriptionDto {
|
|
@ApiProperty({ description: 'ID of the user whose subscription to adjust', example: 'usr_abc123' })
|
|
@IsString()
|
|
userId!: string;
|
|
|
|
@ApiProperty({ description: 'New subscription plan tier', example: 'premium' })
|
|
@IsString()
|
|
newPlanTier!: string;
|
|
|
|
@ApiProperty({ description: 'Reason for the adjustment (min 5 chars)', example: 'Promotional upgrade for early adopter', minLength: 5 })
|
|
@IsString()
|
|
@MinLength(5)
|
|
reason!: string;
|
|
}
|