mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
157 lines
2.4 KiB
GraphQL
157 lines
2.4 KiB
GraphQL
type Mutation {
|
|
authenticateDiscordGuild (
|
|
code: String!
|
|
): DiscordGuildAuthResponse
|
|
}
|
|
|
|
|
|
type Mutation {
|
|
createQuest (
|
|
quest: CreateQuestInput!
|
|
): CreateQuestOutput
|
|
}
|
|
|
|
|
|
type Mutation {
|
|
createQuestCompletion (
|
|
questCompletion: CreateQuestCompletionInput!
|
|
): CreateQuestCompletionOutput
|
|
}
|
|
|
|
|
|
type Mutation {
|
|
saveGuildInformation (
|
|
guildInformation: GuildInfo!
|
|
): SaveGuildResponse
|
|
}
|
|
|
|
|
|
type Mutation {
|
|
updateExpiredIDXProfiles : ExpiredPlayerProfiles
|
|
}
|
|
|
|
|
|
type Mutation {
|
|
updateIDXProfile (
|
|
playerId: uuid
|
|
): CacheProcessOutput
|
|
}
|
|
|
|
|
|
type Mutation {
|
|
updateQuestCompletion (
|
|
updateData: UpdateQuestCompletionInput!
|
|
): UpdateQuestCompletionOutput
|
|
}
|
|
|
|
|
|
|
|
|
|
enum QuestRepetition_ActionEnum {
|
|
UNIQUE
|
|
PERSONAL
|
|
RECURRING
|
|
}
|
|
|
|
enum QuestCompletionStatus_ActionEnum {
|
|
ACCEPTED
|
|
REJECTED
|
|
}
|
|
|
|
enum GuildType_ActionEnum {
|
|
PROJECT
|
|
SERVICE
|
|
RESEARCH
|
|
SOCIAL
|
|
FUNDING
|
|
}
|
|
|
|
input CreateQuestInput {
|
|
guild_id : uuid!
|
|
title : String!
|
|
description : String
|
|
external_link : String
|
|
repetition : QuestRepetition_ActionEnum
|
|
cooldown : Int
|
|
skills_id : [uuid]!
|
|
}
|
|
|
|
input CreateQuestCompletionInput {
|
|
quest_id : String!
|
|
submission_link : String
|
|
submission_text : String
|
|
}
|
|
|
|
input UpdateQuestCompletionInput {
|
|
quest_completion_id : String!
|
|
status : QuestCompletionStatus_ActionEnum!
|
|
}
|
|
|
|
input GuildInfo {
|
|
uuid : String!
|
|
guildname : String!
|
|
name : String!
|
|
type : GuildType_ActionEnum!
|
|
description : String
|
|
discordInviteUrl : String
|
|
joinUrl : String
|
|
logoUrl : String
|
|
websiteUrl : String
|
|
twitterUrl : String
|
|
githubUrl : String
|
|
daoAddress : String
|
|
membershipThroughDiscord : Boolean
|
|
discordAdminRoles : [String]!
|
|
discordMembershipRoles : [String]!
|
|
}
|
|
|
|
type UpdateBoxProfileResponse {
|
|
success : Boolean!
|
|
updatedProfiles : [String!]!
|
|
}
|
|
|
|
type CreateQuestOutput {
|
|
success : Boolean!
|
|
quest_id : uuid
|
|
error : String
|
|
}
|
|
|
|
type CreateQuestCompletionOutput {
|
|
success : Boolean!
|
|
error : String
|
|
quest_completion_id : uuid
|
|
}
|
|
|
|
type UpdateQuestCompletionOutput {
|
|
success : Boolean!
|
|
error : String
|
|
quest_completion_id : uuid
|
|
}
|
|
|
|
type DiscordGuildAuthResponse {
|
|
success : Boolean!
|
|
guildname : String
|
|
exists : Boolean
|
|
error : String
|
|
}
|
|
|
|
type CacheProcessOutput {
|
|
success : Boolean!
|
|
error : String
|
|
}
|
|
|
|
type UpdateIDXProfileResponse {
|
|
success : Boolean!
|
|
updatedProfiles : [String!]!
|
|
}
|
|
|
|
type ExpiredPlayerProfiles {
|
|
ids : [String]!
|
|
}
|
|
|
|
type SaveGuildResponse {
|
|
success : Boolean
|
|
error : String
|
|
}
|
|
|