@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/AppPlayRegistrationApi.ts +14 -14
- package/apis/AppPlaySearchApi.ts +135 -135
- package/apis/PositionsApi.ts +24 -24
- package/apis/RecurringGamesApi.ts +111 -111
- package/apis/VotingApi.ts +90 -90
- package/models/HasUserVoted200Response.ts +65 -0
- package/models/ListPlaySearchesByRecurringGame200Response.ts +81 -0
- package/models/index.ts +2 -2
- package/package.json +1 -1
- package/models/ApiAppRecurringGamesIdPlaySearchesGet200Response.ts +0 -81
- package/models/ApiAppVotingHasVotedPlaySearchIdGet200Response.ts +0 -65
|
@@ -28,17 +28,17 @@ import {
|
|
|
28
28
|
RegistrationStatusToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface CancelPlayRegistrationRequest {
|
|
32
32
|
id: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export interface
|
|
35
|
+
export interface GetMyPlayRegistrationsRequest {
|
|
36
36
|
status?: RegistrationStatus;
|
|
37
37
|
page?: number;
|
|
38
38
|
size?: number;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export interface
|
|
41
|
+
export interface RegisterForPlaySearchRequest {
|
|
42
42
|
playSearchId: string;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -50,11 +50,11 @@ export class AppPlayRegistrationApi extends runtime.BaseAPI {
|
|
|
50
50
|
/**
|
|
51
51
|
* Cancel registration
|
|
52
52
|
*/
|
|
53
|
-
async
|
|
53
|
+
async cancelPlayRegistrationRaw(requestParameters: CancelPlayRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
54
54
|
if (requestParameters['id'] == null) {
|
|
55
55
|
throw new runtime.RequiredError(
|
|
56
56
|
'id',
|
|
57
|
-
'Required parameter "id" was null or undefined when calling
|
|
57
|
+
'Required parameter "id" was null or undefined when calling cancelPlayRegistration().'
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -83,14 +83,14 @@ export class AppPlayRegistrationApi extends runtime.BaseAPI {
|
|
|
83
83
|
/**
|
|
84
84
|
* Cancel registration
|
|
85
85
|
*/
|
|
86
|
-
async
|
|
87
|
-
await this.
|
|
86
|
+
async cancelPlayRegistration(requestParameters: CancelPlayRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
87
|
+
await this.cancelPlayRegistrationRaw(requestParameters, initOverrides);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
91
|
* Get user\'s registrations
|
|
92
92
|
*/
|
|
93
|
-
async
|
|
93
|
+
async getMyPlayRegistrationsRaw(requestParameters: GetMyPlayRegistrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlayRegistrationListResponse>> {
|
|
94
94
|
const queryParameters: any = {};
|
|
95
95
|
|
|
96
96
|
if (requestParameters['status'] != null) {
|
|
@@ -128,19 +128,19 @@ export class AppPlayRegistrationApi extends runtime.BaseAPI {
|
|
|
128
128
|
/**
|
|
129
129
|
* Get user\'s registrations
|
|
130
130
|
*/
|
|
131
|
-
async
|
|
132
|
-
const response = await this.
|
|
131
|
+
async getMyPlayRegistrations(requestParameters: GetMyPlayRegistrationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlayRegistrationListResponse> {
|
|
132
|
+
const response = await this.getMyPlayRegistrationsRaw(requestParameters, initOverrides);
|
|
133
133
|
return await response.value();
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* Register for a play search
|
|
138
138
|
*/
|
|
139
|
-
async
|
|
139
|
+
async registerForPlaySearchRaw(requestParameters: RegisterForPlaySearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlayRegistrationDTO>> {
|
|
140
140
|
if (requestParameters['playSearchId'] == null) {
|
|
141
141
|
throw new runtime.RequiredError(
|
|
142
142
|
'playSearchId',
|
|
143
|
-
'Required parameter "playSearchId" was null or undefined when calling
|
|
143
|
+
'Required parameter "playSearchId" was null or undefined when calling registerForPlaySearch().'
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -169,8 +169,8 @@ export class AppPlayRegistrationApi extends runtime.BaseAPI {
|
|
|
169
169
|
/**
|
|
170
170
|
* Register for a play search
|
|
171
171
|
*/
|
|
172
|
-
async
|
|
173
|
-
const response = await this.
|
|
172
|
+
async registerForPlaySearch(requestParameters: RegisterForPlaySearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlayRegistrationDTO> {
|
|
173
|
+
const response = await this.registerForPlaySearchRaw(requestParameters, initOverrides);
|
|
174
174
|
return await response.value();
|
|
175
175
|
}
|
|
176
176
|
|
package/apis/AppPlaySearchApi.ts
CHANGED
|
@@ -40,39 +40,39 @@ import {
|
|
|
40
40
|
SportToJSON,
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
|
-
export interface
|
|
44
|
-
sport: Sport;
|
|
45
|
-
type?: PlaySearchType;
|
|
46
|
-
latitude?: number;
|
|
47
|
-
longitude?: number;
|
|
48
|
-
radiusMeters?: number;
|
|
49
|
-
gender?: string;
|
|
50
|
-
category?: string;
|
|
51
|
-
status?: string;
|
|
52
|
-
page?: number;
|
|
53
|
-
size?: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ApiAppPlaySearchesIdCancelDeleteRequest {
|
|
43
|
+
export interface CancelPlaySearchRequest {
|
|
57
44
|
id: string;
|
|
58
45
|
}
|
|
59
46
|
|
|
60
|
-
export interface
|
|
47
|
+
export interface ConfirmPlaySearchRequest {
|
|
61
48
|
id: string;
|
|
62
49
|
}
|
|
63
50
|
|
|
64
|
-
export interface
|
|
65
|
-
|
|
51
|
+
export interface CreatePlaySearchOperationRequest {
|
|
52
|
+
createPlaySearchRequest: CreatePlaySearchRequest;
|
|
66
53
|
}
|
|
67
54
|
|
|
68
|
-
export interface
|
|
55
|
+
export interface GetMyPlaySearchesRequest {
|
|
69
56
|
status?: PlaySearchStatus;
|
|
70
57
|
page?: number;
|
|
71
58
|
size?: number;
|
|
72
59
|
}
|
|
73
60
|
|
|
74
|
-
export interface
|
|
75
|
-
|
|
61
|
+
export interface GetPlaySearchByIdRequest {
|
|
62
|
+
id: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface ListPlaySearchesRequest {
|
|
66
|
+
sport: Sport;
|
|
67
|
+
type?: PlaySearchType;
|
|
68
|
+
latitude?: number;
|
|
69
|
+
longitude?: number;
|
|
70
|
+
radiusMeters?: number;
|
|
71
|
+
gender?: string;
|
|
72
|
+
category?: string;
|
|
73
|
+
status?: string;
|
|
74
|
+
page?: number;
|
|
75
|
+
size?: number;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/**
|
|
@@ -80,95 +80,14 @@ export interface ApiAppPlaySearchesPostRequest {
|
|
|
80
80
|
*/
|
|
81
81
|
export class AppPlaySearchApi extends runtime.BaseAPI {
|
|
82
82
|
|
|
83
|
-
/**
|
|
84
|
-
* List play searches with filters (supports location-based search)
|
|
85
|
-
*/
|
|
86
|
-
async apiAppPlaySearchesGetRaw(requestParameters: ApiAppPlaySearchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlaySearchListResponse>> {
|
|
87
|
-
if (requestParameters['sport'] == null) {
|
|
88
|
-
throw new runtime.RequiredError(
|
|
89
|
-
'sport',
|
|
90
|
-
'Required parameter "sport" was null or undefined when calling apiAppPlaySearchesGet().'
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const queryParameters: any = {};
|
|
95
|
-
|
|
96
|
-
if (requestParameters['sport'] != null) {
|
|
97
|
-
queryParameters['sport'] = requestParameters['sport'];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (requestParameters['type'] != null) {
|
|
101
|
-
queryParameters['type'] = requestParameters['type'];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (requestParameters['latitude'] != null) {
|
|
105
|
-
queryParameters['latitude'] = requestParameters['latitude'];
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (requestParameters['longitude'] != null) {
|
|
109
|
-
queryParameters['longitude'] = requestParameters['longitude'];
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (requestParameters['radiusMeters'] != null) {
|
|
113
|
-
queryParameters['radiusMeters'] = requestParameters['radiusMeters'];
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
if (requestParameters['gender'] != null) {
|
|
117
|
-
queryParameters['gender'] = requestParameters['gender'];
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (requestParameters['category'] != null) {
|
|
121
|
-
queryParameters['category'] = requestParameters['category'];
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (requestParameters['status'] != null) {
|
|
125
|
-
queryParameters['status'] = requestParameters['status'];
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
if (requestParameters['page'] != null) {
|
|
129
|
-
queryParameters['page'] = requestParameters['page'];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
if (requestParameters['size'] != null) {
|
|
133
|
-
queryParameters['size'] = requestParameters['size'];
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
137
|
-
|
|
138
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
139
|
-
const token = this.configuration.accessToken;
|
|
140
|
-
const tokenString = await token("bearerAuth", []);
|
|
141
|
-
|
|
142
|
-
if (tokenString) {
|
|
143
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
const response = await this.request({
|
|
147
|
-
path: `/api/app/play-searches`,
|
|
148
|
-
method: 'GET',
|
|
149
|
-
headers: headerParameters,
|
|
150
|
-
query: queryParameters,
|
|
151
|
-
}, initOverrides);
|
|
152
|
-
|
|
153
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PlaySearchListResponseFromJSON(jsonValue));
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* List play searches with filters (supports location-based search)
|
|
158
|
-
*/
|
|
159
|
-
async apiAppPlaySearchesGet(requestParameters: ApiAppPlaySearchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchListResponse> {
|
|
160
|
-
const response = await this.apiAppPlaySearchesGetRaw(requestParameters, initOverrides);
|
|
161
|
-
return await response.value();
|
|
162
|
-
}
|
|
163
|
-
|
|
164
83
|
/**
|
|
165
84
|
* Cancel own play search
|
|
166
85
|
*/
|
|
167
|
-
async
|
|
86
|
+
async cancelPlaySearchRaw(requestParameters: CancelPlaySearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
168
87
|
if (requestParameters['id'] == null) {
|
|
169
88
|
throw new runtime.RequiredError(
|
|
170
89
|
'id',
|
|
171
|
-
'Required parameter "id" was null or undefined when calling
|
|
90
|
+
'Required parameter "id" was null or undefined when calling cancelPlaySearch().'
|
|
172
91
|
);
|
|
173
92
|
}
|
|
174
93
|
|
|
@@ -197,18 +116,18 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
|
|
|
197
116
|
/**
|
|
198
117
|
* Cancel own play search
|
|
199
118
|
*/
|
|
200
|
-
async
|
|
201
|
-
await this.
|
|
119
|
+
async cancelPlaySearch(requestParameters: CancelPlaySearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
120
|
+
await this.cancelPlaySearchRaw(requestParameters, initOverrides);
|
|
202
121
|
}
|
|
203
122
|
|
|
204
123
|
/**
|
|
205
124
|
* Confirm a FILLED play search and notify all registrants
|
|
206
125
|
*/
|
|
207
|
-
async
|
|
126
|
+
async confirmPlaySearchRaw(requestParameters: ConfirmPlaySearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
208
127
|
if (requestParameters['id'] == null) {
|
|
209
128
|
throw new runtime.RequiredError(
|
|
210
129
|
'id',
|
|
211
|
-
'Required parameter "id" was null or undefined when calling
|
|
130
|
+
'Required parameter "id" was null or undefined when calling confirmPlaySearch().'
|
|
212
131
|
);
|
|
213
132
|
}
|
|
214
133
|
|
|
@@ -237,18 +156,18 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
|
|
|
237
156
|
/**
|
|
238
157
|
* Confirm a FILLED play search and notify all registrants
|
|
239
158
|
*/
|
|
240
|
-
async
|
|
241
|
-
await this.
|
|
159
|
+
async confirmPlaySearch(requestParameters: ConfirmPlaySearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
160
|
+
await this.confirmPlaySearchRaw(requestParameters, initOverrides);
|
|
242
161
|
}
|
|
243
162
|
|
|
244
163
|
/**
|
|
245
|
-
*
|
|
164
|
+
* Create a new play search
|
|
246
165
|
*/
|
|
247
|
-
async
|
|
248
|
-
if (requestParameters['
|
|
166
|
+
async createPlaySearchRaw(requestParameters: CreatePlaySearchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlaySearchDTO>> {
|
|
167
|
+
if (requestParameters['createPlaySearchRequest'] == null) {
|
|
249
168
|
throw new runtime.RequiredError(
|
|
250
|
-
'
|
|
251
|
-
'Required parameter "
|
|
169
|
+
'createPlaySearchRequest',
|
|
170
|
+
'Required parameter "createPlaySearchRequest" was null or undefined when calling createPlaySearch().'
|
|
252
171
|
);
|
|
253
172
|
}
|
|
254
173
|
|
|
@@ -256,6 +175,8 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
|
|
|
256
175
|
|
|
257
176
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
258
177
|
|
|
178
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
179
|
+
|
|
259
180
|
if (this.configuration && this.configuration.accessToken) {
|
|
260
181
|
const token = this.configuration.accessToken;
|
|
261
182
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -265,27 +186,28 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
|
|
|
265
186
|
}
|
|
266
187
|
}
|
|
267
188
|
const response = await this.request({
|
|
268
|
-
path: `/api/app/play-searches
|
|
269
|
-
method: '
|
|
189
|
+
path: `/api/app/play-searches`,
|
|
190
|
+
method: 'POST',
|
|
270
191
|
headers: headerParameters,
|
|
271
192
|
query: queryParameters,
|
|
193
|
+
body: CreatePlaySearchRequestToJSON(requestParameters['createPlaySearchRequest']),
|
|
272
194
|
}, initOverrides);
|
|
273
195
|
|
|
274
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlaySearchDTOFromJSON(jsonValue));
|
|
275
197
|
}
|
|
276
198
|
|
|
277
199
|
/**
|
|
278
|
-
*
|
|
200
|
+
* Create a new play search
|
|
279
201
|
*/
|
|
280
|
-
async
|
|
281
|
-
const response = await this.
|
|
202
|
+
async createPlaySearch(requestParameters: CreatePlaySearchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchDTO> {
|
|
203
|
+
const response = await this.createPlaySearchRaw(requestParameters, initOverrides);
|
|
282
204
|
return await response.value();
|
|
283
205
|
}
|
|
284
206
|
|
|
285
207
|
/**
|
|
286
208
|
* Get user\'s own play searches
|
|
287
209
|
*/
|
|
288
|
-
async
|
|
210
|
+
async getMyPlaySearchesRaw(requestParameters: GetMyPlaySearchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlaySearchListResponse>> {
|
|
289
211
|
const queryParameters: any = {};
|
|
290
212
|
|
|
291
213
|
if (requestParameters['status'] != null) {
|
|
@@ -323,19 +245,19 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
|
|
|
323
245
|
/**
|
|
324
246
|
* Get user\'s own play searches
|
|
325
247
|
*/
|
|
326
|
-
async
|
|
327
|
-
const response = await this.
|
|
248
|
+
async getMyPlaySearches(requestParameters: GetMyPlaySearchesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchListResponse> {
|
|
249
|
+
const response = await this.getMyPlaySearchesRaw(requestParameters, initOverrides);
|
|
328
250
|
return await response.value();
|
|
329
251
|
}
|
|
330
252
|
|
|
331
253
|
/**
|
|
332
|
-
*
|
|
254
|
+
* Get play search details with registrations
|
|
333
255
|
*/
|
|
334
|
-
async
|
|
335
|
-
if (requestParameters['
|
|
256
|
+
async getPlaySearchByIdRaw(requestParameters: GetPlaySearchByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlaySearchDetailDTO>> {
|
|
257
|
+
if (requestParameters['id'] == null) {
|
|
336
258
|
throw new runtime.RequiredError(
|
|
337
|
-
'
|
|
338
|
-
'Required parameter "
|
|
259
|
+
'id',
|
|
260
|
+
'Required parameter "id" was null or undefined when calling getPlaySearchById().'
|
|
339
261
|
);
|
|
340
262
|
}
|
|
341
263
|
|
|
@@ -343,7 +265,86 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
|
|
|
343
265
|
|
|
344
266
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
345
267
|
|
|
346
|
-
|
|
268
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
269
|
+
const token = this.configuration.accessToken;
|
|
270
|
+
const tokenString = await token("bearerAuth", []);
|
|
271
|
+
|
|
272
|
+
if (tokenString) {
|
|
273
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
const response = await this.request({
|
|
277
|
+
path: `/api/app/play-searches/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
278
|
+
method: 'GET',
|
|
279
|
+
headers: headerParameters,
|
|
280
|
+
query: queryParameters,
|
|
281
|
+
}, initOverrides);
|
|
282
|
+
|
|
283
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlaySearchDetailDTOFromJSON(jsonValue));
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Get play search details with registrations
|
|
288
|
+
*/
|
|
289
|
+
async getPlaySearchById(requestParameters: GetPlaySearchByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchDetailDTO> {
|
|
290
|
+
const response = await this.getPlaySearchByIdRaw(requestParameters, initOverrides);
|
|
291
|
+
return await response.value();
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* List play searches with filters
|
|
296
|
+
*/
|
|
297
|
+
async listPlaySearchesRaw(requestParameters: ListPlaySearchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlaySearchListResponse>> {
|
|
298
|
+
if (requestParameters['sport'] == null) {
|
|
299
|
+
throw new runtime.RequiredError(
|
|
300
|
+
'sport',
|
|
301
|
+
'Required parameter "sport" was null or undefined when calling listPlaySearches().'
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
const queryParameters: any = {};
|
|
306
|
+
|
|
307
|
+
if (requestParameters['sport'] != null) {
|
|
308
|
+
queryParameters['sport'] = requestParameters['sport'];
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (requestParameters['type'] != null) {
|
|
312
|
+
queryParameters['type'] = requestParameters['type'];
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if (requestParameters['latitude'] != null) {
|
|
316
|
+
queryParameters['latitude'] = requestParameters['latitude'];
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (requestParameters['longitude'] != null) {
|
|
320
|
+
queryParameters['longitude'] = requestParameters['longitude'];
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (requestParameters['radiusMeters'] != null) {
|
|
324
|
+
queryParameters['radiusMeters'] = requestParameters['radiusMeters'];
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
if (requestParameters['gender'] != null) {
|
|
328
|
+
queryParameters['gender'] = requestParameters['gender'];
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
if (requestParameters['category'] != null) {
|
|
332
|
+
queryParameters['category'] = requestParameters['category'];
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
if (requestParameters['status'] != null) {
|
|
336
|
+
queryParameters['status'] = requestParameters['status'];
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (requestParameters['page'] != null) {
|
|
340
|
+
queryParameters['page'] = requestParameters['page'];
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if (requestParameters['size'] != null) {
|
|
344
|
+
queryParameters['size'] = requestParameters['size'];
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
347
348
|
|
|
348
349
|
if (this.configuration && this.configuration.accessToken) {
|
|
349
350
|
const token = this.configuration.accessToken;
|
|
@@ -355,20 +356,19 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
|
|
|
355
356
|
}
|
|
356
357
|
const response = await this.request({
|
|
357
358
|
path: `/api/app/play-searches`,
|
|
358
|
-
method: '
|
|
359
|
+
method: 'GET',
|
|
359
360
|
headers: headerParameters,
|
|
360
361
|
query: queryParameters,
|
|
361
|
-
body: CreatePlaySearchRequestToJSON(requestParameters['createPlaySearchRequest']),
|
|
362
362
|
}, initOverrides);
|
|
363
363
|
|
|
364
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
364
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PlaySearchListResponseFromJSON(jsonValue));
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
|
-
*
|
|
368
|
+
* List play searches with filters
|
|
369
369
|
*/
|
|
370
|
-
async
|
|
371
|
-
const response = await this.
|
|
370
|
+
async listPlaySearches(requestParameters: ListPlaySearchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchListResponse> {
|
|
371
|
+
const response = await this.listPlaySearchesRaw(requestParameters, initOverrides);
|
|
372
372
|
return await response.value();
|
|
373
373
|
}
|
|
374
374
|
|
package/apis/PositionsApi.ts
CHANGED
|
@@ -28,20 +28,20 @@ import {
|
|
|
28
28
|
GroupedPositionsResponseToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface AssignPositionsOperationRequest {
|
|
32
32
|
assignPositionsRequest: AssignPositionsRequest;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export interface
|
|
35
|
+
export interface AutoAssignPositionsOperationRequest {
|
|
36
36
|
autoAssignPositionsRequest: AutoAssignPositionsRequest;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export interface
|
|
39
|
+
export interface ClearMatchPositionsRequest {
|
|
40
40
|
playSearchId: string;
|
|
41
41
|
teamId: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export interface
|
|
44
|
+
export interface GetMatchPositionsRequest {
|
|
45
45
|
playSearchId: string;
|
|
46
46
|
teamId: string;
|
|
47
47
|
}
|
|
@@ -54,11 +54,11 @@ export class PositionsApi extends runtime.BaseAPI {
|
|
|
54
54
|
/**
|
|
55
55
|
* Assign positions for a match
|
|
56
56
|
*/
|
|
57
|
-
async
|
|
57
|
+
async assignPositionsRaw(requestParameters: AssignPositionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
58
58
|
if (requestParameters['assignPositionsRequest'] == null) {
|
|
59
59
|
throw new runtime.RequiredError(
|
|
60
60
|
'assignPositionsRequest',
|
|
61
|
-
'Required parameter "assignPositionsRequest" was null or undefined when calling
|
|
61
|
+
'Required parameter "assignPositionsRequest" was null or undefined when calling assignPositions().'
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -90,18 +90,18 @@ export class PositionsApi extends runtime.BaseAPI {
|
|
|
90
90
|
/**
|
|
91
91
|
* Assign positions for a match
|
|
92
92
|
*/
|
|
93
|
-
async
|
|
94
|
-
await this.
|
|
93
|
+
async assignPositions(requestParameters: AssignPositionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
94
|
+
await this.assignPositionsRaw(requestParameters, initOverrides);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Auto-assign positions based on sport defaults
|
|
99
99
|
*/
|
|
100
|
-
async
|
|
100
|
+
async autoAssignPositionsRaw(requestParameters: AutoAssignPositionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
101
101
|
if (requestParameters['autoAssignPositionsRequest'] == null) {
|
|
102
102
|
throw new runtime.RequiredError(
|
|
103
103
|
'autoAssignPositionsRequest',
|
|
104
|
-
'Required parameter "autoAssignPositionsRequest" was null or undefined when calling
|
|
104
|
+
'Required parameter "autoAssignPositionsRequest" was null or undefined when calling autoAssignPositions().'
|
|
105
105
|
);
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -133,25 +133,25 @@ export class PositionsApi extends runtime.BaseAPI {
|
|
|
133
133
|
/**
|
|
134
134
|
* Auto-assign positions based on sport defaults
|
|
135
135
|
*/
|
|
136
|
-
async
|
|
137
|
-
await this.
|
|
136
|
+
async autoAssignPositions(requestParameters: AutoAssignPositionsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
137
|
+
await this.autoAssignPositionsRaw(requestParameters, initOverrides);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* Clear all positions for a match
|
|
142
142
|
*/
|
|
143
|
-
async
|
|
143
|
+
async clearMatchPositionsRaw(requestParameters: ClearMatchPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
144
144
|
if (requestParameters['playSearchId'] == null) {
|
|
145
145
|
throw new runtime.RequiredError(
|
|
146
146
|
'playSearchId',
|
|
147
|
-
'Required parameter "playSearchId" was null or undefined when calling
|
|
147
|
+
'Required parameter "playSearchId" was null or undefined when calling clearMatchPositions().'
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
if (requestParameters['teamId'] == null) {
|
|
152
152
|
throw new runtime.RequiredError(
|
|
153
153
|
'teamId',
|
|
154
|
-
'Required parameter "teamId" was null or undefined when calling
|
|
154
|
+
'Required parameter "teamId" was null or undefined when calling clearMatchPositions().'
|
|
155
155
|
);
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -180,25 +180,25 @@ export class PositionsApi extends runtime.BaseAPI {
|
|
|
180
180
|
/**
|
|
181
181
|
* Clear all positions for a match
|
|
182
182
|
*/
|
|
183
|
-
async
|
|
184
|
-
await this.
|
|
183
|
+
async clearMatchPositions(requestParameters: ClearMatchPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
184
|
+
await this.clearMatchPositionsRaw(requestParameters, initOverrides);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
* Get positions for a match
|
|
188
|
+
* Get positions for a match
|
|
189
189
|
*/
|
|
190
|
-
async
|
|
190
|
+
async getMatchPositionsRaw(requestParameters: GetMatchPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GroupedPositionsResponse>> {
|
|
191
191
|
if (requestParameters['playSearchId'] == null) {
|
|
192
192
|
throw new runtime.RequiredError(
|
|
193
193
|
'playSearchId',
|
|
194
|
-
'Required parameter "playSearchId" was null or undefined when calling
|
|
194
|
+
'Required parameter "playSearchId" was null or undefined when calling getMatchPositions().'
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
if (requestParameters['teamId'] == null) {
|
|
199
199
|
throw new runtime.RequiredError(
|
|
200
200
|
'teamId',
|
|
201
|
-
'Required parameter "teamId" was null or undefined when calling
|
|
201
|
+
'Required parameter "teamId" was null or undefined when calling getMatchPositions().'
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -225,10 +225,10 @@ export class PositionsApi extends runtime.BaseAPI {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
|
-
* Get positions for a match
|
|
228
|
+
* Get positions for a match
|
|
229
229
|
*/
|
|
230
|
-
async
|
|
231
|
-
const response = await this.
|
|
230
|
+
async getMatchPositions(requestParameters: GetMatchPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupedPositionsResponse> {
|
|
231
|
+
const response = await this.getMatchPositionsRaw(requestParameters, initOverrides);
|
|
232
232
|
return await response.value();
|
|
233
233
|
}
|
|
234
234
|
|