|
2 | 2 |
|
3 | 3 |
|
4 | 4 | __all__ = [ |
5 | | - "game_enum", "rank_enum", "rotation_enum", "server_category_enum", "trophy_category_enum" |
| 5 | + "cosmetic_category_enum", |
| 6 | + "fish_catch_time_enum", |
| 7 | + "fish_weight_enum", |
| 8 | + "game_enum", |
| 9 | + "rank_enum", |
| 10 | + "rarity_enum", |
| 11 | + "rotation_enum", |
| 12 | + "server_category_enum", |
| 13 | + "trophy_category_enum" |
6 | 14 | ] |
7 | 15 |
|
| 16 | +cosmetic_category_enum = GraphQLEnumType( |
| 17 | + name="CosmeticCategory", |
| 18 | + description="Different categories of cosmetics.", |
| 19 | + values={ |
| 20 | + "ACCESSORY": GraphQLEnumValue( |
| 21 | + value="ACCESSORY", |
| 22 | + description="Accessories." |
| 23 | + ), |
| 24 | + "AURA": GraphQLEnumValue( |
| 25 | + value="AURA", |
| 26 | + description="Auras." |
| 27 | + ), |
| 28 | + "CLOAK": GraphQLEnumValue( |
| 29 | + value="CLOAK", |
| 30 | + description="Cloaks." |
| 31 | + ), |
| 32 | + "HAIR": GraphQLEnumValue( |
| 33 | + value="HAIR", |
| 34 | + description="Hair." |
| 35 | + ), |
| 36 | + "HAT": GraphQLEnumValue( |
| 37 | + value="HAT", |
| 38 | + description="Hats." |
| 39 | + ), |
| 40 | + "ROD": GraphQLEnumValue( |
| 41 | + value="ROD", |
| 42 | + description="Fishing rods." |
| 43 | + ), |
| 44 | + "TRAIL": GraphQLEnumValue( |
| 45 | + value="TRAIL", |
| 46 | + description="Trails." |
| 47 | + ) |
| 48 | + } |
| 49 | +) |
| 50 | + |
| 51 | +fish_catch_time_enum = GraphQLEnumType( |
| 52 | + name="FishCatchTime", |
| 53 | + description="The time a fish can be caught in.", |
| 54 | + values={ |
| 55 | + "ALWAYS": GraphQLEnumValue( |
| 56 | + value="ALWAYS", |
| 57 | + description="The fish can always be caught." |
| 58 | + ), |
| 59 | + "DAY": GraphQLEnumValue( |
| 60 | + value="DAY", |
| 61 | + description="The fish can only be caught during daytime." |
| 62 | + ), |
| 63 | + "NIGHT": GraphQLEnumValue( |
| 64 | + value="NIGHT", |
| 65 | + description="The fish can only be caught during nighttime." |
| 66 | + ) |
| 67 | + } |
| 68 | +) |
| 69 | + |
| 70 | +fish_weight_enum = GraphQLEnumType( |
| 71 | + name="FishWeight", |
| 72 | + description="The weight of a fish.\n\n" |
| 73 | + "Note that some weights are not used for crabs, or are only used for crabs.", |
| 74 | + values={ |
| 75 | + "AVERAGE": GraphQLEnumValue( |
| 76 | + value="AVERAGE", |
| 77 | + description="Average." |
| 78 | + ), |
| 79 | + "COLOSSAL": GraphQLEnumValue( |
| 80 | + value="COLOSSAL", |
| 81 | + description="Colossal.\n\n" |
| 82 | + "This weight is only used for crabs." |
| 83 | + ), |
| 84 | + "GARGANTUAN": GraphQLEnumValue( |
| 85 | + value="GARGANTUAN", |
| 86 | + description="Gargantuan.\n\n" |
| 87 | + "This weight is not used for crabs." |
| 88 | + ), |
| 89 | + "LARGE": GraphQLEnumValue( |
| 90 | + value="LARGE", |
| 91 | + description="Large." |
| 92 | + ), |
| 93 | + "MASSIVE": GraphQLEnumValue( |
| 94 | + value="MASSIVE", |
| 95 | + description="Massive.\n\n" |
| 96 | + "This weight is not used for crabs." |
| 97 | + ) |
| 98 | + } |
| 99 | +) |
| 100 | + |
8 | 101 | game_enum = GraphQLEnumType( |
9 | 102 | name="Game", |
10 | 103 | description="A game.", |
|
75 | 168 | } |
76 | 169 | ) |
77 | 170 |
|
| 171 | +rarity_enum = GraphQLEnumType( |
| 172 | + name="Rarity", |
| 173 | + description="Different tiers of rarity.", |
| 174 | + values={ |
| 175 | + "COMMON": GraphQLEnumValue( |
| 176 | + value="COMMON", |
| 177 | + description="Common." |
| 178 | + ), |
| 179 | + "EPIC": GraphQLEnumValue( |
| 180 | + value="EPIC", |
| 181 | + description="Epic." |
| 182 | + ), |
| 183 | + "LEGENDARY": GraphQLEnumValue( |
| 184 | + value="LEGENDARY", |
| 185 | + description="Legendary." |
| 186 | + ), |
| 187 | + "MYTHIC": GraphQLEnumValue( |
| 188 | + value="MYTHIC", |
| 189 | + description="Mythic." |
| 190 | + ), |
| 191 | + "RARE": GraphQLEnumValue( |
| 192 | + value="RARE", |
| 193 | + description="Rare." |
| 194 | + ), |
| 195 | + "UNCOMMON": GraphQLEnumValue( |
| 196 | + value="UNCOMMON", |
| 197 | + description="Uncommon." |
| 198 | + ) |
| 199 | + } |
| 200 | +) |
| 201 | + |
78 | 202 | rotation_enum = GraphQLEnumType( |
79 | 203 | name="Rotation", |
80 | 204 | description="A rotation period.\n\n" |
|
0 commit comments