Type guard to validate if an object is a valid Wix ProductObject. Checks for the presence and correct types of all required product properties including price, name, URL, and validates all product items and options.
Type guard to validate if an object is a valid Wix ProductItem. Checks for the presence and correct types of all required item properties including ID, price, and ensures optionsSelections is a non-empty array.
Type guard to validate if an object is a valid Wix ProductSelection. Checks for the presence and correct types of all required selection properties including ID (which can be string or number), value, description, key, and inStock.
Type guard to validate if a response matches the Wix QueryResponse structure. Performs deep validation of the response object including the nested catalog structure, products metadata, and ensures all products in the list are valid Wix products.