medusa-core-utils
Advanced tools
Comparing version 1.1.23-next.19 to 1.1.23-next.46
@@ -24,2 +24,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "indexTypes", { | ||
enumerable: true, | ||
get: function get() { | ||
return _indexTypes.indexTypes; | ||
} | ||
}); | ||
Object.defineProperty(exports, "Validator", { | ||
@@ -72,2 +78,4 @@ enumerable: true, | ||
var _indexTypes = require("./index-types"); | ||
var _validator = _interopRequireDefault(require("./validator")); | ||
@@ -74,0 +82,0 @@ |
@@ -62,3 +62,26 @@ "use strict"; | ||
_joi["default"].productFilter = function () { | ||
return _joi["default"].object().keys({ | ||
id: _joi["default"].string(), | ||
q: _joi["default"].string().allow(null, ""), | ||
status: _joi["default"].array().items(_joi["default"].string().valid("proposed", "draft", "published", "rejected")).single(), | ||
collection_id: _joi["default"].array().items(_joi["default"].string()).single(), | ||
tags: _joi["default"].array().items(_joi["default"].string()).single(), | ||
title: _joi["default"].string(), | ||
description: _joi["default"].string(), | ||
handle: _joi["default"].string(), | ||
is_giftcard: _joi["default"].string(), | ||
type: _joi["default"].string(), | ||
offset: _joi["default"].string(), | ||
limit: _joi["default"].string(), | ||
expand: _joi["default"].string(), | ||
fields: _joi["default"].string(), | ||
order: _joi["default"].string().optional(), | ||
created_at: _joi["default"].dateFilter(), | ||
updated_at: _joi["default"].dateFilter(), | ||
deleted_at: _joi["default"].dateFilter() | ||
}); | ||
}; | ||
var _default = _joi["default"]; | ||
exports["default"] = _default; |
{ | ||
"name": "medusa-core-utils", | ||
"version": "1.1.23-next.19+337fc16c", | ||
"version": "1.1.23-next.46+7461c130", | ||
"description": "Core utils for Medusa", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "337fc16c38fe90c2b985f5434fe62da758ba3f59" | ||
"gitHead": "7461c130ec517d435901467e3d0c1dd53e42cbeb" | ||
} |
export { countries } from "./countries" | ||
export { isoCountryLookup } from "./countries" | ||
export { transformIdableFields } from "./transform-idable-fields" | ||
export { indexTypes } from "./index-types" | ||
export { default as Validator } from "./validator" | ||
@@ -5,0 +6,0 @@ export { default as MedusaError } from "./errors" |
@@ -99,2 +99,31 @@ import Joi from "joi" | ||
Joi.productFilter = () => { | ||
return Joi.object().keys({ | ||
id: Joi.string(), | ||
q: Joi.string().allow(null, ""), | ||
status: Joi.array() | ||
.items(Joi.string().valid("proposed", "draft", "published", "rejected")) | ||
.single(), | ||
collection_id: Joi.array() | ||
.items(Joi.string()) | ||
.single(), | ||
tags: Joi.array() | ||
.items(Joi.string()) | ||
.single(), | ||
title: Joi.string(), | ||
description: Joi.string(), | ||
handle: Joi.string(), | ||
is_giftcard: Joi.string(), | ||
type: Joi.string(), | ||
offset: Joi.string(), | ||
limit: Joi.string(), | ||
expand: Joi.string(), | ||
fields: Joi.string(), | ||
order: Joi.string().optional(), | ||
created_at: Joi.dateFilter(), | ||
updated_at: Joi.dateFilter(), | ||
deleted_at: Joi.dateFilter(), | ||
}) | ||
} | ||
export default Joi |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
81076
2478