Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Fishing-related additions #13

Merged
merged 4 commits into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 127 additions & 0 deletions schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,102 @@
@spectaql(options: [{ key: "example", value: "1996-12-19T16:39:57-08:00" }])
@specifiedBy(url: "https://scalars.graphql.org/andimarek/date-time.html")

"An RFC-3339 compliant date."
scalar Date

Check notice on line 12 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'Date' was added

Type 'Date' was added
@spectaql(options: [{ key: "example", value: "1996-12-19", }])
@specifiedBy(url: "https://tools.ietf.org/html/rfc3339")

"A fish."
type Fish {

Check notice on line 17 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'Fish' was added

Type 'Fish' was added
"The name of the fish."
name: String!
@spectaql(options: [{ key: "example", value: "Midnight Tang" }])

"The climate this fish can be found in."
climate: String!
@spectaql(options: [{ key: "example", value: "Temperate" }])

"The collection this fish can be found in."
collection: String!
@spectaql(options: [{ key: "example", value: "Dark Grove" }])

"The rarity of the fish."
rarity: Rarity!

"The time this fish can be caught."
catchTime: FishCatchTime!

"If this fish is elusive."
elusive: Boolean!

"The number of trophies awarded for catching this fish in a given weight."
trophies(weight: FishWeight!): Int
}

"The time a fish can be caught in."
enum FishCatchTime {

Check notice on line 44 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'FishCatchTime' was added

Type 'FishCatchTime' was added
"The fish can always be caught."
ALWAYS

"The fish can only be caught during daytime."
DAY

"The fish can only be caught during nighttime."
NIGHT
}

"""
The weight of a fish.

Note that some weights are not used for crabs, or are only used for crabs.
"""
enum FishWeight {

Check notice on line 60 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'FishWeight' was added

Type 'FishWeight' was added
"Average."
AVERAGE

"Large."
LARGE

"""
Massive.

This weight is not used for crabs.
"""
MASSIVE

"""
Gargantuan.

This weight is not used for crabs.
"""
GARGANTUAN

"""
Colossal.

This weight is only used for crabs.
"""
COLOSSAL
}

"A record of the weight of fish that have been caught."
type FishRecord {

Check notice on line 90 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'FishRecord' was added

Type 'FishRecord' was added
"The fish this record is for."
fish: Fish!

"A list of data about the weights that have been caught."
weights: [FishCaughtWeight!]!
}

"Data about a caught fish weight."
type FishCaughtWeight {

Check notice on line 99 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'FishCaughtWeight' was added

Type 'FishCaughtWeight' was added
"The weight that was caught."
weight: FishWeight!

"When the player first caught this weight."
firstCaught: Date!
}

"A rank."
enum Rank {
"The Champ rank."
Expand Down Expand Up @@ -65,19 +161,44 @@
bonus: Int!
}

"Data relating to a level."
type LevelData {

Check notice on line 165 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Type 'LevelData' was added

Type 'LevelData' was added
"The overall level."
level: Int!

"The zero-indexed evolution of the level."
evolution: Int!

"The next level that will have an evolution, if any."
nextEvolutionLevel: Int

"The progress the player is making towards their next level, if any."
nextLevelProgress: ProgressionData
}

"A Crown Level and associated trophy data."
type CrownLevel {
"The overall Crown Level."
level: Int!

Check notice on line 182 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'CrownLevel.level' is deprecated

Field 'CrownLevel.level' is deprecated

Check notice on line 182 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'CrownLevel.level' has deprecation reason 'Use levelData instead.'

Field 'CrownLevel.level' has deprecation reason 'Use levelData instead.'
@deprecated(reason: "Use levelData instead.")

"The zero-indexed evolution of the crown."
evolution: Int!

Check notice on line 186 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'CrownLevel.evolution' is deprecated

Field 'CrownLevel.evolution' is deprecated

Check notice on line 186 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'CrownLevel.evolution' has deprecation reason 'Use levelData instead.'

Field 'CrownLevel.evolution' has deprecation reason 'Use levelData instead.'
@deprecated(reason: "Use levelData instead.")

"The next level that the crown will evolve, if any."
nextEvolutionLevel: Int

Check notice on line 190 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'CrownLevel.nextEvolutionLevel' is deprecated

Field 'CrownLevel.nextEvolutionLevel' is deprecated

Check notice on line 190 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'CrownLevel.nextEvolutionLevel' has deprecation reason 'Use levelData instead.'

Field 'CrownLevel.nextEvolutionLevel' has deprecation reason 'Use levelData instead.'
@deprecated(reason: "Use levelData instead.")

"The progress the player is making towards their next level, if any."
nextLevelProgress: ProgressionData

Check notice on line 194 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'CrownLevel.nextLevelProgress' is deprecated

Field 'CrownLevel.nextLevelProgress' is deprecated

Check notice on line 194 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'CrownLevel.nextLevelProgress' has deprecation reason 'Use levelData instead.'

Field 'CrownLevel.nextLevelProgress' has deprecation reason 'Use levelData instead.'
@deprecated(reason: "Use levelData instead.")

"The overall level data."
levelData: LevelData!

Check notice on line 198 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'levelData' was added to object type 'CrownLevel'

Field 'levelData' was added to object type 'CrownLevel'

"The fishing level data."
fishingLevelData: LevelData!

Check notice on line 201 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'fishingLevelData' was added to object type 'CrownLevel'

Field 'fishingLevelData' was added to object type 'CrownLevel'

"The amount of trophies the player has."
trophies(
Expand Down Expand Up @@ -167,6 +288,12 @@
collection: String = null
@spectaql(options: { key: "example", value: "Oceanic" })
): [CosmeticOwnershipState!]!

"Returns the record data for all fish, optionally in a specific collection."
fish(

Check notice on line 293 in schema.graphqls

View workflow job for this annotation

GitHub Actions / GraphQL Inspector

Field 'fish' was added to object type 'Collections'

Field 'fish' was added to object type 'Collections'
collection: String = null
@spectaql(options: [{ key: "example", value: "Dark Grove" }])
): [FishRecord!]!
}

"The ownership state of a cosmetic."
Expand Down
Loading