fix(types): resolve type errors in ReportData, SmsService, and GetProductsDto
Some checks are pending
Deploy Canina / deploy (push) Waiting to run
Some checks are pending
Deploy Canina / deploy (push) Waiting to run
This commit is contained in:
parent
aac0716046
commit
053d6f06d8
@ -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[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user