feat: auth self-registration config + gql grouping
This commit is contained in:
12
client/graph/admin/auth/auth-mutation-save-strategies.gql
Normal file
12
client/graph/admin/auth/auth-mutation-save-strategies.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation($locale: String!, $autoUpdate: Boolean!, $namespacing: Boolean!, $namespaces: [String]!) {
|
||||
localization {
|
||||
updateLocale(locale: $locale, autoUpdate: $autoUpdate, namespacing: $namespacing, namespaces: $namespaces) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
client/graph/admin/auth/auth-query-strategies.gql
Normal file
18
client/graph/admin/auth/auth-query-strategies.gql
Normal file
@@ -0,0 +1,18 @@
|
||||
query {
|
||||
authentication {
|
||||
strategies(orderBy: "title ASC") {
|
||||
isEnabled
|
||||
key
|
||||
props
|
||||
title
|
||||
useForm
|
||||
config {
|
||||
key
|
||||
value
|
||||
}
|
||||
selfRegistration
|
||||
domainWhitelist
|
||||
autoEnrollGroups
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin/groups/groups-mutation-assign.gql
Normal file
12
client/graph/admin/groups/groups-mutation-assign.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation ($groupId: Int!, $userId: Int!) {
|
||||
groups {
|
||||
assignUser(groupId: $groupId, userId: $userId) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
client/graph/admin/groups/groups-mutation-create.gql
Normal file
18
client/graph/admin/groups/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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin/groups/groups-mutation-delete.gql
Normal file
12
client/graph/admin/groups/groups-mutation-delete.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation ($id: Int!) {
|
||||
groups {
|
||||
delete(id: $id) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin/groups/groups-mutation-unassign.gql
Normal file
12
client/graph/admin/groups/groups-mutation-unassign.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation ($groupId: Int!, $userId: Int!) {
|
||||
groups {
|
||||
unassignUser(groupId: $groupId, userId: $userId) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin/groups/groups-mutation-update.gql
Normal file
12
client/graph/admin/groups/groups-mutation-update.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation ($id: Int!, $name: String!) {
|
||||
groups {
|
||||
update(id: $id, name: $name) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
client/graph/admin/groups/groups-query-list.gql
Normal file
11
client/graph/admin/groups/groups-query-list.gql
Normal file
@@ -0,0 +1,11 @@
|
||||
query {
|
||||
groups {
|
||||
list {
|
||||
id
|
||||
name
|
||||
userCount
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
22
client/graph/admin/groups/groups-query-single.gql
Normal file
22
client/graph/admin/groups/groups-query-single.gql
Normal file
@@ -0,0 +1,22 @@
|
||||
query ($id: Int!) {
|
||||
groups {
|
||||
single(id: $id) {
|
||||
id
|
||||
name
|
||||
rights {
|
||||
id
|
||||
path
|
||||
role
|
||||
exact
|
||||
allow
|
||||
}
|
||||
users {
|
||||
id
|
||||
name
|
||||
email
|
||||
}
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin/locale/locale-mutation-download.gql
Normal file
12
client/graph/admin/locale/locale-mutation-download.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation($locale: String!) {
|
||||
localization {
|
||||
downloadLocale(locale: $locale) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin/locale/locale-mutation-save.gql
Normal file
12
client/graph/admin/locale/locale-mutation-save.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation($locale: String!, $autoUpdate: Boolean!, $namespacing: Boolean!, $namespaces: [String]!) {
|
||||
localization {
|
||||
updateLocale(locale: $locale, autoUpdate: $autoUpdate, namespacing: $namespacing, namespaces: $namespaces) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
20
client/graph/admin/locale/locale-query-list.gql
Normal file
20
client/graph/admin/locale/locale-query-list.gql
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
localization {
|
||||
locales {
|
||||
code
|
||||
createdAt
|
||||
isInstalled
|
||||
installDate
|
||||
isRTL
|
||||
name
|
||||
nativeName
|
||||
updatedAt
|
||||
}
|
||||
config {
|
||||
locale
|
||||
autoUpdate
|
||||
namespacing
|
||||
namespaces
|
||||
}
|
||||
}
|
||||
}
|
23
client/graph/admin/system/system-query-info.gql
Normal file
23
client/graph/admin/system/system-query-info.gql
Normal file
@@ -0,0 +1,23 @@
|
||||
query {
|
||||
system {
|
||||
info {
|
||||
configFile
|
||||
currentVersion
|
||||
dbType
|
||||
dbVersion
|
||||
dbHost
|
||||
latestVersion
|
||||
latestVersionReleaseDate
|
||||
operatingSystem
|
||||
hostname
|
||||
cpuCores
|
||||
ramTotal
|
||||
workingDirectory
|
||||
nodeVersion
|
||||
redisVersion
|
||||
redisUsedRAM
|
||||
redisTotalRAM
|
||||
redisHost
|
||||
}
|
||||
}
|
||||
}
|
12
client/graph/admin/theme/theme-mutation-save.gql
Normal file
12
client/graph/admin/theme/theme-mutation-save.gql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation($theme: String!, $darkMode: Boolean!) {
|
||||
theming {
|
||||
setConfig(theme: $theme, darkMode: $darkMode) {
|
||||
responseResult {
|
||||
succeeded
|
||||
errorCode
|
||||
slug
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
client/graph/admin/users/users-query-list.gql
Normal file
13
client/graph/admin/users/users-query-list.gql
Normal file
@@ -0,0 +1,13 @@
|
||||
query {
|
||||
users {
|
||||
list {
|
||||
id
|
||||
name
|
||||
email
|
||||
provider
|
||||
role
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user