m3-academy-template-vtexio/custom/react/services/ICrosselingService.ts
Caroline Moran f2a03c53ae first commit
2022-08-11 09:06:07 -04:00

23 lines
461 B
TypeScript

export interface IImages {
imageId: string
imageLabel: string
imageTag: string
imageUrl: string
}
export interface IProducts {
productId: string
link: string
productName: string
productTitle: string
items: { images: IImages[] }[]
}
export interface ICrossSellingService {
similars(id: string): Promise<IProducts[]>
suggestions(id: string): Promise<IProducts[]>
accessories(id: string): Promise<IProducts[]>
}