Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contember/schema-definition

Package Overview
Dependencies
Maintainers
5
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/schema-definition - npm Package Compare versions

Comparing version 0.8.0-alpha.2 to 0.8.0-alpha.3

6

dist/src/acl/PermissionOverrider.js

@@ -22,3 +22,7 @@ "use strict";

update: { ...(original.operations.update || {}), ...(overrides.operations.update || {}) },
delete: overrides.operations.delete === undefined ? original.operations.delete : overrides.operations.delete,
...(overrides.operations.delete === undefined
? {}
: {
delete: overrides.operations.delete,
}),
},

@@ -25,0 +29,0 @@ };

2

dist/src/acl/PermissionsBuilder.d.ts

@@ -20,5 +20,5 @@ import { Acl, Model } from '@contember/schema';

const everyField: () => FieldSelector;
const predicateReference: (name: string) => Reference;
const predicateReference: (name: Acl.PredicateReference) => Reference;
}
export default PermissionsBuilder;
//# sourceMappingURL=PermissionsBuilder.d.ts.map

@@ -1,2 +0,2 @@

import { Acl, Input, Model } from '@contember/schema';
import { Acl, Model } from '@contember/schema';
export default class PredicateReference {

@@ -6,3 +6,3 @@ readonly name: Acl.PredicateReference;

}
export declare const resolvePredicateReference: (model: Model.Schema, permissions: Acl.Permissions, entity: Model.Entity, predicate: Input.Where<string | Input.Condition<import("@contember/schema/dist/src/schema/value").default.FieldValue<never>> | PredicateReference>) => Input.Where<string | Input.Condition<import("@contember/schema/dist/src/schema/value").default.FieldValue<never>>>;
export declare const resolvePredicateReference: (model: Model.Schema, permissions: Acl.Permissions, entity: Model.Entity, predicate: Acl.PredicateDefinition<PredicateReference>) => Acl.PredicateDefinition;
//# sourceMappingURL=PredicateReference.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolvePredicateReference = void 0;
const schema_utils_1 = require("@contember/schema-utils");

