Skip to content

Type for getProduct.parameters.query.include is wrong #38

@kishan93

Description

@kishan93

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions