2021-01-06 17:01:32 -03:00
|
|
|
interface Product {
|
|
|
|
id: string | number
|
|
|
|
name: string
|
|
|
|
description: string
|
2021-01-07 11:58:00 -03:00
|
|
|
images: ProductImage[]
|
2021-01-07 16:28:50 -03:00
|
|
|
variants: ProductVariant[]
|
2021-01-07 11:58:00 -03:00
|
|
|
prices: ProductPrice[]
|
2021-01-06 17:01:32 -03:00
|
|
|
slug: string
|
2021-01-07 11:58:00 -03:00
|
|
|
path?: string
|
2021-01-06 17:01:32 -03:00
|
|
|
}
|
2021-01-07 16:28:50 -03:00
|
|
|
interface ProductImage {
|
|
|
|
url: string
|
|
|
|
alt?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ProductVariant {
|
|
|
|
id: string | number
|
|
|
|
}
|
2021-01-06 17:01:32 -03:00
|
|
|
|
2021-01-07 11:58:00 -03:00
|
|
|
interface ProductPrice {
|
|
|
|
value: number | string
|
|
|
|
currencyCode: 'USD' | 'ARS'
|
|
|
|
type?: 'price' | 'retail' | 'sale' | string
|
2021-01-06 17:01:32 -03:00
|
|
|
}
|