@dssp/supervision 0.0.34 → 0.0.35

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": "@dssp/supervision",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -27,9 +27,9 @@
27
27
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
28
28
  },
29
29
  "dependencies": {
30
- "@dssp/building-complex": "^0.0.34",
31
- "@dssp/drawing": "^0.0.34",
32
- "@dssp/project": "^0.0.34",
30
+ "@dssp/building-complex": "^0.0.35",
31
+ "@dssp/drawing": "^0.0.35",
32
+ "@dssp/project": "^0.0.35",
33
33
  "@operato/event-view": "^8.0.0-alpha",
34
34
  "@operato/graphql": "^8.0.0-alpha",
35
35
  "@operato/image-marker": "^8.0.0-alpha",
@@ -39,5 +39,5 @@
39
39
  "@things-factory/auth-base": "^8.0.0-alpha",
40
40
  "@things-factory/shell": "^8.0.0-alpha"
41
41
  },
42
- "gitHead": "2637357c7281ae2080ba8223b659780a8f808757"
42
+ "gitHead": "075cee051e01751c29cbf1849968ba3f892c1e85"
43
43
  }
@@ -1,6 +1,6 @@
1
- import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx, Directive } from 'type-graphql'
1
+ import { Resolver, Query, FieldResolver, Root, Args, Arg, Ctx } from 'type-graphql'
2
2
  import { Attachment } from '@things-factory/attachment-base'
3
- import { Domain, getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'
3
+ import { getQueryBuilderFromListParams, getRepository, ListParam } from '@things-factory/shell'
4
4
  import { User } from '@things-factory/auth-base'
5
5
  import { ChecklistItem } from './checklist-item'
6
6
  import { ChecklistItemList } from './checklist-item-type'
@@ -10,8 +10,6 @@ import { ChecklistItemComment } from '../checklist-item-comment/checklist-item-c
10
10
  export class ChecklistItemQuery {
11
11
  @Query(returns => ChecklistItem!, { nullable: true, description: 'To fetch a ChecklistItem' })
12
12
  async checklistItem(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<ChecklistItem> {
13
- const { domain } = context.state
14
-
15
13
  return await getRepository(ChecklistItem).findOne({
16
14
  where: { id }
17
15
  })
@@ -19,8 +17,6 @@ export class ChecklistItemQuery {
19
17
 
20
18
  @Query(returns => ChecklistItemList, { description: 'To fetch multiple ChecklistItems' })
21
19
  async checklistItems(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<ChecklistItemList> {
22
- const { domain } = context.state
23
-
24
20
  const queryBuilder = getQueryBuilderFromListParams({
25
21
  params,
26
22
  repository: await getRepository(ChecklistItem),