|
22 | 22 | "player_type", |
23 | 23 | "progression_data_type", |
24 | 24 | "query_type", |
| 25 | + "royal_reputation_type", |
25 | 26 | "server_type", |
26 | 27 | "social_type", |
27 | 28 | "statistic_type", |
|
76 | 77 | cosmetic_type = GraphQLObjectType( |
77 | 78 | name="Cosmetic", |
78 | 79 | description="A cosmetic.", |
79 | | - fields={ |
| 80 | + fields=lambda: { |
80 | 81 | "name": GraphQLField( |
81 | 82 | GraphQLNonNull(GraphQLString), |
82 | 83 | description="The name of the cosmetic." |
|
119 | 120 | GraphQLNonNull(rarity_enum), |
120 | 121 | description="The rarity of the cosmetic." |
121 | 122 | ), |
| 123 | + "royalReputation": GraphQLField( |
| 124 | + royal_reputation_type, |
| 125 | + description="Information about the Royal Reputation this cosmetic provides.\n\n" |
| 126 | + "This will be `null` if the cosmetic cannot be donated." |
| 127 | + ), |
122 | 128 | "trophies": GraphQLField( |
123 | 129 | GraphQLNonNull(GraphQLInt), |
124 | 130 | description="The number of trophies this cosmetic awards.\n\n" |
|
509 | 515 | } |
510 | 516 | ) |
511 | 517 |
|
| 518 | +royal_reputation_type = GraphQLObjectType( |
| 519 | + name="RoyalReputation", |
| 520 | + description="Information about the Royal Reputation for a cosmetic.", |
| 521 | + fields={ |
| 522 | + "donationLimit": GraphQLField( |
| 523 | + GraphQLNonNull(GraphQLInt), |
| 524 | + description="The maximum number of donations that can be made for this cosmetic." |
| 525 | + ), |
| 526 | + "reputationAmount": GraphQLField( |
| 527 | + GraphQLNonNull(GraphQLInt), |
| 528 | + description="The amount of reputation that each donation provides." |
| 529 | + ) |
| 530 | + } |
| 531 | +) |
| 532 | + |
512 | 533 | server_type = GraphQLObjectType( |
513 | 534 | name="Server", |
514 | 535 | description="A server on the network.", |
|
0 commit comments