ChemPare Documentation - v0.0.0
    Preparing search index...

    Namespace carolina

    Functions

    isResponseOk

    Type guard to validate if a response has a valid basic structure for a Carolina search response. Checks for the presence of required properties and correct response status code. This is a basic validation that should be followed by more detailed validation.

    isValidSearchResponse

    Type guard to validate if a response has the complete structure of a Carolina search response. Performs deep validation of the response object including contents, content folder zones, and child rules. This is a more thorough validation than isResponseOk.

    isSearchResultItem

    Type guard to validate if an object is a valid Carolina search result item. Checks for the presence and correct types of all required product properties including product ID, name, description, price, and URL.

    isValidProductResponse

    Validates that a response matches the ProductResponse interface structure

    isATGResponse

    Validates that a response matches the ATGResponse interface structure