|
97 | 97 | GraphQLNonNull(GraphQLBoolean), |
98 | 98 | description="If this cosmetic can be colored using Chroma Packs." |
99 | 99 | ), |
| 100 | + "globalNumberOwned": GraphQLField( |
| 101 | + GraphQLString, |
| 102 | + description="The number of people who own this cosmetic.\n\n" |
| 103 | + "The exact number is only displayed if fewer than 1000 players own this cosmetic.\n" |
| 104 | + "Otherwise, either `1000+` or `10000+` will be returned, indicating the real value is higher " |
| 105 | + "than this number.\n" |
| 106 | + "Some cosmetics are excluded from ownership reporting, for these cosmetics `null` will be " |
| 107 | + "returned." |
| 108 | + ), |
100 | 109 | "isBonusTrophies": GraphQLField( |
101 | 110 | GraphQLBoolean, |
102 | 111 | description="If this cosmetic awards bonus trophies.\n\n" |
|
143 | 152 | name="CrownLevel", |
144 | 153 | description="A Crown Level and associated trophy data.", |
145 | 154 | fields=lambda: { |
146 | | - "evolution": GraphQLField( |
147 | | - GraphQLNonNull(GraphQLInt), |
148 | | - description="The zero-indexed evolution of the crown.", |
149 | | - deprecation_reason="Use levelData instead." |
150 | | - ), |
151 | 155 | "fishingLevelData": GraphQLField( |
152 | 156 | GraphQLNonNull(level_data_type), |
153 | 157 | description="The fishing level data." |
154 | 158 | ), |
155 | | - "level": GraphQLField( |
156 | | - GraphQLNonNull(GraphQLInt), |
157 | | - description="The overall Crown Level.", |
158 | | - deprecation_reason="Use levelData instead." |
159 | | - ), |
160 | 159 | "levelData": GraphQLField( |
161 | 160 | GraphQLNonNull(level_data_type), |
162 | 161 | description="The overall level data." |
163 | 162 | ), |
164 | | - "nextEvolutionLevel": GraphQLField( |
165 | | - GraphQLInt, |
166 | | - description="The next level that the crown will evolve, if any.", |
167 | | - deprecation_reason="Use levelData instead." |
168 | | - ), |
169 | | - "nextLevelProgress": GraphQLField( |
170 | | - progression_data_type, |
171 | | - description="The progress the player is making towards their next level, if any.", |
172 | | - deprecation_reason="Use levelData instead." |
173 | | - ), |
174 | 163 | "trophies": GraphQLField( |
175 | 164 | GraphQLNonNull(trophy_data_type), |
176 | 165 | description="The amount of trophies the player has.", |
|
196 | 185 | GraphQLNonNull(GraphQLInt), |
197 | 186 | description="The number of coins the player currently has." |
198 | 187 | ), |
199 | | - "gems": GraphQLField( |
200 | | - GraphQLNonNull(GraphQLInt), |
201 | | - description="The number of gems the player currently has.", |
202 | | - deprecation_reason="Deprecated for removal. Will always return 0 until removal." |
203 | | - ), |
204 | 188 | "materialDust": GraphQLField( |
205 | 189 | GraphQLNonNull(GraphQLInt), |
206 | 190 | description="The number of material dust the player currently has." |
|
218 | 202 |
|
219 | 203 | fish_type = GraphQLObjectType( |
220 | 204 | name="Fish", |
221 | | - description="A fish.", |
| 205 | + description="A fish.\n\n" |
| 206 | + "Queries on this type that accept a weight as an argument will return `null` if this fish does not " |
| 207 | + "support the provided weight.", |
222 | 208 | fields={ |
223 | 209 | "catchTime": GraphQLField( |
224 | 210 | GraphQLNonNull(fish_catch_time_enum), |
|
236 | 222 | GraphQLNonNull(GraphQLBoolean), |
237 | 223 | description="If this fish is elusive." |
238 | 224 | ), |
| 225 | + "globalNumberCaught": GraphQLField( |
| 226 | + GraphQLString, |
| 227 | + description="The number of people who have caught this fish.\n\n" |
| 228 | + "The exact number is only displayed if fewer than 1000 players have caught this fish.\n" |
| 229 | + "Otherwise, either `1000+` or `10000+` will be returned, indicating the real value is higher " |
| 230 | + "than this number.", |
| 231 | + args={ |
| 232 | + "weight": GraphQLArgument( |
| 233 | + GraphQLNonNull(fish_weight_enum) |
| 234 | + ) |
| 235 | + } |
| 236 | + ), |
239 | 237 | "name": GraphQLField( |
240 | 238 | GraphQLNonNull(GraphQLString), |
241 | 239 | description="The name of the fish." |
|
252 | 250 | GraphQLNonNull(fish_weight_enum) |
253 | 251 | ) |
254 | 252 | } |
| 253 | + ), |
| 254 | + "sellingPrice": GraphQLField( |
| 255 | + GraphQLInt, |
| 256 | + description="The number of A.N.G.L.R. Tokens given for selling this fish in a given weight.", |
| 257 | + args={ |
| 258 | + "weight": GraphQLArgument( |
| 259 | + GraphQLNonNull(fish_weight_enum) |
| 260 | + ) |
| 261 | + } |
255 | 262 | ) |
256 | 263 | } |
257 | 264 | ) |
|
0 commit comments