feat(admin): add comprehensive product attributes management and dynamic analysis table
This commit is contained in:
1 parent
68840fbdf2
commit
ceaab10fdd
14 files changed
+2362
-1873
No files matched your search
@@ -460,6 +460,22 @@ export class AdminService {
|
||||
...(data.keyHighlights !== undefined
|
||||
? { keyHighlights: data.keyHighlights }
|
||||
: {}),
|
||||
...(data.keyBenefits !== undefined
|
||||
? { keyBenefits: data.keyBenefits }
|
||||
: {}),
|
||||
...(data.analysis !== undefined ? { analysis: data.analysis } : {}),
|
||||
...(data.onSetOfAction !== undefined
|
||||
? { onSetOfAction: data.onSetOfAction }
|
||||
: {}),
|
||||
...(data.specialBadge !== undefined
|
||||
? { specialBadge: data.specialBadge }
|
||||
: {}),
|
||||
...(data.contraindications !== undefined
|
||||
? { contraindications: data.contraindications }
|
||||
: {}),
|
||||
...(data.expectedResults !== undefined
|
||||
? { expectedResults: data.expectedResults }
|
||||
: {}),
|
||||
...(data.isPreorder !== undefined ? { isPreorder: data.isPreorder } : {}),
|
||||
...(data.preorderDeposit !== undefined
|
||||
? { preorderDeposit: data.preorderDeposit }
|
||||
@@ -584,6 +600,22 @@ export class AdminService {
|
||||
...(data.keyHighlights !== undefined
|
||||
? { keyHighlights: data.keyHighlights }
|
||||
: {}),
|
||||
...(data.keyBenefits !== undefined
|
||||
? { keyBenefits: data.keyBenefits }
|
||||
: {}),
|
||||
...(data.analysis !== undefined ? { analysis: data.analysis } : {}),
|
||||
...(data.onSetOfAction !== undefined
|
||||
? { onSetOfAction: data.onSetOfAction }
|
||||
: {}),
|
||||
...(data.specialBadge !== undefined
|
||||
? { specialBadge: data.specialBadge }
|
||||
: {}),
|
||||
...(data.contraindications !== undefined
|
||||
? { contraindications: data.contraindications }
|
||||
: {}),
|
||||
...(data.expectedResults !== undefined
|
||||
? { expectedResults: data.expectedResults }
|
||||
: {}),
|
||||
...(data.isPreorder !== undefined ? { isPreorder: data.isPreorder } : {}),
|
||||
...(data.preorderDeposit !== undefined
|
||||
? { preorderDeposit: data.preorderDeposit }
|
||||
|
||||
@@ -304,6 +304,34 @@ export class ProductDto {
|
||||
@IsArray()
|
||||
keyHighlights?: string[];
|
||||
|
||||
@ApiPropertyOptional({ description: 'کارتهای شاخص «چرا این محصول؟» (۳ کارت مزایا)' })
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
keyBenefits?: Array<{ icon: string; title: string; description: string }>;
|
||||
|
||||
@ApiPropertyOptional({ description: 'جدول آنالیز و درصد ترکیبات (Analytical Constituents)' })
|
||||
@IsOptional()
|
||||
analysis?: Record<string, string>;
|
||||
|
||||
@ApiPropertyOptional({ description: 'زمان شروع اثربخشی (Onset of Action)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
onSetOfAction?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'برچسب ویژه محصول (Special Badge)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
specialBadge?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'موارد منع مصرف (Contraindications)' })
|
||||
@IsOptional()
|
||||
contraindications?: string[] | string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'نتایج بالینی مورد انتظار (Expected Clinical Results)' })
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
expectedResults?: Array<{ icon: string; text: string }>;
|
||||
|
||||
@ApiPropertyOptional({ description: 'پیکربندی جامع دوز و دادههای تکمیلی' })
|
||||
@IsOptional()
|
||||
dosageConfig?: Record<string, any>;
|
||||
|
||||
Reference in new issue
Block a user