mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
72 lines
1.5 KiB
JavaScript
72 lines
1.5 KiB
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export const subscribeNewsletter = gql`
|
|
mutation($email: String!, $language: String!) {
|
|
subscribeNewsletter(email: $email, language: $language)
|
|
}
|
|
`
|
|
|
|
export const unsubscribeNewsletter = gql`
|
|
mutation($email: String!) {
|
|
unsubscribeNewsletter(email: $email)
|
|
}
|
|
`
|
|
|
|
export const resetPassword = gql`
|
|
mutation($sessionId: Float!, $email: String!, $password: String!) {
|
|
resetPassword(sessionId: $sessionId, email: $email, password: $password)
|
|
}
|
|
`
|
|
|
|
export const updateUserInfos = gql`
|
|
mutation(
|
|
$firstName: String
|
|
$lastName: String
|
|
$description: String
|
|
$username: String
|
|
$password: String
|
|
$passwordNew: String
|
|
$locale: String
|
|
$coinanimation: Boolean
|
|
) {
|
|
updateUserInfos(
|
|
firstName: $firstName
|
|
lastName: $lastName
|
|
description: $description
|
|
username: $username
|
|
password: $password
|
|
passwordNew: $passwordNew
|
|
language: $locale
|
|
coinanimation: $coinanimation
|
|
) {
|
|
validValues
|
|
}
|
|
}
|
|
`
|
|
|
|
export const registerUser = gql`
|
|
mutation(
|
|
$firstName: String!
|
|
$lastName: String!
|
|
$email: String!
|
|
$password: String!
|
|
$language: String!
|
|
$publisherId: Int
|
|
) {
|
|
createUser(
|
|
email: $email
|
|
firstName: $firstName
|
|
lastName: $lastName
|
|
password: $password
|
|
language: $language
|
|
publisherId: $publisherId
|
|
)
|
|
}
|
|
`
|
|
|
|
export const sendCoins = gql`
|
|
mutation($email: String!, $amount: Float!, $memo: String!) {
|
|
sendCoins(email: $email, amount: $amount, memo: $memo)
|
|
}
|
|
`
|