m3-academy-template-vtexio-.../custom/react/services/ICrosselingService.ts

23 lines
461 B
TypeScript
Raw Normal View History

2022-08-11 13:06:07 +00:00
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[]>
}