mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 06:56:59 +00:00
create sylius products type
This commit is contained in:
parent
f5282b332f
commit
b414f4f708
29
packages/sylius/src/types.ts
Normal file
29
packages/sylius/src/types.ts
Normal file
@ -0,0 +1,29 @@
|
||||
export interface SyliusProduct {
|
||||
id: number
|
||||
name: string
|
||||
shortDescription: string
|
||||
description: string
|
||||
slug: string
|
||||
images: SyliusProductImage[]
|
||||
variants: SyliusProductVariant[]
|
||||
options: any[]
|
||||
}
|
||||
|
||||
export interface SyliusProductImage {
|
||||
id: number
|
||||
type: string
|
||||
path: string
|
||||
}
|
||||
|
||||
export interface SyliusProductVariant {
|
||||
id: number
|
||||
price: number
|
||||
originalPrice: number
|
||||
inStock: boolean
|
||||
}
|
||||
|
||||
export interface SyliusProductOption {
|
||||
code: string
|
||||
option: string
|
||||
value: string
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user