@yext/search-core
Version:
Typescript Networking Library for the Yext Search API
75 lines • 1.98 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Matcher = void 0;
/**
* A Matcher is a filtering operation.
*
* @public
*/
var Matcher;
(function (Matcher) {
/**
* An equals comparison.
*
* @remarks
* Compatible with all field types.
*/
Matcher["Equals"] = "$eq";
/**
* A not equals comparison.
*
* @remarks
* Compatible with all field types.
*/
Matcher["NotEquals"] = "!$eq";
/**
* A less than comparison.
*
* @remarks
* Compatible with integer, float, date, datetime, and time fields.
*/
Matcher["LessThan"] = "$lt";
/**
* A less than or equal to comparison.
*
* @remarks
* Compatible with integer, float, date, datetime, and time fields.
*/
Matcher["LessThanOrEqualTo"] = "$le";
/**
* A greater than comparison.
*
* @remarks
* Compatible with integer, float, date, datetime, and time fields.
*/
Matcher["GreaterThan"] = "$gt";
/**
* A greater than or equal to comparison.
*
* @remarks
* Compatible with integer, float, date, datetime, and time fields.
*/
Matcher["GreaterThanOrEqualTo"] = "$ge";
/**
* A comparison of whether an entity is within a certain radius of a certain location.
*
* @remarks
* Only compatible with the builtin.location field.
*/
Matcher["Near"] = "$near";
/**
* A limitation of the dataset to a range of values.
*
* @remarks
* Compatible with integer and float.
*/
Matcher["Between"] = "$between";
/**
* A comparison of an entity's hours and the current time to determine whether it is open.
*
* @remarks
* Only compatible with the builtin.hours field, and only supports the value 'now'.
*/
Matcher["OpenAt"] = "$openAt";
})(Matcher = exports.Matcher || (exports.Matcher = {}));
//# sourceMappingURL=Matcher.js.map