Update response + input types for admin apis
This commit is contained in:
@@ -62,10 +62,6 @@ type Response {
|
||||
message: String!
|
||||
}
|
||||
|
||||
type AdminLoginResponse {
|
||||
message: String!
|
||||
}
|
||||
|
||||
type Config {
|
||||
ADMIN_SECRET: String
|
||||
DATABASE_TYPE: String
|
||||
@@ -141,6 +137,10 @@ input AdminLoginInput {
|
||||
admin_secret: String!
|
||||
}
|
||||
|
||||
input AdminSignupInput {
|
||||
admin_secret: String!
|
||||
}
|
||||
|
||||
input SignUpInput {
|
||||
email: String!
|
||||
given_name: String
|
||||
@@ -232,8 +232,8 @@ type Mutation {
|
||||
# admin only apis
|
||||
_delete_user(params: DeleteUserInput!): Response!
|
||||
_update_user(params: UpdateUserInput!): User!
|
||||
_admin_signup(params: AdminLoginInput!): AdminLoginResponse!
|
||||
_admin_login(params: AdminLoginInput!): AdminLoginResponse!
|
||||
_admin_signup(params: AdminSignupInput!): Response!
|
||||
_admin_login(params: AdminLoginInput!): Response!
|
||||
_admin_logout: Response!
|
||||
_update_config(params: UpdateConfigInput!): Response!
|
||||
}
|
||||
@@ -245,6 +245,6 @@ type Query {
|
||||
# admin only apis
|
||||
_users: [User!]!
|
||||
_verification_requests: [VerificationRequest!]!
|
||||
_admin_session: AdminLoginResponse!
|
||||
_admin_session: Response!
|
||||
_config: Config!
|
||||
}
|
||||
|
Reference in New Issue
Block a user