2026-09-19 16:59:15 +03:30
|
|
|
import { apiRequest } from './http'
|
|
|
|
|
|
|
|
|
|
export type ProductSuggestionDto = {
|
|
|
|
|
id: string
|
|
|
|
|
productId: string
|
|
|
|
|
productName: string
|
|
|
|
|
productCode: string
|
|
|
|
|
catalogName?: string
|
|
|
|
|
catalogCode?: string
|
|
|
|
|
color?: string
|
|
|
|
|
subtitle?: string
|
|
|
|
|
imageUrl?: string
|
2026-09-29 22:01:22 +03:30
|
|
|
colors?: string[]
|
|
|
|
|
colorImages?: Array<string | null>
|
|
|
|
|
widthCm?: number
|
|
|
|
|
composition?: string
|
2026-09-19 16:59:15 +03:30
|
|
|
isNew?: boolean
|
|
|
|
|
note?: string
|
|
|
|
|
createdAt: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function fetchMySuggestions(): Promise<ProductSuggestionDto[]> {
|
|
|
|
|
return apiRequest<ProductSuggestionDto[]>('/suggestions/me')
|
|
|
|
|
}
|