-
Notifications
You must be signed in to change notification settings - Fork 23
/
users.graphql
61 lines (57 loc) · 1.65 KB
/
users.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
type Query {
me: User
getRoles: [Role]
getUsers: [User]
hasLogin(login: String!): Boolean!
getTenants: [ID]
getTenantUsers(tenantId: ID!): [User]
}
type Mutation {
signInAs(id: ID!): LoginResponse!
signIn(login: String!, password: String!): LoginResponse!
reloadModel(tenantId: ID!): Boolean!
createUser(login: String!, name: String!, password: String!, email: String, roles: JSON, props: JSONObject, options: JSON): ID!
updateUser(id: ID!, name: String, password: String, email: String, roles: JSON, props: JSONObject, options: JSON): ID!
removeUser(id: ID!) : Boolean!
createRole(identifier: String!, name: String!, configAccess: JSONObject, relAccess: JSONObject, itemAccess: JSONObject, channelAccess: JSON, otherAccess: JSONObject, options: JSON): ID!
updateRole(id: ID!, name: String, configAccess: JSONObject, relAccess: JSONObject, itemAccess: JSONObject, channelAccess: JSON, otherAccess: JSONObject, options: JSON) : ID!
removeRole(id: ID!) : Boolean!
}
type LoginResponse {
token: String!
user: User!
auditEnabled: Boolean!
locale: String
}
type User {
id: ID!
internalId: Int!
tenantId: ID!
login: String!
name: String!
roles: [ID]!
email: String
props: JSONObject
options: JSON!
external: Boolean!
createdBy: String!
createdAt: UTCDateTime!
updatedBy: String!
updatedAt: UTCDateTime!
}
type Role {
id: ID!
internalId: Int!
identifier: String!
name: String!
configAccess: JSONObject
relAccess: JSONObject
itemAccess: JSONObject
otherAccess: JSONObject
channelAccess: JSON
options: JSON!
createdBy: String!
createdAt: UTCDateTime!
updatedBy: String!
updatedAt: UTCDateTime!
}