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

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

No files matched your search

@@ -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;
}
}
@@ -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';
}
@@ -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[];