test: comprehensive test suites and quality gates pass across backend, storefront and admin
- Backend (NestJS): 82 suites, 641 tests passing; 0 ESLint errors; 0 tsc errors. Hardened SSL cert/key matching, SSRF IP pinning, and eBank validation. - Admin Panel (Vite/React): 48 suites, 300 tests passing; 0 ESLint errors; 0 tsc errors. Full coverage across all pages and settings. - Storefront (Next.js): 62 suites, 368 tests passing; 0 ESLint errors; 0 tsc errors. - Fixed unmount lifecycle guards, promise error handling, and component edge cases.
This commit is contained in:
1 parent
1e73715169
commit
ddbf1ca026
439 files changed
+32911
-6107
No files matched your search
@@ -1,43 +1,43 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsString, IsNotEmpty, IsOptional, IsBoolean } from 'class-validator';
|
||||
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { IsString, IsNotEmpty, IsOptional, IsBoolean } from "class-validator";
|
||||
|
||||
export class AddressDto {
|
||||
@ApiProperty({ description: 'عنوان آدرس (مثلا خانه، کار)' })
|
||||
@ApiProperty({ description: "عنوان آدرس (مثلا خانه، کار)" })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
title: string;
|
||||
|
||||
@ApiProperty({ description: 'نام تحویلگیرنده' })
|
||||
@ApiProperty({ description: "نام تحویلگیرنده" })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
receptorName: string;
|
||||
|
||||
@ApiProperty({ description: 'شماره تلفن گیرنده' })
|
||||
@ApiProperty({ description: "شماره تلفن گیرنده" })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
phone: string;
|
||||
|
||||
@ApiProperty({ description: 'استان' })
|
||||
@ApiProperty({ description: "استان" })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
province: string;
|
||||
|
||||
@ApiProperty({ description: 'شهر' })
|
||||
@ApiProperty({ description: "شهر" })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
city: string;
|
||||
|
||||
@ApiProperty({ description: 'جزئیات آدرس پستی' })
|
||||
@ApiProperty({ description: "جزئیات آدرس پستی" })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
detail: string;
|
||||
|
||||
@ApiProperty({ description: 'کد پستی' })
|
||||
@ApiProperty({ description: "کد پستی" })
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
zipCode: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'انتخاب به عنوان آدرس پیشفرض' })
|
||||
@ApiPropertyOptional({ description: "انتخاب به عنوان آدرس پیشفرض" })
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isDefault?: boolean;
|
||||
|
||||
@@ -1,34 +1,34 @@
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsOptional, IsString, IsEmail, MinLength } from 'class-validator';
|
||||
import { ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { IsOptional, IsString, IsEmail, MinLength } from "class-validator";
|
||||
|
||||
export class UpdateProfileDto {
|
||||
@ApiPropertyOptional({ description: 'نام کاربر' })
|
||||
@ApiPropertyOptional({ description: "نام کاربر" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
firstName?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'نام خانوادگی کاربر' })
|
||||
@ApiPropertyOptional({ description: "نام خانوادگی کاربر" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
lastName?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'ایمیل کاربر' })
|
||||
@ApiPropertyOptional({ description: "ایمیل کاربر" })
|
||||
@IsOptional()
|
||||
@IsEmail({}, { message: 'ایمیل نامعتبر است' })
|
||||
@IsEmail({}, { message: "ایمیل نامعتبر است" })
|
||||
email?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شماره موبایل کاربر' })
|
||||
@ApiPropertyOptional({ description: "شماره موبایل کاربر" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
mobile?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'رمز عبور جدید' })
|
||||
@ApiPropertyOptional({ description: "رمز عبور جدید" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MinLength(6, { message: 'رمز عبور باید حداقل ۶ کاراکتر باشد' })
|
||||
@MinLength(6, { message: "رمز عبور باید حداقل ۶ کاراکتر باشد" })
|
||||
password?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'رمز عبور فعلی (در صورت وجود)' })
|
||||
@ApiPropertyOptional({ description: "رمز عبور فعلی (در صورت وجود)" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
currentPassword?: string;
|
||||
|
||||
Reference in new issue
Block a user