@things-factory/operato-ecs 6.2.50 → 6.2.51

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.
@@ -47,7 +47,7 @@ export default async function bootstrap() {
47
47
  registerDefaultGroups()
48
48
 
49
49
  /* add addon-menu management page morenda */
50
- if (await hasPrivilege({ name: 'mutation', category: 'menu' })) {
50
+ if (await hasPrivilege({ privilege: 'mutation', category: 'menu' })) {
51
51
  store.dispatch({
52
52
  type: ADD_MORENDA,
53
53
  morenda: {
@@ -75,7 +75,7 @@ export default async function bootstrap() {
75
75
  /* set auth management menus into more-panel */
76
76
  setAuthManagementMenus()
77
77
 
78
- if (await hasPrivilege({ name: 'mutation', category: 'user' })) {
78
+ if (await hasPrivilege({ privilege: 'mutation', category: 'user' })) {
79
79
  store.dispatch({
80
80
  type: ADD_MORENDA,
81
81
  morenda: {
@@ -88,7 +88,7 @@ export default async function bootstrap() {
88
88
  })
89
89
  }
90
90
 
91
- if (await hasPrivilege({ name: 'mutation', category: 'board' })) {
91
+ if (await hasPrivilege({ privilege: 'mutation', category: 'board' })) {
92
92
  store.dispatch({
93
93
  type: ADD_MORENDA,
94
94
  morenda: {
@@ -134,7 +134,7 @@ export default async function bootstrap() {
134
134
  })
135
135
  }
136
136
 
137
- if (await hasPrivilege({ name: 'mutation', category: 'scenario' })) {
137
+ if (await hasPrivilege({ privilege: 'mutation', category: 'scenario' })) {
138
138
  store.dispatch({
139
139
  type: ADD_MORENDA,
140
140
  morenda: {
@@ -169,7 +169,7 @@ export default async function bootstrap() {
169
169
  })
170
170
  }
171
171
 
172
- if (await hasPrivilege({ name: 'mutation', category: 'state-register' })) {
172
+ if (await hasPrivilege({ privilege: 'mutation', category: 'state-register' })) {
173
173
  store.dispatch({
174
174
  type: ADD_MORENDA,
175
175
  morenda: {
@@ -257,7 +257,7 @@ export default async function bootstrap() {
257
257
  }
258
258
  })
259
259
 
260
- if (await hasPrivilege({ name: 'mutation', category: 'security' })) {
260
+ if (await hasPrivilege({ privilege: 'mutation', category: 'security' })) {
261
261
  store.dispatch({
262
262
  type: ADD_SETTING,
263
263
  setting: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-ecs",
3
- "version": "6.2.50",
3
+ "version": "6.2.51",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -54,33 +54,33 @@
54
54
  "@operato/scene-switch": "^1.0.0",
55
55
  "@operato/scene-table": "^1.0.0",
56
56
  "@operato/scene-timer": "^1.0.0",
57
- "@things-factory/api": "^6.2.50",
58
- "@things-factory/apptool-ui": "^6.2.50",
59
- "@things-factory/auth-ui": "^6.2.50",
60
- "@things-factory/board-service": "^6.2.50",
61
- "@things-factory/board-ui": "^6.2.50",
62
- "@things-factory/context-ui": "^6.2.50",
63
- "@things-factory/dashboard": "^6.2.50",
64
- "@things-factory/export-ui": "^6.2.50",
65
- "@things-factory/help": "^6.2.50",
66
- "@things-factory/i18n-base": "^6.2.50",
67
- "@things-factory/integration-melsec": "^6.2.50",
68
- "@things-factory/integration-modbus": "^6.2.50",
69
- "@things-factory/integration-opc": "^6.2.50",
70
- "@things-factory/integration-ui": "^6.2.50",
71
- "@things-factory/lite-menu": "^6.2.50",
72
- "@things-factory/more-ui": "^6.2.50",
73
- "@things-factory/notification": "^6.2.50",
74
- "@things-factory/oauth2-client": "^6.2.50",
75
- "@things-factory/print-ui": "^6.2.50",
76
- "@things-factory/resource-ui": "^6.2.50",
77
- "@things-factory/setting-base": "^6.2.50",
78
- "@things-factory/setting-ui": "^6.2.50",
79
- "@things-factory/shell": "^6.2.50",
80
- "@things-factory/system": "^6.2.50"
57
+ "@things-factory/api": "^6.2.51",
58
+ "@things-factory/apptool-ui": "^6.2.51",
59
+ "@things-factory/auth-ui": "^6.2.51",
60
+ "@things-factory/board-service": "^6.2.51",
61
+ "@things-factory/board-ui": "^6.2.51",
62
+ "@things-factory/context-ui": "^6.2.51",
63
+ "@things-factory/dashboard": "^6.2.51",
64
+ "@things-factory/export-ui": "^6.2.51",
65
+ "@things-factory/help": "^6.2.51",
66
+ "@things-factory/i18n-base": "^6.2.51",
67
+ "@things-factory/integration-melsec": "^6.2.51",
68
+ "@things-factory/integration-modbus": "^6.2.51",
69
+ "@things-factory/integration-opc": "^6.2.51",
70
+ "@things-factory/integration-ui": "^6.2.51",
71
+ "@things-factory/lite-menu": "^6.2.51",
72
+ "@things-factory/more-ui": "^6.2.51",
73
+ "@things-factory/notification": "^6.2.51",
74
+ "@things-factory/oauth2-client": "^6.2.51",
75
+ "@things-factory/print-ui": "^6.2.51",
76
+ "@things-factory/resource-ui": "^6.2.51",
77
+ "@things-factory/setting-base": "^6.2.51",
78
+ "@things-factory/setting-ui": "^6.2.51",
79
+ "@things-factory/shell": "^6.2.51",
80
+ "@things-factory/system": "^6.2.51"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@things-factory/builder": "^6.2.33"
84
84
  },
85
- "gitHead": "4dc51db04b745ac434d2bb874038ac4c3b47989b"
85
+ "gitHead": "365e8ae6475eede1a4fd51460c24569d13de14b6"
86
86
  }
package/schema.graphql CHANGED
@@ -3167,6 +3167,7 @@ type Privilege {
3167
3167
  description: String
3168
3168
  id: ID!
3169
3169
  name: String!
3170
+ privilege: String!
3170
3171
  roles: [Role!]
3171
3172
  updatedAt: DateTimeISO
3172
3173
  updater: User
@@ -3176,7 +3177,6 @@ input PrivilegeInput {
3176
3177
  category: String
3177
3178
  owner: Boolean
3178
3179
  privilege: String
3179
- protected: Boolean
3180
3180
  super: Boolean
3181
3181
  }
3182
3182
 
@@ -3189,7 +3189,6 @@ type PrivilegeObject {
3189
3189
  category: String
3190
3190
  owner: Boolean
3191
3191
  privilege: String
3192
- protected: Boolean
3193
3192
  super: Boolean
3194
3193
  }
3195
3194
 
@@ -3373,7 +3372,7 @@ type Query {
3373
3372
  domains(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
3374
3373
 
3375
3374
  """To fetch domains with given privilege for user"""
3376
- domainsWithPrivilege(category: String!, name: String!): [Domain!]!
3375
+ domainsWithPrivilege(category: String!, privilege: String!): [Domain!]!
3377
3376
 
3378
3377
  """To fetch a Employee"""
3379
3378
  employee(id: String!): Employee
@@ -3423,7 +3422,7 @@ type Query {
3423
3422
  groups(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): GroupList!
3424
3423
 
3425
3424
  """To query whether I have the given permission"""
3426
- hasPrivilege(category: String!, name: String!): Boolean!
3425
+ hasPrivilege(category: String!, privilege: String!): Boolean!
3427
3426
  i18nCompletion(input: i18nCompletionInput!): i18nCompletionOutput!
3428
3427
  imageCompletion(input: ImageCompletionInput!): ImageCompletionOutput!
3429
3428
 
@@ -3548,9 +3547,6 @@ type Query {
3548
3547
  """To fetch multiple PrinterDevices"""
3549
3548
  printerDevices(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PrinterDeviceList!
3550
3549
 
3551
- """To fetch privilege"""
3552
- privilege(category: String!, name: String!): Privilege!
3553
-
3554
3550
  """To fetch multiple privileges"""
3555
3551
  privileges(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PrivilegeList!
3556
3552