"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Filter = void 0;

var _propTypes = _interopRequireDefault(require("prop-types"));

var _filterValue = require("./filter-value");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/* Copyright (c) 2018 Mobify Research & Development Inc. All rights reserved. */

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/**
 * @memberOf module:types
 * @typedef {Object} Filter
 * @property {String} propertyId The filter's property id. (For example, color or size.)
 * @property {String} label The filter's text used for labels. (For example, the filter color may have a label attribute of "Color".)
 * @property {Array.<module:types.FilterValue>} values The filter values.
 */
var Filter = {
  propertyId: _propTypes["default"].string,
  label: _propTypes["default"].string,
  values: _propTypes["default"].arrayOf(_propTypes["default"].shape(_filterValue.FilterValue))
};
exports.Filter = Filter;