Home > widget-integration > RecommendationFilteringRules

RecommendationFilteringRules type

Signature:

export type RecommendationFilteringRules = {
	conditions: {
		option: "all-products" | "all-collections" | "algorithm" | "reviewsio-rating" | "total-reviewsio-rating" | "productId" | "vendor" | "product-category" | "collectionId" | "price" | "tag" | "product-type";
		conductor?: "equal" | "not_equal" | "greater_than" | "greater_equal_than" | "less_than" | "less_equal_than" | "contains" | "equal_collection" | "not_equal_collection" | "equal_product_category" | "not_equal_product_category" | "equal_product_type" | "not_equal_product_type" | "equal_vendor" | "not_equal_vendor" | "contains_all_tags" | "contains_matched_tags";
		value?: string | number | string[] | {
			label: string;
			value: string;
		}[] | number[] | {
			id: string;
			title: string;
			images: string[];
		}[] | {
			value: string;
			label: string;
		}[];
	}[];
	consequences: {
		option: "all-products" | "all-collections" | "algorithm" | "reviewsio-rating" | "total-reviewsio-rating" | "productId" | "vendor" | "product-category" | "collectionId" | "price" | "tag" | "product-type";
		conductor?: "equal" | "not_equal" | "greater_than" | "greater_equal_than" | "less_than" | "less_equal_than" | "contains" | "equal_collection" | "not_equal_collection" | "equal_product_category" | "not_equal_product_category" | "equal_product_type" | "not_equal_product_type" | "equal_vendor" | "not_equal_vendor" | "contains_all_tags" | "contains_matched_tags";
		value?: string | number | string[] | {
			label: string;
			value: string;
		}[] | number[] | {
			id: string;
			title: string;
			images: string[];
		}[] | {
			value: string;
			label: string;
		}[];
	}[];
}[];