Poq.SDK.Node

Home > @poq/sdk-sfcc > RefinementValue

RefinementValue type

cgid: Allows to refine per single category id. Multiple category ids are not supported.

price: Allows to refine per single price range. Multiple price ranges are not supported.

pmid: Allows to refine per promotion id(s).

htype: Allow to refine by including only the provided hit types. Accepted types are ‘product’, ‘master’, ‘set’, ‘bundle’, ‘slicing_group’ (deprecated), ‘variation_group’.

orderableOnly: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

Signature:

export declare type RefinementValue = {
    price: {
        min: number;
        max: number;
    };
} | {
    cgid: string;
} | {
    orderableOnly: boolean;
} | {
    htype: 'product' | 'master' | 'set' | 'bundle' | 'variation_group' | 'slicing_group';
} | {
    [key: string]: string | string[];
};