@@ -4,0 +5,0 @@ class PredicateReference {

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InputValidation = exports.PermissionsBuilder = exports.AllowAllPermissionFactory = void 0;
const schema_utils_1 = require("@contember/schema-utils");
exports.AllowAllPermissionFactory = schema_utils_1.AllowAllPermissionFactory;
__export(require("./model"));
Object.defineProperty(exports, "AllowAllPermissionFactory", { enumerable: true, get: function () { return schema_utils_1.AllowAllPermissionFactory; } });
__exportStar(require("./model"), exports);
const PermissionsBuilder_1 = require("./acl/PermissionsBuilder");

@@ -10,0 +18,0 @@ exports.PermissionsBuilder = PermissionsBuilder_1.default;

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -40,3 +47,3 @@ const EntityBuilder_1 = require("./EntityBuilder");

exports.default = SchemaBuilder;
__export(require("./SchemaBuilderError"));
__exportStar(require("./SchemaBuilderError"), exports);
//# sourceMappingURL=SchemaBuilder.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SchemaBuilderError = void 0;
class SchemaBuilderError extends Error {

@@ -4,0 +5,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntityRegistry = void 0;
class EntityRegistry {

@@ -4,0 +5,0 @@ constructor() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnumRegistry = void 0;
class EnumRegistry {

@@ -4,0 +5,0 @@ constructor() {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnumDefinition = exports.OrderDirection = exports.OnDelete = exports.createModel = exports.Entity = exports.Unique = exports.createEnum = exports.oneHasOneInversed = exports.oneHasOne = exports.manyHasManyInversed = exports.manyHasMany = exports.oneHasMany = exports.manyHasOne = exports.enumColumn = exports.dateTimeColumn = exports.dateColumn = exports.doubleColumn = exports.boolColumn = exports.intColumn = exports.stringColumn = exports.column = void 0;
const schema_1 = require("@contember/schema");

@@ -4,0 +5,0 @@ const ColumnDefinition_1 = require("./ColumnDefinition");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SchemaDefinition = exports.FieldBuilder = exports.OneHasOneBuilder = exports.ManyHasOneBuilder = exports.OneHasManyBuilder = exports.ManyHasManyBuilder = exports.ColumnBuilder = exports.SchemaBuilder = void 0;
const SchemaBuilder_1 = require("./builder/SchemaBuilder");

@@ -4,0 +5,0 @@ exports.SchemaBuilder = SchemaBuilder_1.default;

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./tuple"));
__exportStar(require("./tuple"), exports);
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tuple = void 0;
exports.tuple = (...args) => args;
//# sourceMappingURL=tuple.js.map

@@ -13,3 +13,3 @@ import { SchemaDefinition } from '../model';

buildRules: () => Validation.ValidationRule[];
assert: (validator: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">, message: MessageOrString) => RuleBranch & PropertyDecorator;
assert: (validator: Validation.Validator, message: MessageOrString) => RuleBranch & PropertyDecorator;
assertPattern: (pattern: RegExp, message: MessageOrString) => RuleBranch & PropertyDecorator;

@@ -20,20 +20,20 @@ assertMinLength: (minLength: number, message: MessageOrString) => RuleBranch & PropertyDecorator;

export declare const rules: {
and: (...conditions: (Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">)[]) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
or: (...conditions: (Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">)[]) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
conditional: (condition: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">, rule: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
pattern: (pattern: RegExp) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
lengthRange: (min?: number | undefined, max?: number | undefined) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
and: (...conditions: Validation.Validator[]) => Validation.Validator;
or: (...conditions: Validation.Validator[]) => Validation.Validator;
conditional: (condition: Validation.Validator, rule: Validation.Validator) => Validation.Validator;
pattern: (pattern: RegExp) => Validation.Validator;
lengthRange: (min?: number | undefined, max?: number | undefined) => Validation.Validator;
minLength: (min: number) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
maxLength: (max: number) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
equals: (value: any) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
not: (validator: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
['empty']: () => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
equals: (value: any) => Validation.Validator;
not: (validator: Validation.Validator) => Validation.Validator;
empty: () => Validation.Validator;
notEmpty: () => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
['null']: () => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
null: () => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
notNull: () => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
on: (path: ContextPath, validator: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
filter: (filter: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">, validator: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
any: (validator: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
every: (validator: Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">) => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
defined: () => Validation.SpecificValidator<"and"> | Validation.SpecificValidator<"or"> | Validation.SpecificValidator<"conditional"> | Validation.SpecificValidator<"pattern"> | Validation.SpecificValidator<"lengthRange"> | Validation.SpecificValidator<"equals"> | Validation.SpecificValidator<"not"> | Validation.SpecificValidator<"empty"> | Validation.SpecificValidator<"exists"> | Validation.SpecificValidator<"defined"> | Validation.SpecificValidator<"inContext"> | Validation.SpecificValidator<"every"> | Validation.SpecificValidator<"any"> | Validation.SpecificValidator<"filter">;
on: (path: ContextPath, validator: Validation.Validator) => Validation.Validator;
filter: (filter: Validation.Validator, validator: Validation.Validator) => Validation.Validator;
any: (validator: Validation.Validator) => Validation.Validator;
every: (validator: Validation.Validator) => Validation.Validator;
defined: () => Validation.Validator;
};

@@ -40,0 +40,0 @@ export declare function when(...conditions: Validation.Validator[]): RuleBranch;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseDefinition = exports.combine = exports.assertMinLength = exports.assertPattern = exports.requiredWhen = exports.required = exports.optional = exports.assert = exports.when = exports.rules = exports.InContextOperation = exports.fluent = exports.parsePath = void 0;
const utils_1 = require("../utils");

@@ -4,0 +5,0 @@ const model_1 = require("../model");

{
"name": "@contember/schema-definition",
"version": "0.8.0-alpha.2",
"version": "0.8.0-alpha.3",
"license": "Apache-2.0",

@@ -9,10 +9,10 @@ "main": "dist/src/index.js",

"dependencies": {
"@contember/schema": "^0.8.0-alpha.2",
"@contember/schema-utils": "^0.8.0-alpha.2",
"@contember/schema": "^0.8.0-alpha.3",
"@contember/schema-utils": "^0.8.0-alpha.3",
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"typescript": "^3.7.4"
"typescript": "^3.9.5"
},
"gitHead": "dfc666f11f4d24a67b260bf57f62b420657d51c2"
"gitHead": "8c72aa88a27d3120a52e6968fe0e188490005b39"
}

@@ -26,3 +26,7 @@ import { Acl } from '@contember/schema'

update: { ...(original.operations.update || {}), ...(overrides.operations.update || {}) },
delete: overrides.operations.delete === undefined ? original.operations.delete : overrides.operations.delete,
...(overrides.operations.delete === undefined
? {}
: {
delete: overrides.operations.delete,
}),
},

@@ -29,0 +33,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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc