chore: updated schema

This commit is contained in:
Michael Shabanov committed 2021-10-20 12:26:07 +03:00
1 parent 01b25524e9
commit 79a87d0d66
2 files changed
+19 -1

No files matched your search

@@ -3,7 +3,7 @@
"isRoot": true, "isRoot": true,
"tools": { "tools": {
"strawberryshake.tools": { "strawberryshake.tools": {
"version": "11.2.2", "version": "12.0.1",
"commands": [ "commands": [
"dotnet-graphql" "dotnet-graphql"
] ]
@@ -18,6 +18,8 @@ type Query {
accountMedals("AccountId" accountId: Long! "Account region" realmType: RealmType "Request language" requestLanguage: RequestLanguage): AccountAchievementsResponse! accountMedals("AccountId" accountId: Long! "Account region" realmType: RealmType "Request language" requestLanguage: RequestLanguage): AccountAchievementsResponse!
"Returns information about player's tank achievements" "Returns information about player's tank achievements"
tankMedals("AccountId" accountId: Long! "Account tank Id" tankId: Long! "Account region" realmType: RealmType "Request language" requestLanguage: RequestLanguage): AccountAchievementsResponse! tankMedals("AccountId" accountId: Long! "Account tank Id" tankId: Long! "Account region" realmType: RealmType "Request language" requestLanguage: RequestLanguage): AccountAchievementsResponse!
"Returns authentication URL accourding Realm"
loginUrl("Wargaming Realm." realmType: RealmType!): String!
} }
type Mutation { type Mutation {
@@ -27,6 +29,12 @@ type Mutation {
gatherAccountInformation("Account region" realmType: RealmType! "AccountId" accountId: Long! "Request language" requestLanguage: RequestLanguage!): DateTime! gatherAccountInformation("Account region" realmType: RealmType! "AccountId" accountId: Long! "Request language" requestLanguage: RequestLanguage!): DateTime!
"This method accepts GitHub oauth code, and returns JWT token with GutHub user as claim" "This method accepts GitHub oauth code, and returns JWT token with GutHub user as claim"
gitHubAuthenticate("OAuth code can be generated by this URL https:\/\/github.com\/login\/oauth\/authorize?client_id={yourClientId}" oauthCode: String!): String! gitHubAuthenticate("OAuth code can be generated by this URL https:\/\/github.com\/login\/oauth\/authorize?client_id={yourClientId}" oauthCode: String!): String!
"Prolongates Wargaming authentication token"
prolongAuthToken("Wargaming realm" realm: RealmType! "Old token to prolongate" oldToken: String!): WargamingProlongInfo!
"Removes player's access token\n\n\n**Returns:**\nOperation result"
logout("Wargaming realm" realm: RealmType! "Token to logout" token: String!): String!
"Removes player's acoount history from database\n\n\n**Returns:**\nOperation result"
removePlayerHistory("Wargaming realm" realm: RealmType! "Player Id" accountId: Long!): String!
} }
"Mastery" "Mastery"
@@ -345,6 +353,16 @@ type RealmAndLanguage {
"The built-in `Decimal` scalar type." "The built-in `Decimal` scalar type."
scalar Decimal scalar Decimal
"Prolong Wargaming Auth token response"
type WargamingProlongInfo {
"Player Account Id"
accountId: Long!
"New access token"
accessToken: String!
"New expiration unix timestamp"
expirationTimeStamp: Int!
}
"Request for update dictionaries mutation" "Request for update dictionaries mutation"
input UpdateDictionariesRequestInput { input UpdateDictionariesRequestInput {
"Determines what dictionaries should be updated. Usage: StaticDictionaries | Achievements | Vehicles" "Determines what dictionaries should be updated. Usage: StaticDictionaries | Achievements | Vehicles"