- Restructure directories: apps/api, apps/admin, apps/website - Add root pnpm-workspace.yaml, turbo.json, .prettierrc, .gitignore - Rename packages to @inkreach/api, @inkreach/admin, @inkreach/website - Add shared packages: packages/tsconfig, packages/shared-types - Add pnpm.onlyBuiltDependencies for native builds - Update docs: README.md, structs.md - All three projects build successfully
27 lines
481 B
TypeScript
27 lines
481 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import {
|
|
IsInt,
|
|
IsOptional,
|
|
Min,
|
|
} from 'class-validator';
|
|
|
|
export class UpdatePositionDto {
|
|
@ApiProperty({ required: false })
|
|
@IsOptional()
|
|
@IsInt()
|
|
@Min(0)
|
|
indexVal?: number;
|
|
|
|
@ApiProperty({ required: false, nullable: true })
|
|
@IsOptional()
|
|
@IsInt()
|
|
@Min(1)
|
|
countryId?: number | null;
|
|
|
|
@ApiProperty({ required: false, nullable: true })
|
|
@IsOptional()
|
|
@IsInt()
|
|
@Min(1)
|
|
categoryId?: number | null;
|
|
}
|