@@ -7,7 +7,6 @@ import type { PlayerActivityStats } from "../models/PlayerActivityStats"
7
7
import type { PlayerMatchesResponse } from "../models/PlayerMatchesResponse"
8
8
import type { PlayerMatchupsStats } from "../models/PlayerMatchupsStats"
9
9
import type { PlayerOpponentsStats } from "../models/PlayerOpponentsStats"
10
- import type { PlayerPreferences } from "../models/PlayerPreferences"
11
10
import type { PlayerResponse } from "../models/PlayerResponse"
12
11
import type { Race } from "../models/Race"
13
12
import type { CancelablePromise } from "../core/CancelablePromise"
@@ -45,6 +44,7 @@ export class PlayersApi {
45
44
public static getPlayerMatches ( {
46
45
playerId,
47
46
race,
47
+ opponentPlayerId,
48
48
page,
49
49
count,
50
50
} : {
@@ -53,6 +53,7 @@ export class PlayersApi {
53
53
*/
54
54
playerId : string
55
55
race ?: Race | null
56
+ opponentPlayerId ?: string | null
56
57
page ?: number | null
57
58
count ?: number | null
58
59
} ) : CancelablePromise < PlayerMatchesResponse > {
@@ -64,6 +65,7 @@ export class PlayersApi {
64
65
} ,
65
66
query : {
66
67
race : race ,
68
+ opponent_player_id : opponentPlayerId ,
67
69
page : page ,
68
70
count : count ,
69
71
} ,
@@ -97,58 +99,6 @@ export class PlayersApi {
97
99
} ,
98
100
} )
99
101
}
100
- /**
101
- * @returns PlayerPreferences Player found successfully
102
- * @throws ApiError
103
- */
104
- public static getPlayerPreferences ( {
105
- playerId,
106
- } : {
107
- /**
108
- * Player ID
109
- */
110
- playerId : string
111
- } ) : CancelablePromise < PlayerPreferences > {
112
- return __request ( OpenAPI , {
113
- method : "GET" ,
114
- url : "/v0/players/{player_id}/preferences" ,
115
- path : {
116
- player_id : playerId ,
117
- } ,
118
- errors : {
119
- 404 : `Player was not found` ,
120
- 500 : `Server error` ,
121
- } ,
122
- } )
123
- }
124
- /**
125
- * @returns PlayerPreferences Player preferences updated successfully
126
- * @throws ApiError
127
- */
128
- public static updatePlayerPreferences ( {
129
- playerId,
130
- requestBody,
131
- } : {
132
- /**
133
- * Player ID
134
- */
135
- playerId : string
136
- requestBody : PlayerPreferences
137
- } ) : CancelablePromise < PlayerPreferences > {
138
- return __request ( OpenAPI , {
139
- method : "PUT" ,
140
- url : "/v0/players/{player_id}/preferences" ,
141
- path : {
142
- player_id : playerId ,
143
- } ,
144
- body : requestBody ,
145
- mediaType : "application/json" ,
146
- errors : {
147
- 404 : `Player was not found` ,
148
- 500 : `Server error` ,
149
- } ,
150
- } )
151
- }
152
102
/**
153
103
* @returns PlayerActivityStats Player found successfully
154
104
* @throws ApiError
0 commit comments