feat: vue-apollo + auth providers resolver (wip)

This commit is contained in:
NGPixel
2018-03-05 20:53:24 -05:00
parent 91b575529c
commit f5fb21aaba
14 changed files with 158 additions and 558 deletions

View File

@@ -10,7 +10,13 @@ type AuthenticationQuery {
providers: [AuthenticationProvider]
}
type AuthenticationMutation
type AuthenticationMutation {
updateProvider(
provider: String!
isEnabled: Boolean!
config: [KeyValuePairInput]
): DefaultResponse
}
type AuthenticationProvider {
isEnabled: Boolean!
@@ -19,5 +25,5 @@ type AuthenticationProvider {
title: String!
useForm: Boolean!
icon: String
config: String
config: [KeyValuePair]
}

View File

@@ -29,6 +29,26 @@ interface Base {
# TYPES
type KeyValuePair {
key: String!
value: String!
}
input KeyValuePairInput {
key: String!
value: String!
}
type DefaultResponse {
operation: ResponseStatus
}
type ResponseStatus {
succeeded: Boolean!
code: Int!
slug: String!
message: String
}
type Comment implements Base {
id: Int!
createdAt: Date