ChemPal Documentation - v1.6.0
    Preparing search index...

    Module utils/typeGuards/labchem

    Functions - Typeguards

    isEpagesSearchResponse

    Type guard for the ePages catalog search response (POST /api/v2/search). Verifies the products array (each with an id, name, and links) and the totalNumberOfProducts count used to drive pagination.

    isEpagesVariationsResponse

    Type guard for a master product's variations list (GET …/products/{masterId}/variations). Verifies the items array, each entry carrying a link to its variation product page.

    isEpagesProductPage

    Type guard for a per-variation (or master) product page (GET …/products/{id}). Verifies the fields the enrichment step reads first — productId and the forSale stock flag.