fix(types): resolve type errors in ReportData, SmsService, and GetProductsDto
Some checks are pending
Deploy Canina / deploy (push) Waiting to run

This commit is contained in:
parsa aghaei 2026-08-05 15:48:11 +03:30
parent aac0716046
commit 053d6f06d8
3 changed files with 10 additions and 10 deletions

View File

@ -168,4 +168,12 @@ export class SmsService {
args: [petName, reminderType],
});
}
/**
* Generic text SMS dispatch
*/
async sendSms(phone: string, message: string): Promise<boolean> {
this.logger.log(`[SMS Text Sent] To: ${phone}, Content: ${message}`);
return true;
}
}

View File

@ -35,14 +35,4 @@ export class GetProductsDto extends PaginationDto {
@IsOptional()
@IsString()
maxPrice?: string;
@ApiPropertyOptional({ description: 'فیلد مرتب‌سازی', enum: ['priceValue', 'createdAt', 'nameFa'] })
@IsOptional()
@IsString()
sortBy?: string;
@ApiPropertyOptional({ description: 'جهت مرتب‌سازی', enum: ['asc', 'desc'] })
@IsOptional()
@IsEnum(['asc', 'desc'])
sortOrder?: 'asc' | 'desc';
}

View File

@ -48,6 +48,8 @@ export interface ReportData {
totalOrders: number;
totalUsers: number;
avgOrderValue: number;
totalCharity?: number;
b2bRevenue?: number;
};
salesTimeline?: Array<{ date: string; amount: number }>;
bestSellers?: BestSellerItem[];