@things-factory/board-service 6.0.69 → 6.0.71
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": "@things-factory/board-service",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.71",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@things-factory/auth-base": "^6.0.
|
|
27
|
-
"@things-factory/env": "^6.0.
|
|
28
|
-
"@things-factory/font-base": "^6.0.
|
|
26
|
+
"@things-factory/auth-base": "^6.0.71",
|
|
27
|
+
"@things-factory/env": "^6.0.71",
|
|
28
|
+
"@things-factory/font-base": "^6.0.71",
|
|
29
29
|
"content-disposition": "^0.5.3",
|
|
30
30
|
"generic-pool": "^3.8.2"
|
|
31
31
|
},
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@thiagoelg/node-printer": "0.6.2",
|
|
34
34
|
"puppeteer": "^19.11.1"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "ab2f27c4e2c61002aa0e47925d2dcf523725eaa7"
|
|
37
37
|
}
|
|
@@ -11,7 +11,7 @@ import { BoardList } from './board-type'
|
|
|
11
11
|
@Resolver(Board)
|
|
12
12
|
export class BoardQuery {
|
|
13
13
|
@Query(returns => Board, { description: 'To fetch a Board' })
|
|
14
|
-
@Directive('@privilege(category: "board", privilege: "query")')
|
|
14
|
+
@Directive('@privilege(category: "board", privilege: "query", domainOwnerGranted: true)')
|
|
15
15
|
async board(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<Board> {
|
|
16
16
|
const { domain } = context.state
|
|
17
17
|
|
|
@@ -37,8 +37,19 @@ export class BoardQuery {
|
|
|
37
37
|
return { items, total }
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
@Query(returns => Board!, { nullable: true, description: 'To fetch a Global Board Model' })
|
|
41
|
+
async globalBoardByName(@Arg('name') name: string, @Ctx() context: ResolverContext): Promise<Board> {
|
|
42
|
+
const system = await getRepository(Domain).findOneBy({
|
|
43
|
+
subdomain: 'system'
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
return await getRepository(Board).findOne({
|
|
47
|
+
where: { domain: { id: system.id }, name }
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
@Query(returns => BoardList, { description: 'To fetch multiple Boards' })
|
|
41
|
-
@Directive('@privilege(category: "board", privilege: "query")')
|
|
52
|
+
@Directive('@privilege(category: "board", privilege: "query", domainOwnerGranted: true)')
|
|
42
53
|
async boards(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<BoardList> {
|
|
43
54
|
const { domain } = context.state
|
|
44
55
|
|