forked from Yara724/api
YARA-732
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { IsString, IsNotEmpty, IsOptional } from "class-validator";
|
||||
import {
|
||||
IsBoolean,
|
||||
IsDateString,
|
||||
IsNotEmpty,
|
||||
IsOptional,
|
||||
IsString,
|
||||
} from "class-validator";
|
||||
|
||||
export class CreateBranchDto {
|
||||
@ApiProperty({ example: "شهرک غرب" })
|
||||
@@ -31,4 +37,18 @@ export class CreateBranchDto {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
phoneNumber?: string;
|
||||
|
||||
@ApiProperty({ required: false, example: true, default: true })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isActive?: boolean;
|
||||
|
||||
@ApiProperty({
|
||||
required: false,
|
||||
example: "2025-01-01T00:00:00.000Z",
|
||||
description: "Branch activity start datetime (ISO string)",
|
||||
})
|
||||
@IsOptional()
|
||||
@IsDateString()
|
||||
activityStartDate?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user