pl4y-data-library
Version:
This library contains the dtos, enums, schemas, and other data objects needed in the pl4y ecosystem.
45 lines (35 loc) • 802 B
text/typescript
import { IsOptional, IsString, IsNotEmpty, IsEmail, IsArray, IsIn, Min, Max, IsInt } from "class-validator";
export class VendorDTO {
_id?: string;
businessName?: string;
email?: string;
phone?: string;
products?: string[];
vendors?: string[];
businessType?: string;
website?: string;
rating?: number;
}