@contember/schema-definition
Advanced tools
Comparing version 0.11.0 to 0.12.0-alpha.0
@@ -11,3 +11,3 @@ "use strict"; | ||
exports.default = PredicateReference; | ||
exports.resolvePredicateReference = (model, permissions, entity, predicate) => { | ||
const resolvePredicateReference = (model, permissions, entity, predicate) => { | ||
const predicateDefinitionProcessor = new schema_utils_1.PredicateDefinitionProcessor(model); | ||
@@ -36,2 +36,3 @@ return predicateDefinitionProcessor.process(entity, predicate, { | ||
}; | ||
exports.resolvePredicateReference = resolvePredicateReference; | ||
//# sourceMappingURL=PredicateReference.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
const utils_1 = require("../../utils"); | ||
exports.getColumnType = (type) => { | ||
const getColumnType = (type) => { | ||
switch (type) { | ||
@@ -29,2 +29,3 @@ case schema_1.Model.ColumnType.Int: | ||
}; | ||
exports.getColumnType = getColumnType; | ||
//# sourceMappingURL=getColumnType.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.tuple = void 0; | ||
exports.tuple = (...args) => args; | ||
const tuple = (...args) => args; | ||
exports.tuple = tuple; | ||
//# sourceMappingURL=tuple.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
const schema_1 = require("@contember/schema"); | ||
exports.parsePath = (path) => { | ||
const parsePath = (path) => { | ||
if (!path) { | ||
@@ -18,2 +18,3 @@ return []; | ||
}; | ||
exports.parsePath = parsePath; | ||
const ArgumentFactory = { | ||
@@ -154,11 +155,19 @@ validator: (validator) => ({ | ||
exports.when = when; | ||
exports.assert = (validator, message) => fluent().assert(validator, message); | ||
const assert = (validator, message) => fluent().assert(validator, message); | ||
exports.assert = assert; | ||
/** alias for assertDefined */ | ||
exports.required = (message) => fluent().assertDefined(message); | ||
exports.assertDefined = (message) => fluent().assertDefined(message); | ||
exports.assertNotEmpty = (message) => fluent().assertNotEmpty(message); | ||
exports.assertPattern = (pattern, message) => fluent().assertPattern(pattern, message); | ||
exports.assertMinLength = (min, message) => fluent().assertMinLength(min, message); | ||
exports.assertMaxLength = (min, message) => fluent().assertMaxLength(min, message); | ||
exports.combine = (...decorators) => (target, propertyKey) => decorators.forEach(it => it(target, propertyKey)); | ||
const required = (message) => fluent().assertDefined(message); | ||
exports.required = required; | ||
const assertDefined = (message) => fluent().assertDefined(message); | ||
exports.assertDefined = assertDefined; | ||
const assertNotEmpty = (message) => fluent().assertNotEmpty(message); | ||
exports.assertNotEmpty = assertNotEmpty; | ||
const assertPattern = (pattern, message) => fluent().assertPattern(pattern, message); | ||
exports.assertPattern = assertPattern; | ||
const assertMinLength = (min, message) => fluent().assertMinLength(min, message); | ||
exports.assertMinLength = assertMinLength; | ||
const assertMaxLength = (min, message) => fluent().assertMaxLength(min, message); | ||
exports.assertMaxLength = assertMaxLength; | ||
const combine = (...decorators) => (target, propertyKey) => decorators.forEach(it => it(target, propertyKey)); | ||
exports.combine = combine; | ||
function parseDefinition(definitions) { | ||
@@ -165,0 +174,0 @@ return Object.entries(definitions) |
{ | ||
"name": "@contember/schema-definition", | ||
"version": "0.11.0", | ||
"version": "0.12.0-alpha.0", | ||
"license": "Apache-2.0", | ||
@@ -11,4 +11,4 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@contember/schema": "^0.11.0", | ||
"@contember/schema-utils": "^0.11.0", | ||
"@contember/schema": "^0.12.0-alpha.0", | ||
"@contember/schema-utils": "^0.12.0-alpha.0", | ||
"reflect-metadata": "^0.1.13" | ||
@@ -15,0 +15,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
564072
1894
4758
15
+ Added@contember/schema@0.12.0-beta.2(transitive)
+ Added@contember/schema-utils@0.12.0-beta.2(transitive)
- Removed@contember/schema@0.11.5(transitive)
- Removed@contember/schema-utils@0.11.5(transitive)