@contember/engine-http 1.2.0-alpha.6 → 1.2.0-alpha.9

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-http",
3
- "version": "1.2.0-alpha.6",
3
+ "version": "1.2.0-alpha.9",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/src/index.d.ts",
@@ -9,15 +9,15 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@apollographql/graphql-playground-html": "^1.6.24",
12
- "@contember/database": "^1.2.0-alpha.6",
13
- "@contember/engine-content-api": "^1.2.0-alpha.6",
14
- "@contember/engine-plugins": "^1.2.0-alpha.6",
15
- "@contember/engine-system-api": "^1.2.0-alpha.6",
16
- "@contember/engine-tenant-api": "^1.2.0-alpha.6",
17
- "@contember/graphql-utils": "^1.2.0-alpha.6",
18
- "@contember/schema": "^1.2.0-alpha.6",
19
- "@contember/schema-utils": "^1.2.0-alpha.6",
20
- "@contember/typesafe": "^1.2.0-alpha.6",
12
+ "@contember/database": "^1.2.0-alpha.9",
13
+ "@contember/engine-content-api": "^1.2.0-alpha.9",
14
+ "@contember/engine-plugins": "^1.2.0-alpha.9",
15
+ "@contember/engine-system-api": "^1.2.0-alpha.9",
16
+ "@contember/engine-tenant-api": "^1.2.0-alpha.9",
17
+ "@contember/graphql-utils": "^1.2.0-alpha.9",
18
+ "@contember/schema": "^1.2.0-alpha.9",
19
+ "@contember/schema-utils": "^1.2.0-alpha.9",
20
+ "@contember/typesafe": "^1.2.0-alpha.9",
21
21
  "@graphql-tools/schema": "^8.3.5",
22
22
  "@types/lru-cache": "^7.10.10",
23
23
  "accepts": "^1.3.7",
@@ -33,7 +33,7 @@
33
33
  "@types/koa-bodyparser": "^4.2.2",
34
34
  "@types/koa__cors": "^3.0.2",
35
35
  "@types/lru-cache": "^5.1.0",
36
- "@types/node": "^16",
36
+ "@types/node": "^18",
37
37
  "@types/uuid": "^8.3.0",
38
38
  "graphql": "^16.5.0"
39
39
  },
@@ -9,11 +9,10 @@ export class ProjectMembershipFetcher {
9
9
  }
10
10
 
11
11
  public async fetchMemberships(projectSlug: string, identity: { id: string; roles?: readonly string[] }): Promise<readonly Acl.Membership[]> {
12
- return await this.projectMemberManager.getProjectMemberships(
12
+ return await this.projectMemberManager.getEffectiveProjectMemberships(
13
13
  this.databaseContext,
14
14
  { slug: projectSlug },
15
15
  identity,
16
- undefined,
17
16
  )
18
17
  }
19
18
  }
@@ -45,14 +45,13 @@ export class SystemApiMiddlewareFactory {
45
45
 
46
46
  const tenantContainer = groupContainer.tenantContainer
47
47
  const memberships = await timer('MembershipFetch', () =>
48
- tenantContainer.projectMemberManager.getProjectMemberships(
48
+ tenantContainer.projectMemberManager.getEffectiveProjectMemberships(
49
49
  tenantContainer.databaseContext,
50
50
  { slug: project.slug },
51
51
  {
52
52
  id: authResult.identityId,
53
53
  roles: authResult.roles,
54
54
  },
55
- undefined,
56
55
  ),
57
56
  )
58
57
  if (memberships.length === 0) {
@@ -71,7 +71,7 @@ export class ExportExecutor {
71
71
  if (column.type === Model.ColumnType.Int && column.sequence) {
72
72
  const seqResult = await db.query<{ nextval: number }>(
73
73
  'SELECT nextval(pg_get_serial_sequence(?, ?))',
74
- [table.name, column.name],
74
+ [`${db.schema}.${table.name}`, column.name],
75
75
  )
76
76
 
77
77
  const seqValue = seqResult.rows[0].nextval