@things-factory/worklist 6.0.52 → 6.0.53

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/worklist",
3
- "version": "6.0.52",
3
+ "version": "6.0.53",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -28,14 +28,14 @@
28
28
  "@operato/event-view": "^1.0.0",
29
29
  "@operato/graphql": "^1.0.0",
30
30
  "@operato/grist-editor": "^1.0.0",
31
- "@things-factory/attachment-base": "^6.0.49",
32
- "@things-factory/auth-base": "^6.0.49",
33
- "@things-factory/board-service": "^6.0.52",
31
+ "@things-factory/attachment-base": "^6.0.53",
32
+ "@things-factory/auth-base": "^6.0.53",
33
+ "@things-factory/board-service": "^6.0.53",
34
34
  "@things-factory/context-ui": "^6.0.49",
35
- "@things-factory/organization": "^6.0.50",
36
- "@things-factory/scheduler-client": "^6.0.49",
35
+ "@things-factory/organization": "^6.0.53",
36
+ "@things-factory/scheduler-client": "^6.0.53",
37
37
  "@things-factory/shell": "^6.0.49",
38
38
  "moment-timezone": "^0.5.40"
39
39
  },
40
- "gitHead": "be223b9a3f3a093cba2f97110e109597c9f9b21f"
40
+ "gitHead": "1b60f52b7e043286423881b8fb41f1fa08f9ba6d"
41
41
  }
@@ -10,6 +10,7 @@ import { ActivityPatch, NewActivity } from './activity-type'
10
10
  @Resolver(Activity)
11
11
  export class ActivityMutation {
12
12
  @Directive('@transaction')
13
+ @Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
13
14
  @Mutation(returns => Activity, { description: 'To create new Activity' })
14
15
  async createActivity(@Arg('activity') activity: NewActivity, @Ctx() context: ResolverContext): Promise<Activity> {
15
16
  const { domain, user, tx } = context.state
@@ -39,6 +40,7 @@ export class ActivityMutation {
39
40
  }
40
41
 
41
42
  @Directive('@transaction')
43
+ @Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
42
44
  @Mutation(returns => Activity, { description: 'To modify Activity information' })
43
45
  async updateActivity(
44
46
  @Arg('id') id: string,
@@ -79,6 +81,7 @@ export class ActivityMutation {
79
81
  }
80
82
 
81
83
  @Directive('@transaction')
84
+ @Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
82
85
  @Mutation(returns => [Activity], { description: "To modify multiple Activities' information" })
83
86
  async updateMultipleActivity(
84
87
  @Arg('patches', type => [ActivityPatch]) patches: ActivityPatch[],
@@ -158,6 +161,7 @@ export class ActivityMutation {
158
161
  }
159
162
 
160
163
  @Directive('@transaction')
164
+ @Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
161
165
  @Mutation(returns => Boolean, { description: 'To delete Activity' })
162
166
  async deleteActivity(@Arg('id') id: string, @Ctx() context: ResolverContext): Promise<boolean> {
163
167
  const { domain, tx } = context.state
@@ -187,6 +191,7 @@ export class ActivityMutation {
187
191
  }
188
192
 
189
193
  @Directive('@transaction')
194
+ @Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
190
195
  @Mutation(returns => Boolean, { description: 'To import multiple Activities' })
191
196
  async importActivities(
192
197
  @Arg('activities', type => [ActivityPatch]) activities: ActivityPatch[],
@@ -204,6 +209,7 @@ export class ActivityMutation {
204
209
  }
205
210
 
206
211
  @Directive('@transaction')
212
+ @Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
207
213
  @Mutation(returns => Activity, {
208
214
  description: 'To start posting activity based on the schedule of the given activity'
209
215
  })
@@ -269,6 +275,7 @@ export class ActivityMutation {
269
275
  }
270
276
 
271
277
  @Directive('@transaction')
278
+ @Directive('@privilege(category: "activity", privilege: "mutation", domainOwnerGranted: true)')
272
279
  @Mutation(returns => Activity, {
273
280
  nullable: true,
274
281
  description: 'To stop posting activity based on the schedule of the given activity'