Type guard to validate if a response matches the Chemsavers SearchResponse structure. Performs validation of the response object including the results array and its hits, ensuring each hit is a valid ProductObject. This is a comprehensive validation that checks the entire response structure.
Asserts that a response is a valid Chemsavers SearchResponse. Throws an error if the response is not a valid SearchResponse.
Type guard to validate if an object matches the Chemsavers ProductObject structure. Checks for the presence and correct types of all required product properties including CAS number, inventory level, pricing information, and product identifiers.