GitHub

DaffProductDriverResponse

import { DaffProductDriverResponse } from '@daffodil/product/driver'

The driver response model that contains all products returned by the platform.

interface DaffProductDriverResponse<T extends DaffProduct = DaffProduct> {
  id: T["id"]
  products: T[]
}

Properties

id
T["id"]

The ID of the "main" product. That is, the ID that was passed into the driver call.

products
T[]

The list of products. Contains the main product referenced by id and possibly additional products that were nested inside the main product. Does not guarantee uniqueness; duplicates may appear.