diff --git a/WotBlitzStatisticsPro.Blazor/.config/dotnet-tools.json b/WotBlitzStatisticsPro.Blazor/.config/dotnet-tools.json index d2c459a..b3bbb9a 100644 --- a/WotBlitzStatisticsPro.Blazor/.config/dotnet-tools.json +++ b/WotBlitzStatisticsPro.Blazor/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "strawberryshake.tools": { - "version": "11.2.2", + "version": "12.0.1", "commands": [ "dotnet-graphql" ] diff --git a/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql b/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql index 7d2573b..0d0070b 100644 --- a/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql +++ b/WotBlitzStatisticsPro.Blazor/graphql/schema.graphql @@ -18,6 +18,8 @@ type Query { accountMedals("AccountId" accountId: Long! "Account region" realmType: RealmType "Request language" requestLanguage: RequestLanguage): AccountAchievementsResponse! "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! + "Returns authentication URL accourding Realm" + loginUrl("Wargaming Realm." realmType: RealmType!): String! } type Mutation { @@ -27,6 +29,12 @@ type Mutation { 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" 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" @@ -345,6 +353,16 @@ type RealmAndLanguage { "The built-in `Decimal` scalar type." 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" input UpdateDictionariesRequestInput { "Determines what dictionaries should be updated. Usage: StaticDictionaries | Achievements | Vehicles"