This commit is contained in:
2026-04-14 14:22:04 +03:30
parent 510fbea3b1
commit eca144a6c6
19 changed files with 317 additions and 23 deletions
@@ -1,9 +1,11 @@
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsString } from "class-validator";
import { IsMobilePhone, IsNotEmpty, Length } from "class-validator";
import { AuthMessage } from "../../../common/enums/message.enum";
export class CreateResellerAgentDto {
@IsNotEmpty()
@IsString()
@ApiProperty()
userId: string;
@IsNotEmpty({ message: AuthMessage.PHONE_NOT_EMPTY })
@IsMobilePhone("fa-IR", {}, { message: AuthMessage.INVALID_PHONE_FORMAT })
@Length(11, 11, { message: AuthMessage.PHONE_SHOULD_BE_11_DIGIT })
@ApiProperty({ description: "phone number", default: "09922320740" })
phone: string;
}
@@ -0,0 +1,3 @@
import { PaginationDto } from "../../../common/DTO/pagination.dto";
export class SearchCustomersQueryDto extends PaginationDto { }
@@ -0,0 +1,3 @@
import { PaginationDto } from "../../../common/DTO/pagination.dto";
export class SearchResellerInvoicesQueryDto extends PaginationDto { }
@@ -0,0 +1,5 @@
import { PaginationDto } from "../../../common/DTO/pagination.dto";
export class SearchRewardsRequestQueryDto extends PaginationDto {
}