mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-11 22:45:04 -05:00
173 lines
2.5 KiB
TypeScript
173 lines
2.5 KiB
TypeScript
import gql from 'fake-tag';
|
|
|
|
export const PlayerFragment = gql`
|
|
fragment PlayerFragment on player {
|
|
id
|
|
username
|
|
total_xp
|
|
rank
|
|
ethereum_address
|
|
availability_hours
|
|
timezone
|
|
ColorAspect {
|
|
name
|
|
description
|
|
mask
|
|
}
|
|
playerType {
|
|
description
|
|
id
|
|
imageUrl
|
|
title
|
|
}
|
|
Player_Skills {
|
|
Skill {
|
|
category
|
|
id
|
|
name
|
|
}
|
|
}
|
|
Accounts(where: { type: { _in: [TWITTER, GITHUB] } }) {
|
|
identifier
|
|
type
|
|
}
|
|
box_profile {
|
|
description
|
|
emoji
|
|
ethereumAddress
|
|
coverImageUrl
|
|
imageUrl
|
|
job
|
|
location
|
|
name
|
|
collectiblesFavorites {
|
|
tokenId
|
|
address
|
|
}
|
|
}
|
|
daohausMemberships {
|
|
id
|
|
shares
|
|
molochAddress
|
|
moloch {
|
|
id
|
|
title
|
|
version
|
|
totalShares
|
|
chain
|
|
}
|
|
}
|
|
brightid_status {
|
|
unique
|
|
contextIds
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GuildFragment = gql`
|
|
fragment GuildFragment on guild {
|
|
id
|
|
guildname
|
|
description
|
|
discord_invite_url
|
|
join_button_url
|
|
logo
|
|
moloch_address
|
|
name
|
|
type
|
|
website_url
|
|
github_url
|
|
twitter_url
|
|
}
|
|
`;
|
|
|
|
export const QuestFragment = gql`
|
|
fragment QuestFragment on quest {
|
|
id
|
|
created_at
|
|
cooldown
|
|
description
|
|
external_link
|
|
guild_id
|
|
status
|
|
title
|
|
repetition
|
|
|
|
guild {
|
|
name
|
|
logo
|
|
}
|
|
player {
|
|
id
|
|
ethereum_address
|
|
}
|
|
quest_skills {
|
|
skill {
|
|
id
|
|
name
|
|
category
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const QuestWithCompletionFragment = gql`
|
|
fragment QuestWithCompletionFragment on quest {
|
|
id
|
|
created_at
|
|
cooldown
|
|
description
|
|
external_link
|
|
guild_id
|
|
status
|
|
title
|
|
repetition
|
|
|
|
guild {
|
|
name
|
|
logo
|
|
}
|
|
quest_skills {
|
|
skill {
|
|
id
|
|
name
|
|
category
|
|
}
|
|
}
|
|
quest_completions(order_by: [{ submitted_at: desc }]) {
|
|
...QuestCompletionFragment
|
|
player {
|
|
id
|
|
ethereum_address
|
|
username
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const QuestCompletionFragment = gql`
|
|
fragment QuestCompletionFragment on quest_completion {
|
|
id
|
|
completed_by_player_id
|
|
status
|
|
submission_link
|
|
submission_text
|
|
submitted_at
|
|
}
|
|
`;
|
|
|
|
export const TokenBalancesFragment = gql`
|
|
fragment TokenBalancesFragment on TokenBalances {
|
|
address: id
|
|
pSeedBalance
|
|
}
|
|
`;
|
|
|
|
export const PlayerSkillFragment = gql`
|
|
fragment PlayerSkillFragment on skill {
|
|
id
|
|
name
|
|
category
|
|
}
|
|
`;
|