@jugarhoy/api 1.1.21 → 1.1.23

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.
package/apis/VotingApi.ts CHANGED
@@ -15,15 +15,15 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- ApiAppVotingHasVotedPlaySearchIdGet200Response,
18
+ HasUserVoted200Response,
19
19
  PlayerRatingResponse,
20
20
  SubmitRatingsRequest,
21
21
  VotingStatsResponse,
22
22
  VotingStatusResponse,
23
23
  } from '../models/index';
24
24
  import {
25
- ApiAppVotingHasVotedPlaySearchIdGet200ResponseFromJSON,
26
- ApiAppVotingHasVotedPlaySearchIdGet200ResponseToJSON,
25
+ HasUserVoted200ResponseFromJSON,
26
+ HasUserVoted200ResponseToJSON,
27
27
  PlayerRatingResponseFromJSON,
28
28
  PlayerRatingResponseToJSON,
29
29
  SubmitRatingsRequestFromJSON,
@@ -34,38 +34,38 @@ import {
34
34
  VotingStatusResponseToJSON,
35
35
  } from '../models/index';
36
36
 
37
- export interface ApiAppVotingHasVotedPlaySearchIdGetRequest {
37
+ export interface GetPlayerRatingRequest {
38
38
  playSearchId: string;
39
+ playerId: string;
40
+ teamId: string;
39
41
  }
40
42
 
41
- export interface ApiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGetRequest {
43
+ export interface GetTopRatedPlayersRequest {
42
44
  playSearchId: string;
43
- playerId: string;
44
45
  teamId: string;
46
+ limit?: number;
45
47
  }
46
48
 
47
- export interface ApiAppVotingResultsPlaySearchIdTeamTeamIdGetRequest {
49
+ export interface GetVotingResultsRequest {
48
50
  playSearchId: string;
49
51
  teamId: string;
50
52
  }
51
53
 
52
- export interface ApiAppVotingStatsPlaySearchIdTeamTeamIdGetRequest {
54
+ export interface GetVotingStatsRequest {
53
55
  playSearchId: string;
54
56
  teamId: string;
55
57
  }
56
58
 
57
- export interface ApiAppVotingStatusPlaySearchIdGetRequest {
59
+ export interface GetVotingStatusRequest {
58
60
  playSearchId: string;
59
61
  }
60
62
 
61
- export interface ApiAppVotingSubmitPostRequest {
62
- submitRatingsRequest: SubmitRatingsRequest;
63
+ export interface HasUserVotedRequest {
64
+ playSearchId: string;
63
65
  }
64
66
 
65
- export interface ApiAppVotingTopPlaySearchIdTeamTeamIdGetRequest {
66
- playSearchId: string;
67
- teamId: string;
68
- limit?: number;
67
+ export interface SubmitVotesRequest {
68
+ submitRatingsRequest: SubmitRatingsRequest;
69
69
  }
70
70
 
71
71
  /**
@@ -74,13 +74,27 @@ export interface ApiAppVotingTopPlaySearchIdTeamTeamIdGetRequest {
74
74
  export class VotingApi extends runtime.BaseAPI {
75
75
 
76
76
  /**
77
- * Check if user has submitted ratings for a match
77
+ * Get rating for a specific player in a match
78
78
  */
79
- async apiAppVotingHasVotedPlaySearchIdGetRaw(requestParameters: ApiAppVotingHasVotedPlaySearchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAppVotingHasVotedPlaySearchIdGet200Response>> {
79
+ async getPlayerRatingRaw(requestParameters: GetPlayerRatingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlayerRatingResponse>> {
80
80
  if (requestParameters['playSearchId'] == null) {
81
81
  throw new runtime.RequiredError(
82
82
  'playSearchId',
83
- 'Required parameter "playSearchId" was null or undefined when calling apiAppVotingHasVotedPlaySearchIdGet().'
83
+ 'Required parameter "playSearchId" was null or undefined when calling getPlayerRating().'
84
+ );
85
+ }
86
+
87
+ if (requestParameters['playerId'] == null) {
88
+ throw new runtime.RequiredError(
89
+ 'playerId',
90
+ 'Required parameter "playerId" was null or undefined when calling getPlayerRating().'
91
+ );
92
+ }
93
+
94
+ if (requestParameters['teamId'] == null) {
95
+ throw new runtime.RequiredError(
96
+ 'teamId',
97
+ 'Required parameter "teamId" was null or undefined when calling getPlayerRating().'
84
98
  );
85
99
  }
86
100
 
@@ -97,50 +111,47 @@ export class VotingApi extends runtime.BaseAPI {
97
111
  }
98
112
  }
99
113
  const response = await this.request({
100
- path: `/api/app/voting/has-voted/{playSearchId}`.replace(`{${"playSearchId"}}`, encodeURIComponent(String(requestParameters['playSearchId']))),
114
+ path: `/api/app/voting/player/{playSearchId}/{playerId}/team/{teamId}`.replace(`{${"playSearchId"}}`, encodeURIComponent(String(requestParameters['playSearchId']))).replace(`{${"playerId"}}`, encodeURIComponent(String(requestParameters['playerId']))).replace(`{${"teamId"}}`, encodeURIComponent(String(requestParameters['teamId']))),
101
115
  method: 'GET',
102
116
  headers: headerParameters,
103
117
  query: queryParameters,
104
118
  }, initOverrides);
105
119
 
106
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiAppVotingHasVotedPlaySearchIdGet200ResponseFromJSON(jsonValue));
120
+ return new runtime.JSONApiResponse(response, (jsonValue) => PlayerRatingResponseFromJSON(jsonValue));
107
121
  }
108
122
 
109
123
  /**
110
- * Check if user has submitted ratings for a match
124
+ * Get rating for a specific player in a match
111
125
  */
112
- async apiAppVotingHasVotedPlaySearchIdGet(requestParameters: ApiAppVotingHasVotedPlaySearchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAppVotingHasVotedPlaySearchIdGet200Response> {
113
- const response = await this.apiAppVotingHasVotedPlaySearchIdGetRaw(requestParameters, initOverrides);
126
+ async getPlayerRating(requestParameters: GetPlayerRatingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlayerRatingResponse> {
127
+ const response = await this.getPlayerRatingRaw(requestParameters, initOverrides);
114
128
  return await response.value();
115
129
  }
116
130
 
117
131
  /**
118
- * Get rating for a specific player in a match
132
+ * Get top rated players for a match
119
133
  */
120
- async apiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGetRaw(requestParameters: ApiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlayerRatingResponse>> {
134
+ async getTopRatedPlayersRaw(requestParameters: GetTopRatedPlayersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PlayerRatingResponse>>> {
121
135
  if (requestParameters['playSearchId'] == null) {
122
136
  throw new runtime.RequiredError(
123
137
  'playSearchId',
124
- 'Required parameter "playSearchId" was null or undefined when calling apiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGet().'
125
- );
126
- }
127
-
128
- if (requestParameters['playerId'] == null) {
129
- throw new runtime.RequiredError(
130
- 'playerId',
131
- 'Required parameter "playerId" was null or undefined when calling apiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGet().'
138
+ 'Required parameter "playSearchId" was null or undefined when calling getTopRatedPlayers().'
132
139
  );
133
140
  }
134
141
 
135
142
  if (requestParameters['teamId'] == null) {
136
143
  throw new runtime.RequiredError(
137
144
  'teamId',
138
- 'Required parameter "teamId" was null or undefined when calling apiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGet().'
145
+ 'Required parameter "teamId" was null or undefined when calling getTopRatedPlayers().'
139
146
  );
140
147
  }
141
148
 
142
149
  const queryParameters: any = {};
143
150
 
151
+ if (requestParameters['limit'] != null) {
152
+ queryParameters['limit'] = requestParameters['limit'];
153
+ }
154
+
144
155
  const headerParameters: runtime.HTTPHeaders = {};
145
156
 
146
157
  if (this.configuration && this.configuration.accessToken) {
@@ -152,38 +163,38 @@ export class VotingApi extends runtime.BaseAPI {
152
163
  }
153
164
  }
154
165
  const response = await this.request({
155
- path: `/api/app/voting/player/{playSearchId}/{playerId}/team/{teamId}`.replace(`{${"playSearchId"}}`, encodeURIComponent(String(requestParameters['playSearchId']))).replace(`{${"playerId"}}`, encodeURIComponent(String(requestParameters['playerId']))).replace(`{${"teamId"}}`, encodeURIComponent(String(requestParameters['teamId']))),
166
+ path: `/api/app/voting/top/{playSearchId}/team/{teamId}`.replace(`{${"playSearchId"}}`, encodeURIComponent(String(requestParameters['playSearchId']))).replace(`{${"teamId"}}`, encodeURIComponent(String(requestParameters['teamId']))),
156
167
  method: 'GET',
157
168
  headers: headerParameters,
158
169
  query: queryParameters,
159
170
  }, initOverrides);
160
171
 
161
- return new runtime.JSONApiResponse(response, (jsonValue) => PlayerRatingResponseFromJSON(jsonValue));
172
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PlayerRatingResponseFromJSON));
162
173
  }
163
174
 
164
175
  /**
165
- * Get rating for a specific player in a match
176
+ * Get top rated players for a match
166
177
  */
167
- async apiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGet(requestParameters: ApiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlayerRatingResponse> {
168
- const response = await this.apiAppVotingPlayerPlaySearchIdPlayerIdTeamTeamIdGetRaw(requestParameters, initOverrides);
178
+ async getTopRatedPlayers(requestParameters: GetTopRatedPlayersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PlayerRatingResponse>> {
179
+ const response = await this.getTopRatedPlayersRaw(requestParameters, initOverrides);
169
180
  return await response.value();
170
181
  }
171
182
 
172
183
  /**
173
184
  * Get rating results for a match
174
185
  */
175
- async apiAppVotingResultsPlaySearchIdTeamTeamIdGetRaw(requestParameters: ApiAppVotingResultsPlaySearchIdTeamTeamIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PlayerRatingResponse>>> {
186
+ async getVotingResultsRaw(requestParameters: GetVotingResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PlayerRatingResponse>>> {
176
187
  if (requestParameters['playSearchId'] == null) {
177
188
  throw new runtime.RequiredError(
178
189
  'playSearchId',
179
- 'Required parameter "playSearchId" was null or undefined when calling apiAppVotingResultsPlaySearchIdTeamTeamIdGet().'
190
+ 'Required parameter "playSearchId" was null or undefined when calling getVotingResults().'
180
191
  );
181
192
  }
182
193
 
183
194
  if (requestParameters['teamId'] == null) {
184
195
  throw new runtime.RequiredError(
185
196
  'teamId',
186
- 'Required parameter "teamId" was null or undefined when calling apiAppVotingResultsPlaySearchIdTeamTeamIdGet().'
197
+ 'Required parameter "teamId" was null or undefined when calling getVotingResults().'
187
198
  );
188
199
  }
189
200
 
@@ -212,26 +223,26 @@ export class VotingApi extends runtime.BaseAPI {
212
223
  /**
213
224
  * Get rating results for a match
214
225
  */
215
- async apiAppVotingResultsPlaySearchIdTeamTeamIdGet(requestParameters: ApiAppVotingResultsPlaySearchIdTeamTeamIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PlayerRatingResponse>> {
216
- const response = await this.apiAppVotingResultsPlaySearchIdTeamTeamIdGetRaw(requestParameters, initOverrides);
226
+ async getVotingResults(requestParameters: GetVotingResultsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PlayerRatingResponse>> {
227
+ const response = await this.getVotingResultsRaw(requestParameters, initOverrides);
217
228
  return await response.value();
218
229
  }
219
230
 
220
231
  /**
221
232
  * Get voting statistics for a match
222
233
  */
223
- async apiAppVotingStatsPlaySearchIdTeamTeamIdGetRaw(requestParameters: ApiAppVotingStatsPlaySearchIdTeamTeamIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VotingStatsResponse>> {
234
+ async getVotingStatsRaw(requestParameters: GetVotingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VotingStatsResponse>> {
224
235
  if (requestParameters['playSearchId'] == null) {
225
236
  throw new runtime.RequiredError(
226
237
  'playSearchId',
227
- 'Required parameter "playSearchId" was null or undefined when calling apiAppVotingStatsPlaySearchIdTeamTeamIdGet().'
238
+ 'Required parameter "playSearchId" was null or undefined when calling getVotingStats().'
228
239
  );
229
240
  }
230
241
 
231
242
  if (requestParameters['teamId'] == null) {
232
243
  throw new runtime.RequiredError(
233
244
  'teamId',
234
- 'Required parameter "teamId" was null or undefined when calling apiAppVotingStatsPlaySearchIdTeamTeamIdGet().'
245
+ 'Required parameter "teamId" was null or undefined when calling getVotingStats().'
235
246
  );
236
247
  }
237
248
 
@@ -260,19 +271,19 @@ export class VotingApi extends runtime.BaseAPI {
260
271
  /**
261
272
  * Get voting statistics for a match
262
273
  */
263
- async apiAppVotingStatsPlaySearchIdTeamTeamIdGet(requestParameters: ApiAppVotingStatsPlaySearchIdTeamTeamIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VotingStatsResponse> {
264
- const response = await this.apiAppVotingStatsPlaySearchIdTeamTeamIdGetRaw(requestParameters, initOverrides);
274
+ async getVotingStats(requestParameters: GetVotingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VotingStatsResponse> {
275
+ const response = await this.getVotingStatsRaw(requestParameters, initOverrides);
265
276
  return await response.value();
266
277
  }
267
278
 
268
279
  /**
269
280
  * Check if voting is currently open for a match
270
281
  */
271
- async apiAppVotingStatusPlaySearchIdGetRaw(requestParameters: ApiAppVotingStatusPlaySearchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VotingStatusResponse>> {
282
+ async getVotingStatusRaw(requestParameters: GetVotingStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VotingStatusResponse>> {
272
283
  if (requestParameters['playSearchId'] == null) {
273
284
  throw new runtime.RequiredError(
274
285
  'playSearchId',
275
- 'Required parameter "playSearchId" was null or undefined when calling apiAppVotingStatusPlaySearchIdGet().'
286
+ 'Required parameter "playSearchId" was null or undefined when calling getVotingStatus().'
276
287
  );
277
288
  }
278
289
 
@@ -301,19 +312,19 @@ export class VotingApi extends runtime.BaseAPI {
301
312
  /**
302
313
  * Check if voting is currently open for a match
303
314
  */
304
- async apiAppVotingStatusPlaySearchIdGet(requestParameters: ApiAppVotingStatusPlaySearchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VotingStatusResponse> {
305
- const response = await this.apiAppVotingStatusPlaySearchIdGetRaw(requestParameters, initOverrides);
315
+ async getVotingStatus(requestParameters: GetVotingStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VotingStatusResponse> {
316
+ const response = await this.getVotingStatusRaw(requestParameters, initOverrides);
306
317
  return await response.value();
307
318
  }
308
319
 
309
320
  /**
310
- * Submit ratings for players in a match
321
+ * Check if user has submitted ratings for a match
311
322
  */
312
- async apiAppVotingSubmitPostRaw(requestParameters: ApiAppVotingSubmitPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
313
- if (requestParameters['submitRatingsRequest'] == null) {
323
+ async hasUserVotedRaw(requestParameters: HasUserVotedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<HasUserVoted200Response>> {
324
+ if (requestParameters['playSearchId'] == null) {
314
325
  throw new runtime.RequiredError(
315
- 'submitRatingsRequest',
316
- 'Required parameter "submitRatingsRequest" was null or undefined when calling apiAppVotingSubmitPost().'
326
+ 'playSearchId',
327
+ 'Required parameter "playSearchId" was null or undefined when calling hasUserVoted().'
317
328
  );
318
329
  }
319
330
 
@@ -321,8 +332,6 @@ export class VotingApi extends runtime.BaseAPI {
321
332
 
322
333
  const headerParameters: runtime.HTTPHeaders = {};
323
334
 
324
- headerParameters['Content-Type'] = 'application/json';
325
-
326
335
  if (this.configuration && this.configuration.accessToken) {
327
336
  const token = this.configuration.accessToken;
328
337
  const tokenString = await token("bearerAuth", []);
@@ -332,49 +341,40 @@ export class VotingApi extends runtime.BaseAPI {
332
341
  }
333
342
  }
334
343
  const response = await this.request({
335
- path: `/api/app/voting/submit`,
336
- method: 'POST',
344
+ path: `/api/app/voting/has-voted/{playSearchId}`.replace(`{${"playSearchId"}}`, encodeURIComponent(String(requestParameters['playSearchId']))),
345
+ method: 'GET',
337
346
  headers: headerParameters,
338
347
  query: queryParameters,
339
- body: SubmitRatingsRequestToJSON(requestParameters['submitRatingsRequest']),
340
348
  }, initOverrides);
341
349
 
342
- return new runtime.VoidApiResponse(response);
350
+ return new runtime.JSONApiResponse(response, (jsonValue) => HasUserVoted200ResponseFromJSON(jsonValue));
343
351
  }
344
352
 
345
353
  /**
346
- * Submit ratings for players in a match
354
+ * Check if user has submitted ratings for a match
347
355
  */
348
- async apiAppVotingSubmitPost(requestParameters: ApiAppVotingSubmitPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
349
- await this.apiAppVotingSubmitPostRaw(requestParameters, initOverrides);
356
+ async hasUserVoted(requestParameters: HasUserVotedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<HasUserVoted200Response> {
357
+ const response = await this.hasUserVotedRaw(requestParameters, initOverrides);
358
+ return await response.value();
350
359
  }
351
360
 
352
361
  /**
353
- * Get top rated players for a match
362
+ * Submit ratings for players in a match
354
363
  */
355
- async apiAppVotingTopPlaySearchIdTeamTeamIdGetRaw(requestParameters: ApiAppVotingTopPlaySearchIdTeamTeamIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PlayerRatingResponse>>> {
356
- if (requestParameters['playSearchId'] == null) {
357
- throw new runtime.RequiredError(
358
- 'playSearchId',
359
- 'Required parameter "playSearchId" was null or undefined when calling apiAppVotingTopPlaySearchIdTeamTeamIdGet().'
360
- );
361
- }
362
-
363
- if (requestParameters['teamId'] == null) {
364
+ async submitVotesRaw(requestParameters: SubmitVotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
365
+ if (requestParameters['submitRatingsRequest'] == null) {
364
366
  throw new runtime.RequiredError(
365
- 'teamId',
366
- 'Required parameter "teamId" was null or undefined when calling apiAppVotingTopPlaySearchIdTeamTeamIdGet().'
367
+ 'submitRatingsRequest',
368
+ 'Required parameter "submitRatingsRequest" was null or undefined when calling submitVotes().'
367
369
  );
368
370
  }
369
371
 
370
372
  const queryParameters: any = {};
371
373
 
372
- if (requestParameters['limit'] != null) {
373
- queryParameters['limit'] = requestParameters['limit'];
374
- }
375
-
376
374
  const headerParameters: runtime.HTTPHeaders = {};
377
375
 
376
+ headerParameters['Content-Type'] = 'application/json';
377
+
378
378
  if (this.configuration && this.configuration.accessToken) {
379
379
  const token = this.configuration.accessToken;
380
380
  const tokenString = await token("bearerAuth", []);
@@ -384,21 +384,21 @@ export class VotingApi extends runtime.BaseAPI {
384
384
  }
385
385
  }
386
386
  const response = await this.request({
387
- path: `/api/app/voting/top/{playSearchId}/team/{teamId}`.replace(`{${"playSearchId"}}`, encodeURIComponent(String(requestParameters['playSearchId']))).replace(`{${"teamId"}}`, encodeURIComponent(String(requestParameters['teamId']))),
388
- method: 'GET',
387
+ path: `/api/app/voting/submit`,
388
+ method: 'POST',
389
389
  headers: headerParameters,
390
390
  query: queryParameters,
391
+ body: SubmitRatingsRequestToJSON(requestParameters['submitRatingsRequest']),
391
392
  }, initOverrides);
392
393
 
393
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PlayerRatingResponseFromJSON));
394
+ return new runtime.VoidApiResponse(response);
394
395
  }
395
396
 
396
397
  /**
397
- * Get top rated players for a match
398
+ * Submit ratings for players in a match
398
399
  */
399
- async apiAppVotingTopPlaySearchIdTeamTeamIdGet(requestParameters: ApiAppVotingTopPlaySearchIdTeamTeamIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PlayerRatingResponse>> {
400
- const response = await this.apiAppVotingTopPlaySearchIdTeamTeamIdGetRaw(requestParameters, initOverrides);
401
- return await response.value();
400
+ async submitVotes(requestParameters: SubmitVotesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
401
+ await this.submitVotesRaw(requestParameters, initOverrides);
402
402
  }
403
403
 
404
404
  }
@@ -0,0 +1,65 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface HasUserVoted200Response
20
+ */
21
+ export interface HasUserVoted200Response {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof HasUserVoted200Response
26
+ */
27
+ hasVoted?: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the HasUserVoted200Response interface.
32
+ */
33
+ export function instanceOfHasUserVoted200Response(value: object): value is HasUserVoted200Response {
34
+ return true;
35
+ }
36
+
37
+ export function HasUserVoted200ResponseFromJSON(json: any): HasUserVoted200Response {
38
+ return HasUserVoted200ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function HasUserVoted200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HasUserVoted200Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'hasVoted': json['hasVoted'] == null ? undefined : json['hasVoted'],
48
+ };
49
+ }
50
+
51
+ export function HasUserVoted200ResponseToJSON(json: any): HasUserVoted200Response {
52
+ return HasUserVoted200ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function HasUserVoted200ResponseToJSONTyped(value?: HasUserVoted200Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'hasVoted': value['hasVoted'],
63
+ };
64
+ }
65
+
@@ -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 ListPlaySearchesByRecurringGame200Response
28
+ */
29
+ export interface ListPlaySearchesByRecurringGame200Response {
30
+ /**
31
+ *
32
+ * @type {Array<PlaySearchDTO>}
33
+ * @memberof ListPlaySearchesByRecurringGame200Response
34
+ */
35
+ data?: Array<PlaySearchDTO>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ListPlaySearchesByRecurringGame200Response
40
+ */
41
+ total?: number;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ListPlaySearchesByRecurringGame200Response interface.
46
+ */
47
+ export function instanceOfListPlaySearchesByRecurringGame200Response(value: object): value is ListPlaySearchesByRecurringGame200Response {
48
+ return true;
49
+ }
50
+
51
+ export function ListPlaySearchesByRecurringGame200ResponseFromJSON(json: any): ListPlaySearchesByRecurringGame200Response {
52
+ return ListPlaySearchesByRecurringGame200ResponseFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function ListPlaySearchesByRecurringGame200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListPlaySearchesByRecurringGame200Response {
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 ListPlaySearchesByRecurringGame200ResponseToJSON(json: any): ListPlaySearchesByRecurringGame200Response {
67
+ return ListPlaySearchesByRecurringGame200ResponseToJSONTyped(json, false);
68
+ }
69
+
70
+ export function ListPlaySearchesByRecurringGame200ResponseToJSONTyped(value?: ListPlaySearchesByRecurringGame200Response | 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/index.ts CHANGED
@@ -11,8 +11,6 @@ export * from './ApiAdminPlayPricesIdPutRequest';
11
11
  export * from './ApiAdminPlayPricesPostRequest';
12
12
  export * from './ApiAppFalta1NotificationsSendNewPost200Response';
13
13
  export * from './ApiAppFalta1NotificationsSendNewPost200ResponseStatsInner';
14
- export * from './ApiAppRecurringGamesIdPlaySearchesGet200Response';
15
- export * from './ApiAppVotingHasVotedPlaySearchIdGet200Response';
16
14
  export * from './ApproveClubResponse';
17
15
  export * from './ApproveClubResponseResult';
18
16
  export * from './AssignPositionsRequest';
@@ -126,6 +124,7 @@ export * from './GetTeamFeedSummary200Response';
126
124
  export * from './GroupedPositionsResponse';
127
125
  export * from './GroupedPositionsResponseHome';
128
126
  export * from './HasDoorlock200Response';
127
+ export * from './HasUserVoted200Response';
129
128
  export * from './HourShiftDetail';
130
129
  export * from './InitiateReservationParams';
131
130
  export * from './InvitationListItem';
@@ -136,6 +135,7 @@ export * from './LightControlResponse';
136
135
  export * from './LinkPaymentToBillRequest';
137
136
  export * from './ListAllClubsResponse';
138
137
  export * from './ListAllClubsResponseResult';
138
+ export * from './ListPlaySearchesByRecurringGame200Response';
139
139
  export * from './Location';
140
140
  export * from './LocationDto';
141
141
  export * from './ManageLightSwitch200Response';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jugarhoy/api",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "description": "TypeScript SDK for Jugar Hoy API",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
@@ -1,81 +0,0 @@
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
-