"use strict";

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

var _validator = _interopRequireDefault(require("validator"));

var _validators = require("./validators");

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

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

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

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

/**
 * @memberOf module:types
 * @typedef {String} PostalCode
 */
var PostalCode = (0, _validators.makeValidator)(function (x) {
  return _validator["default"].isPostalCode(x, 'any');
}, 'Not a valid Postal Code.');
exports.PostalCode = PostalCode;