feat: admin groups - list + create, gql refactoring
This commit is contained in:
18
client/graph/admin-groups-mutation-create.gql
Normal file
18
client/graph/admin-groups-mutation-create.gql
Normal file
@@ -0,0 +1,18 @@
|
||||
mutation ($name: String!) {
|
||||
groups {
|
||||
create(name: $name) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
group {
|
||||
id
|
||||
name
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
client/graph/admin-groups-query-list.gql
Normal file
11
client/graph/admin-groups-query-list.gql
Normal file
@@ -0,0 +1,11 @@
|
||||
query {
|
||||
groups {
|
||||
list {
|
||||
id
|
||||
name
|
||||
userCount
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
21
client/graph/admin-system-query-info.gql
Normal file
21
client/graph/admin-system-query-info.gql
Normal file
@@ -0,0 +1,21 @@
|
||||
query {
|
||||
system {
|
||||
info {
|
||||
currentVersion
|
||||
latestVersion
|
||||
latestVersionReleaseDate
|
||||
operatingSystem
|
||||
hostname
|
||||
cpuCores
|
||||
ramTotal
|
||||
workingDirectory
|
||||
nodeVersion
|
||||
redisVersion
|
||||
redisUsedRAM
|
||||
redisTotalRAM
|
||||
redisHost
|
||||
postgreVersion
|
||||
postgreHost
|
||||
}
|
||||
}
|
||||
}
|
14
client/graph/login-mutation-login.gql
Normal file
14
client/graph/login-mutation-login.gql
Normal file
@@ -0,0 +1,14 @@
|
||||
mutation($username: String!, $password: String!, $provider: String!) {
|
||||
authentication {
|
||||
login(username: $username, password: $password, provider: $provider) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
tfaRequired
|
||||
tfaLoginToken
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/login-mutation-tfa.gql
Normal file
12
client/graph/login-mutation-tfa.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation($loginToken: String!, $securityCode: String!) {
|
||||
authentication {
|
||||
loginTFA(loginToken: $loginToken, securityCode: $securityCode) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
client/graph/login-query-strategies.gql
Normal file
13
client/graph/login-query-strategies.gql
Normal file
@@ -0,0 +1,13 @@
|
||||
query {
|
||||
authentication {
|
||||
providers(
|
||||
filter: "isEnabled eq true",
|
||||
orderBy: "title ASC"
|
||||
) {
|
||||
key
|
||||
title
|
||||
useForm
|
||||
icon
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user