@contember/schema-definition
Advanced tools
Comparing version 1.3.0-alpha.2 to 1.3.0-alpha.4
@@ -7,2 +7,3 @@ "use strict"; | ||
const AclDefinition = require("./acl/definition"); | ||
const ActionsDefinition = require("./actions/definition"); | ||
const schema_utils_1 = require("@contember/schema-utils"); | ||
@@ -13,3 +14,4 @@ const createSchema = (definitions, modifyCallback) => { | ||
const acl = AclDefinition.createAcl(definitions, model); | ||
const schema = { ...schema_utils_1.emptySchema, model, validation, acl }; | ||
const actions = ActionsDefinition.createActions(definitions); | ||
const schema = { ...schema_utils_1.emptySchema, model, validation, acl, actions }; | ||
return modifyCallback ? modifyCallback(schema) : schema; | ||
@@ -16,0 +18,0 @@ }; |
@@ -5,4 +5,5 @@ export { AllowAllPermissionFactory } from '@contember/schema-utils'; | ||
export * as AclDefinition from './acl/definition'; | ||
export * as ActionsDefinition from './actions/definition'; | ||
export * from './createSchema'; | ||
export * from './model'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AclDefinition = exports.InputValidation = exports.PermissionsBuilder = exports.AllowAllPermissionFactory = void 0; | ||
exports.ActionsDefinition = exports.AclDefinition = exports.InputValidation = exports.PermissionsBuilder = exports.AllowAllPermissionFactory = void 0; | ||
var schema_utils_1 = require("@contember/schema-utils"); | ||
@@ -25,4 +25,5 @@ Object.defineProperty(exports, "AllowAllPermissionFactory", { enumerable: true, get: function () { return schema_utils_1.AllowAllPermissionFactory; } }); | ||
exports.AclDefinition = require("./acl/definition"); | ||
exports.ActionsDefinition = require("./actions/definition"); | ||
__exportStar(require("./createSchema"), exports); | ||
__exportStar(require("./model"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@contember/schema-definition", | ||
"version": "1.3.0-alpha.2", | ||
"version": "1.3.0-alpha.4", | ||
"license": "Apache-2.0", | ||
@@ -11,7 +11,12 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@contember/schema": "^1.3.0-alpha.2", | ||
"@contember/schema-utils": "^1.3.0-alpha.2", | ||
"@contember/schema": "^1.3.0-alpha.4", | ||
"@contember/schema-utils": "^1.3.0-alpha.4", | ||
"reflect-metadata": "^0.1.13" | ||
}, | ||
"devDependencies": {} | ||
"devDependencies": { | ||
"graphql": "^16.5.0" | ||
}, | ||
"peerDependencies": { | ||
"graphql": ">= 14.6.0" | ||
} | ||
} |
import { SchemaDefinition } from './model' | ||
import * as InputValidation from './validation' | ||
import * as AclDefinition from './acl/definition' | ||
import * as ActionsDefinition from './actions/definition' | ||
import { Schema } from '@contember/schema' | ||
@@ -11,4 +12,5 @@ import { emptySchema } from '@contember/schema-utils' | ||
const acl = AclDefinition.createAcl(definitions, model) | ||
const schema = { ...emptySchema, model, validation, acl } | ||
const actions = ActionsDefinition.createActions(definitions) | ||
const schema = { ...emptySchema, model, validation, acl, actions } | ||
return modifyCallback ? modifyCallback(schema) : schema | ||
} |
@@ -5,3 +5,4 @@ export { AllowAllPermissionFactory } from '@contember/schema-utils' | ||
export * as AclDefinition from './acl/definition' | ||
export * as ActionsDefinition from './actions/definition' | ||
export * from './createSchema' | ||
export * from './model' |
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
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
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
594142
378
7821
4
1
+ Addedgraphql@16.10.0(transitive)