Text only available in english
A part of the parameters that can be supplied via the address bar, is the filter object. By supplying the filter when starting Unifeed, all following searches will be executed within the context of this filter. The format of the filter is a JSON string. All parameters have to be URL-encoded, the filter object is no exception.
Because the filter object offers extended options, it is described separately below.
De structure of the filter wrapper object is
class wrapper {
public filters: Array<Filter>;
public query: string;
}
class Filter {
public id: string;
public name: string;
public type: string;
public values: Array<IValue>;
public hidden: boolean;
}
interface IValue {
id: string;
name: string;
}
class ValueA implements IValue {
public id: string;
public name: string;
}
class ValueN implements IValue {
public id: string;
public name: string;
public min: number;
public max: number;
}
class ValueR implements IValue {
public id: string;
public name: string;
public rangevalue: number;
}
A list of all possible filter types
Filter type | Description | Example |
---|---|---|
class |
Filter by one or more classes (ETIM classes, EC*) filter.type=”class” | filter={“filters”:[{“id”:”class”,”name”:”Klasse”,”type”:”class”,”values”:[{“id”:”EC000188″,”name”:”Bistabiel relais”},{“id”:”EC000196″,”name”:”Hulprelais”}]}]} |
featureA |
Filter by Alphanumeric features (ETIM features, EF*, type A) filter.type=”featureA“ | filter={“filters”:[{“id”:”EF000007″,”name”:”Kleur”,”type”:”featureA”,”values”:[{“id”:”EV000233″,”name”:”Rood”},{“id”:”EV000119″,”name”:”Goud”}]}]} |
featureN |
Filter by Numeric features (ETIM features, EF*, type N). filter.type=”featureN” | filter={“filters”:[{“id”:”EF000035″,”name”:”Lampvermogen”,”type”:”featureN”,”values”:[{“id”:”x”,”name”:”0 – 100″, “min”:”0″, “max”:”100″}]}]} |
featureR |
Filter by Range features (ETIM features, EF*, type R). filter.type=”featureR” | filter={“filters”:[{“id”:”EF000280″,”name”:”Geschikt voor lampvermogen”,”type”:”featureR”,”values”:[{“id”:”x”,”name”:”25.00″, “rangevalue”:”25.00″}]}]} |
manufacture |
Filter by manufacture filter.type=”manufacture” |
filter={“filters”:[{“id”:”manufacture”,”name”:”Manufacture”,”type”:”manufacture”,”values”:[{“id”:”PHILIPS”,”name”:”PHILIPS”}]}]}
|
model |
Filter by model / serie filter.type=”model” |
filter={“filters”:[{“id”:”model”,”name”:”Serie”,”type”:”model”,”values”:[{“id”:”CleanRoom”,”name”:”CleanRoom”}]}]}
|
type |
Filter by type filter.type=”type” |
filter={“filters”:[{“id”:”type”,”name”:”Type”,”type”:”type”,”values”:[{“id”:”CR200B414GTL65″,”name”:”CR200B414GTL65″}]}]}
|
sgln |
Filter by supplier (GLN) filter.type=”sgln” | filter={“filters”:[{“id”:”sgln”,”name”:”Supplier”,”type”:”sgln”,”values”:[{“id”:”8711389000001″,”name”:”Technische Unie”},{“id”:”8711891990012″,”name”:”Solar Nederland”},{“id”:”8714253035000″,”name”:”Oosterberg”},{“id”:”8714253038261″,”name”:”Finder”}]}]} |
expired |
Searching expired products filter.type=”expired” | filter={“filters”:[{“id”:”expired”,”name”:”Expired products”,”type”:”expired”,”values”:[{“id”:”true”,”name”:”YES”}]}]} |