2025-06-30 18:25:26 +00:00
|
|
|
export const ADMIN_LOGIN_MUTATION = `
|
|
|
|
mutation AdminLogin($email: String!, $password: String!) {
|
|
|
|
login(email: $email, password: $password) {
|
|
|
|
success
|
|
|
|
token
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const ADMIN_LOGOUT_MUTATION = `
|
|
|
|
mutation AdminLogout {
|
|
|
|
logout {
|
|
|
|
success
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const ADMIN_UPDATE_USER_MUTATION = `
|
|
|
|
mutation AdminUpdateUser($user: AdminUserUpdateInput!) {
|
|
|
|
adminUpdateUser(user: $user) {
|
|
|
|
success
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const ADMIN_UPDATE_ENV_VARIABLE_MUTATION = `
|
|
|
|
mutation AdminUpdateEnvVariable($key: String!, $value: String!) {
|
|
|
|
updateEnvVariable(key: $key, value: $value)
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
2025-06-30 19:19:46 +00:00
|
|
|
export const CREATE_TOPIC_MUTATION = `
|
|
|
|
mutation CreateTopic($topic_input: TopicInput!) {
|
|
|
|
create_topic(topic_input: $topic_input) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
2025-06-30 18:25:26 +00:00
|
|
|
export const UPDATE_TOPIC_MUTATION = `
|
|
|
|
mutation UpdateTopic($topic_input: TopicInput!) {
|
|
|
|
update_topic(topic_input: $topic_input) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const DELETE_TOPIC_MUTATION = `
|
|
|
|
mutation DeleteTopic($id: Int!) {
|
|
|
|
delete_topic_by_id(id: $id) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
2025-06-30 19:19:46 +00:00
|
|
|
export const CREATE_COMMUNITY_MUTATION = `
|
|
|
|
mutation CreateCommunity($community_input: CommunityInput!) {
|
|
|
|
create_community(community_input: $community_input) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
2025-06-30 18:25:26 +00:00
|
|
|
export const UPDATE_COMMUNITY_MUTATION = `
|
|
|
|
mutation UpdateCommunity($community_input: CommunityInput!) {
|
|
|
|
update_community(community_input: $community_input) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const DELETE_COMMUNITY_MUTATION = `
|
|
|
|
mutation DeleteCommunity($slug: String!) {
|
|
|
|
delete_community(slug: $slug) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
2025-06-30 18:46:53 +00:00
|
|
|
|
|
|
|
export const CREATE_COLLECTION_MUTATION = `
|
|
|
|
mutation CreateCollection($collection_input: CollectionInput!) {
|
|
|
|
create_collection(collection_input: $collection_input) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const UPDATE_COLLECTION_MUTATION = `
|
|
|
|
mutation UpdateCollection($collection_input: CollectionInput!) {
|
|
|
|
update_collection(collection_input: $collection_input) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const DELETE_COLLECTION_MUTATION = `
|
|
|
|
mutation DeleteCollection($slug: String!) {
|
|
|
|
delete_collection(slug: $slug) {
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
2025-06-30 19:19:46 +00:00
|
|
|
|
|
|
|
export const ADMIN_CREATE_INVITE_MUTATION = `
|
|
|
|
mutation AdminCreateInvite($invite: AdminInviteUpdateInput!) {
|
|
|
|
adminCreateInvite(invite: $invite) {
|
|
|
|
success
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const ADMIN_UPDATE_INVITE_MUTATION = `
|
|
|
|
mutation AdminUpdateInvite($invite: AdminInviteUpdateInput!) {
|
|
|
|
adminUpdateInvite(invite: $invite) {
|
|
|
|
success
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
|
|
|
|
export const ADMIN_DELETE_INVITE_MUTATION = `
|
|
|
|
mutation AdminDeleteInvite($inviter_id: Int!, $author_id: Int!, $shout_id: Int!) {
|
|
|
|
adminDeleteInvite(inviter_id: $inviter_id, author_id: $author_id, shout_id: $shout_id) {
|
|
|
|
success
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
2025-06-30 20:37:21 +00:00
|
|
|
|
|
|
|
export const ADMIN_DELETE_INVITES_BATCH_MUTATION = `
|
|
|
|
mutation AdminDeleteInvitesBatch($invites: [AdminInviteIdInput!]!) {
|
|
|
|
adminDeleteInvitesBatch(invites: $invites) {
|
|
|
|
success
|
|
|
|
error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|