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

    Module utils/typeGuards/vwr

    Functions - Typeguards

    isVWRTokenResponse

    Type guard validating a VWR OAuth token response. Requires a bearer access_token, a token_type, and a numeric expires_in lifetime.

    isVWRSearchResponse

    Type guard validating a VWR product search response. Requires a products array whose entries each carry at least a code and a baseProduct id (other fields are tolerated).

    isVWROrdertableResponse

    Type guard validating a VWR ordertable (product detail) response. Requires a productRows array whose entries each carry at least a code and catalogNumber.

    isVWRAssetReferencesResponse

    Type guard validating a VWR asset-references response. Requires an assetReferences array whose entries each carry a url (the assetType and language fields are tolerated).

    isVWRSubstanceResponse

    Type guard validating a VWR chemical substance response. Requires a substanceAttributes array whose entries each carry a code, name, and value.

    isVWRSpecificationResponse

    Type guard validating a VWR chemical specification response (a flat array of {name, result}).

    isVWRStockResponse

    Type guard validating a VWR anonymous stock-availability response. Requires the nested articleAvailabilityDetails.articleAvailabilityDetail array of per-catalog-number availability.