import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';

export class CreateImprintDto {
	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	type: string;

	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	location: string;

	@ApiProperty()
	@IsNotEmpty()
	@IsNumber()
	designId: number;

	@ApiProperty()
	@IsNotEmpty()
	@IsString()
	pricingType: string;

	@ApiProperty()
	images: [
		{
			url: string;
		},
	];

	@ApiProperty()
	@IsNotEmpty()
	@IsNumber()
	height: number;

	@ApiProperty()
	@IsNotEmpty()
	@IsNumber()
	width: number;

	// adding the imprint to ink relationship
	@ApiProperty()
	@IsNotEmpty()
	@IsOptional()
	inks: [
		{
			inkId: number;
			mesh: string;
		},
	];
}
