@jugarhoy/api 1.1.12 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,19 +15,29 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiAppRecurringGamesIdPlaySearchesGet200Response,
|
|
18
19
|
CreateRecurringGameRequest,
|
|
20
|
+
PlaySearchDTO,
|
|
19
21
|
RecurringGameResponse,
|
|
20
22
|
UpdateRecurringGameRequest,
|
|
21
23
|
} from '../models/index';
|
|
22
24
|
import {
|
|
25
|
+
ApiAppRecurringGamesIdPlaySearchesGet200ResponseFromJSON,
|
|
26
|
+
ApiAppRecurringGamesIdPlaySearchesGet200ResponseToJSON,
|
|
23
27
|
CreateRecurringGameRequestFromJSON,
|
|
24
28
|
CreateRecurringGameRequestToJSON,
|
|
29
|
+
PlaySearchDTOFromJSON,
|
|
30
|
+
PlaySearchDTOToJSON,
|
|
25
31
|
RecurringGameResponseFromJSON,
|
|
26
32
|
RecurringGameResponseToJSON,
|
|
27
33
|
UpdateRecurringGameRequestFromJSON,
|
|
28
34
|
UpdateRecurringGameRequestToJSON,
|
|
29
35
|
} from '../models/index';
|
|
30
36
|
|
|
37
|
+
export interface ApiAppRecurringGamesIdActivePlaySearchGetRequest {
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
31
41
|
export interface ApiAppRecurringGamesIdDeleteRequest {
|
|
32
42
|
id: string;
|
|
33
43
|
}
|
|
@@ -41,6 +51,16 @@ export interface ApiAppRecurringGamesIdPatchRequest {
|
|
|
41
51
|
updateRecurringGameRequest: UpdateRecurringGameRequest;
|
|
42
52
|
}
|
|
43
53
|
|
|
54
|
+
export interface ApiAppRecurringGamesIdPlaySearchesGetRequest {
|
|
55
|
+
id: string;
|
|
56
|
+
page?: number;
|
|
57
|
+
size?: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface ApiAppRecurringGamesIdVotingPlaySearchGetRequest {
|
|
61
|
+
id: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
44
64
|
export interface ApiAppRecurringGamesPostRequest {
|
|
45
65
|
createRecurringGameRequest: CreateRecurringGameRequest;
|
|
46
66
|
}
|
|
@@ -55,6 +75,47 @@ export interface ApiAppRecurringGamesTeamTeamIdGetRequest {
|
|
|
55
75
|
*/
|
|
56
76
|
export class RecurringGamesApi extends runtime.BaseAPI {
|
|
57
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Get the active (upcoming) PlaySearch for a recurring game
|
|
80
|
+
*/
|
|
81
|
+
async apiAppRecurringGamesIdActivePlaySearchGetRaw(requestParameters: ApiAppRecurringGamesIdActivePlaySearchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlaySearchDTO>> {
|
|
82
|
+
if (requestParameters['id'] == null) {
|
|
83
|
+
throw new runtime.RequiredError(
|
|
84
|
+
'id',
|
|
85
|
+
'Required parameter "id" was null or undefined when calling apiAppRecurringGamesIdActivePlaySearchGet().'
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const queryParameters: any = {};
|
|
90
|
+
|
|
91
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
92
|
+
|
|
93
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
94
|
+
const token = this.configuration.accessToken;
|
|
95
|
+
const tokenString = await token("bearerAuth", []);
|
|
96
|
+
|
|
97
|
+
if (tokenString) {
|
|
98
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
const response = await this.request({
|
|
102
|
+
path: `/api/app/recurring-games/{id}/active-play-search`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
103
|
+
method: 'GET',
|
|
104
|
+
headers: headerParameters,
|
|
105
|
+
query: queryParameters,
|
|
106
|
+
}, initOverrides);
|
|
107
|
+
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlaySearchDTOFromJSON(jsonValue));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Get the active (upcoming) PlaySearch for a recurring game
|
|
113
|
+
*/
|
|
114
|
+
async apiAppRecurringGamesIdActivePlaySearchGet(requestParameters: ApiAppRecurringGamesIdActivePlaySearchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchDTO> {
|
|
115
|
+
const response = await this.apiAppRecurringGamesIdActivePlaySearchGetRaw(requestParameters, initOverrides);
|
|
116
|
+
return await response.value();
|
|
117
|
+
}
|
|
118
|
+
|
|
58
119
|
/**
|
|
59
120
|
* Delete a recurring game
|
|
60
121
|
*/
|
|
@@ -187,6 +248,96 @@ export class RecurringGamesApi extends runtime.BaseAPI {
|
|
|
187
248
|
return await response.value();
|
|
188
249
|
}
|
|
189
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Get all PlaySearches for a recurring game
|
|
253
|
+
*/
|
|
254
|
+
async apiAppRecurringGamesIdPlaySearchesGetRaw(requestParameters: ApiAppRecurringGamesIdPlaySearchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAppRecurringGamesIdPlaySearchesGet200Response>> {
|
|
255
|
+
if (requestParameters['id'] == null) {
|
|
256
|
+
throw new runtime.RequiredError(
|
|
257
|
+
'id',
|
|
258
|
+
'Required parameter "id" was null or undefined when calling apiAppRecurringGamesIdPlaySearchesGet().'
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const queryParameters: any = {};
|
|
263
|
+
|
|
264
|
+
if (requestParameters['page'] != null) {
|
|
265
|
+
queryParameters['page'] = requestParameters['page'];
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (requestParameters['size'] != null) {
|
|
269
|
+
queryParameters['size'] = requestParameters['size'];
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
273
|
+
|
|
274
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
275
|
+
const token = this.configuration.accessToken;
|
|
276
|
+
const tokenString = await token("bearerAuth", []);
|
|
277
|
+
|
|
278
|
+
if (tokenString) {
|
|
279
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
const response = await this.request({
|
|
283
|
+
path: `/api/app/recurring-games/{id}/play-searches`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
284
|
+
method: 'GET',
|
|
285
|
+
headers: headerParameters,
|
|
286
|
+
query: queryParameters,
|
|
287
|
+
}, initOverrides);
|
|
288
|
+
|
|
289
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAppRecurringGamesIdPlaySearchesGet200ResponseFromJSON(jsonValue));
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Get all PlaySearches for a recurring game
|
|
294
|
+
*/
|
|
295
|
+
async apiAppRecurringGamesIdPlaySearchesGet(requestParameters: ApiAppRecurringGamesIdPlaySearchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAppRecurringGamesIdPlaySearchesGet200Response> {
|
|
296
|
+
const response = await this.apiAppRecurringGamesIdPlaySearchesGetRaw(requestParameters, initOverrides);
|
|
297
|
+
return await response.value();
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Get the voting PlaySearch for a recurring game
|
|
302
|
+
*/
|
|
303
|
+
async apiAppRecurringGamesIdVotingPlaySearchGetRaw(requestParameters: ApiAppRecurringGamesIdVotingPlaySearchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlaySearchDTO>> {
|
|
304
|
+
if (requestParameters['id'] == null) {
|
|
305
|
+
throw new runtime.RequiredError(
|
|
306
|
+
'id',
|
|
307
|
+
'Required parameter "id" was null or undefined when calling apiAppRecurringGamesIdVotingPlaySearchGet().'
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
const queryParameters: any = {};
|
|
312
|
+
|
|
313
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
314
|
+
|
|
315
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
316
|
+
const token = this.configuration.accessToken;
|
|
317
|
+
const tokenString = await token("bearerAuth", []);
|
|
318
|
+
|
|
319
|
+
if (tokenString) {
|
|
320
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
const response = await this.request({
|
|
324
|
+
path: `/api/app/recurring-games/{id}/voting-play-search`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
325
|
+
method: 'GET',
|
|
326
|
+
headers: headerParameters,
|
|
327
|
+
query: queryParameters,
|
|
328
|
+
}, initOverrides);
|
|
329
|
+
|
|
330
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlaySearchDTOFromJSON(jsonValue));
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Get the voting PlaySearch for a recurring game
|
|
335
|
+
*/
|
|
336
|
+
async apiAppRecurringGamesIdVotingPlaySearchGet(requestParameters: ApiAppRecurringGamesIdVotingPlaySearchGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchDTO> {
|
|
337
|
+
const response = await this.apiAppRecurringGamesIdVotingPlaySearchGetRaw(requestParameters, initOverrides);
|
|
338
|
+
return await response.value();
|
|
339
|
+
}
|
|
340
|
+
|
|
190
341
|
/**
|
|
191
342
|
* Create a recurring game for a team
|
|
192
343
|
*/
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PlaySearchDTO } from './PlaySearchDTO';
|
|
17
|
+
import {
|
|
18
|
+
PlaySearchDTOFromJSON,
|
|
19
|
+
PlaySearchDTOFromJSONTyped,
|
|
20
|
+
PlaySearchDTOToJSON,
|
|
21
|
+
PlaySearchDTOToJSONTyped,
|
|
22
|
+
} from './PlaySearchDTO';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAppRecurringGamesIdPlaySearchesGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAppRecurringGamesIdPlaySearchesGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PlaySearchDTO>}
|
|
33
|
+
* @memberof ApiAppRecurringGamesIdPlaySearchesGet200Response
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<PlaySearchDTO>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiAppRecurringGamesIdPlaySearchesGet200Response
|
|
40
|
+
*/
|
|
41
|
+
total?: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAppRecurringGamesIdPlaySearchesGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfApiAppRecurringGamesIdPlaySearchesGet200Response(value: object): value is ApiAppRecurringGamesIdPlaySearchesGet200Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ApiAppRecurringGamesIdPlaySearchesGet200ResponseFromJSON(json: any): ApiAppRecurringGamesIdPlaySearchesGet200Response {
|
|
52
|
+
return ApiAppRecurringGamesIdPlaySearchesGet200ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApiAppRecurringGamesIdPlaySearchesGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAppRecurringGamesIdPlaySearchesGet200Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PlaySearchDTOFromJSON)),
|
|
62
|
+
'total': json['total'] == null ? undefined : json['total'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiAppRecurringGamesIdPlaySearchesGet200ResponseToJSON(json: any): ApiAppRecurringGamesIdPlaySearchesGet200Response {
|
|
67
|
+
return ApiAppRecurringGamesIdPlaySearchesGet200ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiAppRecurringGamesIdPlaySearchesGet200ResponseToJSONTyped(value?: ApiAppRecurringGamesIdPlaySearchesGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PlaySearchDTOToJSON)),
|
|
78
|
+
'total': value['total'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/models/PlaySearch.ts
CHANGED
|
@@ -204,6 +204,36 @@ export interface PlaySearch {
|
|
|
204
204
|
* @memberof PlaySearch
|
|
205
205
|
*/
|
|
206
206
|
ownerNotifiedDate?: Date | null;
|
|
207
|
+
/**
|
|
208
|
+
* Optional link to team for weekly matches
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof PlaySearch
|
|
211
|
+
*/
|
|
212
|
+
teamId?: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Optional link to recurring game (Partido de la Semana)
|
|
215
|
+
* @type {string}
|
|
216
|
+
* @memberof PlaySearch
|
|
217
|
+
*/
|
|
218
|
+
recurringGameId?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* Private matches visible only to team
|
|
221
|
+
* @type {boolean}
|
|
222
|
+
* @memberof PlaySearch
|
|
223
|
+
*/
|
|
224
|
+
isPrivate?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* When voting was opened (20 min after match)
|
|
227
|
+
* @type {Date}
|
|
228
|
+
* @memberof PlaySearch
|
|
229
|
+
*/
|
|
230
|
+
votingOpenedAt?: Date | null;
|
|
231
|
+
/**
|
|
232
|
+
* When voting was closed (48h after opening)
|
|
233
|
+
* @type {Date}
|
|
234
|
+
* @memberof PlaySearch
|
|
235
|
+
*/
|
|
236
|
+
votingClosedAt?: Date | null;
|
|
207
237
|
}
|
|
208
238
|
|
|
209
239
|
|
|
@@ -263,6 +293,11 @@ export function PlaySearchFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
263
293
|
'alertSentDate': json['alertSentDate'] == null ? undefined : (new Date(json['alertSentDate'])),
|
|
264
294
|
'alertLimitSentDate': json['alertLimitSentDate'] == null ? undefined : (new Date(json['alertLimitSentDate'])),
|
|
265
295
|
'ownerNotifiedDate': json['ownerNotifiedDate'] == null ? undefined : (new Date(json['ownerNotifiedDate'])),
|
|
296
|
+
'teamId': json['teamId'] == null ? undefined : json['teamId'],
|
|
297
|
+
'recurringGameId': json['recurringGameId'] == null ? undefined : json['recurringGameId'],
|
|
298
|
+
'isPrivate': json['isPrivate'] == null ? undefined : json['isPrivate'],
|
|
299
|
+
'votingOpenedAt': json['votingOpenedAt'] == null ? undefined : (new Date(json['votingOpenedAt'])),
|
|
300
|
+
'votingClosedAt': json['votingClosedAt'] == null ? undefined : (new Date(json['votingClosedAt'])),
|
|
266
301
|
};
|
|
267
302
|
}
|
|
268
303
|
|
|
@@ -303,6 +338,11 @@ export function PlaySearchToJSONTyped(value?: PlaySearch | null, ignoreDiscrimin
|
|
|
303
338
|
'alertSentDate': value['alertSentDate'] == null ? undefined : ((value['alertSentDate'] as any).toISOString()),
|
|
304
339
|
'alertLimitSentDate': value['alertLimitSentDate'] == null ? undefined : ((value['alertLimitSentDate'] as any).toISOString()),
|
|
305
340
|
'ownerNotifiedDate': value['ownerNotifiedDate'] == null ? undefined : ((value['ownerNotifiedDate'] as any).toISOString()),
|
|
341
|
+
'teamId': value['teamId'],
|
|
342
|
+
'recurringGameId': value['recurringGameId'],
|
|
343
|
+
'isPrivate': value['isPrivate'],
|
|
344
|
+
'votingOpenedAt': value['votingOpenedAt'] == null ? undefined : ((value['votingOpenedAt'] as any).toISOString()),
|
|
345
|
+
'votingClosedAt': value['votingClosedAt'] == null ? undefined : ((value['votingClosedAt'] as any).toISOString()),
|
|
306
346
|
};
|
|
307
347
|
}
|
|
308
348
|
|
|
@@ -25,6 +25,24 @@ export interface PlayerRatingResponse {
|
|
|
25
25
|
* @memberof PlayerRatingResponse
|
|
26
26
|
*/
|
|
27
27
|
playerId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Player's full name (firstName + lastName)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlayerRatingResponse
|
|
32
|
+
*/
|
|
33
|
+
playerName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Player's avatar URL
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlayerRatingResponse
|
|
38
|
+
*/
|
|
39
|
+
playerAvatar?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Position the player played in this match
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlayerRatingResponse
|
|
44
|
+
*/
|
|
45
|
+
position?: string | null;
|
|
28
46
|
/**
|
|
29
47
|
*
|
|
30
48
|
* @type {number}
|
|
@@ -62,6 +80,7 @@ export interface PlayerRatingResponse {
|
|
|
62
80
|
*/
|
|
63
81
|
export function instanceOfPlayerRatingResponse(value: object): value is PlayerRatingResponse {
|
|
64
82
|
if (!('playerId' in value) || value['playerId'] === undefined) return false;
|
|
83
|
+
if (!('playerName' in value) || value['playerName'] === undefined) return false;
|
|
65
84
|
if (!('averageRating' in value) || value['averageRating'] === undefined) return false;
|
|
66
85
|
if (!('totalRatings' in value) || value['totalRatings'] === undefined) return false;
|
|
67
86
|
if (!('messages' in value) || value['messages'] === undefined) return false;
|
|
@@ -81,6 +100,9 @@ export function PlayerRatingResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
81
100
|
return {
|
|
82
101
|
|
|
83
102
|
'playerId': json['playerId'],
|
|
103
|
+
'playerName': json['playerName'],
|
|
104
|
+
'playerAvatar': json['playerAvatar'] == null ? undefined : json['playerAvatar'],
|
|
105
|
+
'position': json['position'] == null ? undefined : json['position'],
|
|
84
106
|
'averageRating': json['averageRating'],
|
|
85
107
|
'totalRatings': json['totalRatings'],
|
|
86
108
|
'messages': json['messages'],
|
|
@@ -101,6 +123,9 @@ export function PlayerRatingResponseToJSONTyped(value?: PlayerRatingResponse | n
|
|
|
101
123
|
return {
|
|
102
124
|
|
|
103
125
|
'playerId': value['playerId'],
|
|
126
|
+
'playerName': value['playerName'],
|
|
127
|
+
'playerAvatar': value['playerAvatar'],
|
|
128
|
+
'position': value['position'],
|
|
104
129
|
'averageRating': value['averageRating'],
|
|
105
130
|
'totalRatings': value['totalRatings'],
|
|
106
131
|
'messages': value['messages'],
|
|
@@ -37,6 +37,18 @@ export interface PositionResponse {
|
|
|
37
37
|
* @memberof PositionResponse
|
|
38
38
|
*/
|
|
39
39
|
playerId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Player's full name (firstName + lastName)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PositionResponse
|
|
44
|
+
*/
|
|
45
|
+
playerName: string;
|
|
46
|
+
/**
|
|
47
|
+
* Player's avatar URL
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PositionResponse
|
|
50
|
+
*/
|
|
51
|
+
playerAvatar?: string | null;
|
|
40
52
|
/**
|
|
41
53
|
*
|
|
42
54
|
* @type {string}
|
|
@@ -102,6 +114,7 @@ export function instanceOfPositionResponse(value: object): value is PositionResp
|
|
|
102
114
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
115
|
if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
|
|
104
116
|
if (!('playerId' in value) || value['playerId'] === undefined) return false;
|
|
117
|
+
if (!('playerName' in value) || value['playerName'] === undefined) return false;
|
|
105
118
|
if (!('team' in value) || value['team'] === undefined) return false;
|
|
106
119
|
if (!('positionType' in value) || value['positionType'] === undefined) return false;
|
|
107
120
|
if (!('positionNumber' in value) || value['positionNumber'] === undefined) return false;
|
|
@@ -123,6 +136,8 @@ export function PositionResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
123
136
|
'id': json['id'],
|
|
124
137
|
'playSearchId': json['playSearchId'],
|
|
125
138
|
'playerId': json['playerId'],
|
|
139
|
+
'playerName': json['playerName'],
|
|
140
|
+
'playerAvatar': json['playerAvatar'] == null ? undefined : json['playerAvatar'],
|
|
126
141
|
'team': json['team'],
|
|
127
142
|
'positionType': json['positionType'],
|
|
128
143
|
'positionNumber': json['positionNumber'],
|
|
@@ -146,6 +161,8 @@ export function PositionResponseToJSONTyped(value?: PositionResponse | null, ign
|
|
|
146
161
|
'id': value['id'],
|
|
147
162
|
'playSearchId': value['playSearchId'],
|
|
148
163
|
'playerId': value['playerId'],
|
|
164
|
+
'playerName': value['playerName'],
|
|
165
|
+
'playerAvatar': value['playerAvatar'],
|
|
149
166
|
'team': value['team'],
|
|
150
167
|
'positionType': value['positionType'],
|
|
151
168
|
'positionNumber': value['positionNumber'],
|
package/models/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './ApiAdminPlayPricesIdPutRequest';
|
|
|
8
8
|
export * from './ApiAdminPlayPricesPostRequest';
|
|
9
9
|
export * from './ApiAppFalta1NotificationsSendNewPost200Response';
|
|
10
10
|
export * from './ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner';
|
|
11
|
+
export * from './ApiAppRecurringGamesIdPlaySearchesGet200Response';
|
|
11
12
|
export * from './ApiAppTeamsTeamIdEventsGet200Response';
|
|
12
13
|
export * from './ApiAppTeamsTeamIdEventsGet200ResponseEventsInner';
|
|
13
14
|
export * from './ApiAppTeamsTeamIdEventsPostRequest';
|