@contember/engine-content-api 2.0.0-alpha.12 → 2.0.0-alpha.13

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-content-api",
3
- "version": "2.0.0-alpha.12",
3
+ "version": "2.0.0-alpha.13",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/production/index.js",
6
6
  "typings": "./dist/types/index.d.ts",
@@ -26,18 +26,18 @@
26
26
  "generate": "gql-gen --config graphql.codegen.yml"
27
27
  },
28
28
  "dependencies": {
29
- "@contember/database": "2.0.0-alpha.12",
30
- "@contember/dic": "2.0.0-alpha.12",
31
- "@contember/graphql-utils": "2.0.0-alpha.12",
32
- "@contember/logger": "2.0.0-alpha.12",
33
- "@contember/schema": "2.0.0-alpha.12",
34
- "@contember/schema-definition": "2.0.0-alpha.12",
35
- "@contember/schema-utils": "2.0.0-alpha.12",
29
+ "@contember/database": "2.0.0-alpha.13",
30
+ "@contember/dic": "2.0.0-alpha.13",
31
+ "@contember/graphql-utils": "2.0.0-alpha.13",
32
+ "@contember/logger": "2.0.0-alpha.13",
33
+ "@contember/schema": "2.0.0-alpha.13",
34
+ "@contember/schema-definition": "2.0.0-alpha.13",
35
+ "@contember/schema-utils": "2.0.0-alpha.13",
36
36
  "fast-deep-equal": "^3.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@contember/database-tester": "2.0.0-alpha.12",
40
- "@contember/schema-definition": "2.0.0-alpha.12",
39
+ "@contember/database-tester": "2.0.0-alpha.13",
40
+ "@contember/schema-definition": "2.0.0-alpha.13",
41
41
  "@graphql-codegen/cli": "^5.0.0",
42
42
  "@graphql-codegen/typescript": "^4.0.1",
43
43
  "@graphql-codegen/typescript-operations": "^4.0.1",
@@ -43,7 +43,8 @@ import {
43
43
  } from './input-validation'
44
44
 
45
45
  export type ExecutionContainerArgs = {
46
- schema: Schema & { id: number }
46
+ schema: Schema
47
+ schemaMeta: { id?: number }
47
48
  schemaDatabaseMetadata: DatabaseMetadata
48
49
  db: Client
49
50
  identityId: string
@@ -76,7 +77,7 @@ export class ExecutionContainerFactory {
76
77
  return this.hooks.reduce((acc, cb) => cb(acc), builder)
77
78
  }
78
79
 
79
- createBuilderInternal({ permissions, identityVariables, identityId, db, schema, systemSchema, stage, project, schemaDatabaseMetadata }: ExecutionContainerArgs) {
80
+ createBuilderInternal({ permissions, identityVariables, identityId, db, schema, schemaMeta, systemSchema, stage, project, schemaDatabaseMetadata }: ExecutionContainerArgs) {
80
81
  return new Builder({})
81
82
  .addService('systemSchema', () =>
82
83
  systemSchema)
@@ -88,6 +89,8 @@ export class ExecutionContainerFactory {
88
89
  stage)
89
90
  .addService('schema', () =>
90
91
  schema)
92
+ .addService('schemaMeta', () =>
93
+ schemaMeta)
91
94
  .addService('schemaDatabaseMetadata', () =>
92
95
  schemaDatabaseMetadata)
93
96
  .addService('providers', () =>
package/tests/src/test.ts CHANGED
@@ -102,7 +102,10 @@ export const execute = async (test: Test) => {
102
102
  executionContainer: executionContainerFactory
103
103
  .create({
104
104
  permissions,
105
- schema: { ...schema, id: 1 },
105
+ schema,
106
+ schemaMeta: {
107
+ id: 1,
108
+ },
106
109
  db,
107
110
  identityVariables: test.variables || {},
108
111
  identityId: '00000000-0000-0000-0000-000000000000',