@spinque/query-api
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -31,3 +31,3 @@ import { Query } from './types'; | ||
*/ | ||
addFacet(endpoint: string, type?: 'single' | 'multiple', filterEndpointPrefix?: string, filterEndpointParameterName?: string): void; | ||
addFacet(endpoint: string, type?: 'single' | 'multiple', filterEndpointPostfix?: string, filterEndpointParameterName?: string): void; | ||
get facets(): Facet[]; | ||
@@ -34,0 +34,0 @@ setModifier(modifier: Query | undefined): void; |
@@ -54,9 +54,9 @@ "use strict"; | ||
*/ | ||
FacetedSearch.prototype.addFacet = function (endpoint, type, filterEndpointPrefix, filterEndpointParameterName) { | ||
FacetedSearch.prototype.addFacet = function (endpoint, type, filterEndpointPostfix, filterEndpointParameterName) { | ||
if (type === void 0) { type = 'single'; } | ||
if (filterEndpointPrefix === void 0) { filterEndpointPrefix = ':FILTER'; } | ||
if (filterEndpointPostfix === void 0) { filterEndpointPostfix = ':FILTER'; } | ||
if (filterEndpointParameterName === void 0) { filterEndpointParameterName = 'value'; } | ||
this._facets.push({ | ||
optionsEndpoint: endpoint, | ||
filterEndpoint: "".concat(endpoint).concat(filterEndpointPrefix), | ||
filterEndpoint: "".concat(endpoint).concat(filterEndpointPostfix), | ||
filterParameterName: filterEndpointParameterName, | ||
@@ -63,0 +63,0 @@ filterParameterValue: undefined, |
{ | ||
"name": "@spinque/query-api", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94107