@contember/engine-system-api 1.0.0-alpha.1 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contember/engine-system-api",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/src/index.d.ts",
@@ -9,23 +9,23 @@
9
9
  "test": "uvu dist/tests/cases/ \\.js$ && uvu migrations \\.test\\.js"
10
10
  },
11
11
  "dependencies": {
12
- "@contember/authorization": "^1.0.0-alpha.1",
13
- "@contember/database": "^1.0.0-alpha.1",
14
- "@contember/database-migrations": "^1.0.0-alpha.1",
15
- "@contember/dic": "^1.0.0-alpha.1",
16
- "@contember/engine-common": "^1.0.0-alpha.1",
17
- "@contember/graphql-utils": "^1.0.0-alpha.1",
18
- "@contember/queryable": "^1.0.0-alpha.1",
19
- "@contember/schema": "^1.0.0-alpha.1",
20
- "@contember/schema-migrations": "^1.0.0-alpha.1",
21
- "@contember/schema-utils": "^1.0.0-alpha.1",
12
+ "@contember/authorization": "^1.0.0-alpha.2",
13
+ "@contember/database": "^1.0.0-alpha.2",
14
+ "@contember/database-migrations": "^1.0.0-alpha.2",
15
+ "@contember/dic": "^1.0.0-alpha.2",
16
+ "@contember/engine-common": "^1.0.0-alpha.2",
17
+ "@contember/graphql-utils": "^1.0.0-alpha.2",
18
+ "@contember/queryable": "^1.0.0-alpha.2",
19
+ "@contember/schema": "^1.0.0-alpha.2",
20
+ "@contember/schema-migrations": "^1.0.0-alpha.2",
21
+ "@contember/schema-utils": "^1.0.0-alpha.2",
22
22
  "@graphql-tools/utils": "^7.10.0",
23
23
  "apollo-server-errors": "^2.4.0",
24
24
  "graphql-tag": "^2.12.5"
25
25
  },
26
26
  "devDependencies": {
27
- "@contember/engine-api-tester": "^1.0.0-alpha.1",
28
- "@contember/schema-definition": "^1.0.0-alpha.1",
27
+ "@contember/engine-api-tester": "^1.0.0-alpha.2",
28
+ "@contember/schema-definition": "^1.0.0-alpha.2",
29
29
  "@graphql-codegen/cli": "^1.15.2",
30
30
  "@graphql-codegen/typescript": "^1.15.2",
31
31
  "@graphql-codegen/typescript-operations": "^1.15.2",
@@ -1,5 +1,5 @@
1
1
  import { Authorizator } from '@contember/authorization'
2
- import { Acl, Schema } from '@contember/schema'
2
+ import { Schema } from '@contember/schema'
3
3
  import { ForbiddenError } from 'apollo-server-errors'
4
4
  import { DatabaseContext, SchemaVersionBuilder } from '../model'
5
5
  import { ProjectConfig } from '../types'
@@ -20,7 +20,6 @@ export class ResolverContextFactory {
20
20
  tenantDb: Client,
21
21
  project: ProjectConfig,
22
22
  identity: Identity,
23
- variables: Acl.VariablesMap,
24
23
  ): Promise<ResolverContext> {
25
24
  const schema = await this.schemaVersionBuilder.buildSchema(systemDbContext)
26
25
  const stagePermissionsFactory = new StagePermissionsFactory(schema)
@@ -28,7 +27,6 @@ export class ResolverContextFactory {
28
27
  return {
29
28
  project,
30
29
  identity,
31
- variables,
32
30
  schema,
33
31
  authorizator: this.authorizator,
34
32
  db: systemDbContext,
@@ -58,7 +56,6 @@ export interface ResolverContext {
58
56
  readonly schema: Schema
59
57
  readonly identity: Identity
60
58
  readonly db: DatabaseContext
61
- readonly variables: Acl.VariablesMap
62
59
  readonly authorizator: Authorizator<Identity>
63
60
  readonly requireAccess: (action: Authorizator.Action, stage: string, message?: string) => Promise<void>
64
61
  readonly getLoader: <Args, Item>(loaderFactory: LoaderFactory<Args, Item>) => ItemLoader<Args, Item>