product list API supports comma-separated values for include
but type for getProduct.parameters.query.include only allows single value:
API ref: https://developer.bigcommerce.com/docs/rest-catalog/products#get-all-products
code
const { data } = await bigcommerceClient.v3.catalog.products.list({
include: "images,primary_image",
});
error:
ts: Type '"images,primary_image"' is not assignable to type '"variants" | "images" | "custom_fields" | "bulk_pricing_rules" | "primary_image" | "modifiers" | "options" | "videos" | undefined'.
File: dist/genrate/generated/products_catalog.v3.d.ts
Line: 1991