feat(products): remove mock static fallbacks and add dynamic specialist recommendation management in database and admin panel
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 7s
Deploy Canina / deploy (push) Has been cancelled

This commit is contained in:
parsa aghaei committed 2026-09-02 15:50:01 +03:30
1 parent 1ca06d5740
commit 00839017ff
7 files changed
+216 -66

No files matched your search

+2
View File
@@ -476,6 +476,7 @@ export class AdminService {
...(data.expectedResults !== undefined
? { expectedResults: data.expectedResults }
: {}),
...(data.specialist !== undefined ? { specialist: data.specialist } : {}),
...(data.isPreorder !== undefined ? { isPreorder: data.isPreorder } : {}),
...(data.preorderDeposit !== undefined
? { preorderDeposit: data.preorderDeposit }
@@ -616,6 +617,7 @@ export class AdminService {
...(data.expectedResults !== undefined
? { expectedResults: data.expectedResults }
: {}),
...(data.specialist !== undefined ? { specialist: data.specialist } : {}),
...(data.isPreorder !== undefined ? { isPreorder: data.isPreorder } : {}),
...(data.preorderDeposit !== undefined
? { preorderDeposit: data.preorderDeposit }
+9
View File
@@ -332,6 +332,15 @@ export class ProductDto {
@IsArray()
expectedResults?: Array<{ icon: string; text: string }>;
@ApiPropertyOptional({ description: 'توصیه و نظر پزشک متخصص (Specialist Endorsement)' })
@IsOptional()
specialist?: {
name?: string;
title?: string;
image?: string;
message?: string;
};
@ApiPropertyOptional({ description: 'پیکربندی جامع دوز و داده‌های تکمیلی' })
@IsOptional()
dosageConfig?: Record<string, any>;