@drxsuperapp/sdk 1.1.7 → 1.1.9
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/.openapi-generator/FILES +13 -0
- package/api.ts +716 -0
- package/deploy.log +50 -9
- package/dist/api.d.ts +572 -0
- package/dist/api.js +259 -0
- package/docs/ApiNewsGet200Response.md +26 -0
- package/docs/ApiNewsGet200ResponseResponseObject.md +28 -0
- package/docs/ApiNewsGet200ResponseResponseObjectItemsInner.md +30 -0
- package/docs/ApiNewsIdGet200Response.md +26 -0
- package/docs/ApiNewsIdGet200ResponseResponseObject.md +42 -0
- package/docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.md +20 -0
- package/docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.md +24 -0
- package/docs/ApiPadelMatchesGet200ResponseInner.md +48 -0
- package/docs/ApiPadelMatchesGet200ResponseInnerPlayers.md +22 -0
- package/docs/ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.md +26 -0
- package/docs/ApiPadelMatchesGet200ResponseInnerScoreInner.md +22 -0
- package/docs/NewsApi.md +119 -0
- package/docs/PadelApi.md +51 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -98,6 +98,431 @@ export interface ApiExamplesPostRequest {
|
|
|
98
98
|
*/
|
|
99
99
|
'email': string;
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @export
|
|
104
|
+
* @interface ApiNewsGet200Response
|
|
105
|
+
*/
|
|
106
|
+
export interface ApiNewsGet200Response {
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof ApiNewsGet200Response
|
|
111
|
+
*/
|
|
112
|
+
'success': boolean;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof ApiNewsGet200Response
|
|
117
|
+
*/
|
|
118
|
+
'message': string;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {ApiNewsGet200ResponseResponseObject}
|
|
122
|
+
* @memberof ApiNewsGet200Response
|
|
123
|
+
*/
|
|
124
|
+
'responseObject'?: ApiNewsGet200ResponseResponseObject;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof ApiNewsGet200Response
|
|
129
|
+
*/
|
|
130
|
+
'statusCode': number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @export
|
|
135
|
+
* @interface ApiNewsGet200ResponseResponseObject
|
|
136
|
+
*/
|
|
137
|
+
export interface ApiNewsGet200ResponseResponseObject {
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
141
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
142
|
+
*/
|
|
143
|
+
'items': Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {number}
|
|
147
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
148
|
+
*/
|
|
149
|
+
'currentPage': number;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
154
|
+
*/
|
|
155
|
+
'totalItems': number;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {number}
|
|
159
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
160
|
+
*/
|
|
161
|
+
'totalPages': number;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {number}
|
|
165
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
166
|
+
*/
|
|
167
|
+
'pageSize': number;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @export
|
|
172
|
+
* @interface ApiNewsGet200ResponseResponseObjectItemsInner
|
|
173
|
+
*/
|
|
174
|
+
export interface ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {number}
|
|
178
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
179
|
+
*/
|
|
180
|
+
'id': number;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
185
|
+
*/
|
|
186
|
+
'thumbnail': string | null;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
191
|
+
*/
|
|
192
|
+
'title': string | null;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
197
|
+
*/
|
|
198
|
+
'source': string | null;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
* @type {string}
|
|
202
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
203
|
+
*/
|
|
204
|
+
'byline': string | null;
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @type {string}
|
|
208
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
209
|
+
*/
|
|
210
|
+
'publishedAt': string | null;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @export
|
|
215
|
+
* @interface ApiNewsIdGet200Response
|
|
216
|
+
*/
|
|
217
|
+
export interface ApiNewsIdGet200Response {
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type {boolean}
|
|
221
|
+
* @memberof ApiNewsIdGet200Response
|
|
222
|
+
*/
|
|
223
|
+
'success': boolean;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {string}
|
|
227
|
+
* @memberof ApiNewsIdGet200Response
|
|
228
|
+
*/
|
|
229
|
+
'message': string;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @type {ApiNewsIdGet200ResponseResponseObject}
|
|
233
|
+
* @memberof ApiNewsIdGet200Response
|
|
234
|
+
*/
|
|
235
|
+
'responseObject'?: ApiNewsIdGet200ResponseResponseObject;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @type {number}
|
|
239
|
+
* @memberof ApiNewsIdGet200Response
|
|
240
|
+
*/
|
|
241
|
+
'statusCode': number;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @export
|
|
246
|
+
* @interface ApiNewsIdGet200ResponseResponseObject
|
|
247
|
+
*/
|
|
248
|
+
export interface ApiNewsIdGet200ResponseResponseObject {
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {number}
|
|
252
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
253
|
+
*/
|
|
254
|
+
'id': number;
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @type {string}
|
|
258
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
259
|
+
*/
|
|
260
|
+
'title': string | null;
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @type {string}
|
|
264
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
265
|
+
*/
|
|
266
|
+
'description': string | null;
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @type {string}
|
|
270
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
271
|
+
*/
|
|
272
|
+
'html_content': string | null;
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @type {string}
|
|
276
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
277
|
+
*/
|
|
278
|
+
'source': string | null;
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
283
|
+
*/
|
|
284
|
+
'keywords': string | null;
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @type {string}
|
|
288
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
289
|
+
*/
|
|
290
|
+
'byline': string | null;
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
295
|
+
*/
|
|
296
|
+
'publishedAt': string | null;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
301
|
+
*/
|
|
302
|
+
'thumbnail': string | null;
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
307
|
+
*/
|
|
308
|
+
'createdAt': string;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
313
|
+
*/
|
|
314
|
+
'updatedAt': string;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>}
|
|
318
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
319
|
+
*/
|
|
320
|
+
'leagues': Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @export
|
|
325
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
326
|
+
*/
|
|
327
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @type {ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague}
|
|
331
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
332
|
+
*/
|
|
333
|
+
'league': ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @export
|
|
338
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
339
|
+
*/
|
|
340
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @type {number}
|
|
344
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
345
|
+
*/
|
|
346
|
+
'id': number;
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @type {string}
|
|
350
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
351
|
+
*/
|
|
352
|
+
'description': string;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @type {string}
|
|
356
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
357
|
+
*/
|
|
358
|
+
'abbreviation': string | null;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @export
|
|
363
|
+
* @interface ApiPadelMatchesGet200ResponseInner
|
|
364
|
+
*/
|
|
365
|
+
export interface ApiPadelMatchesGet200ResponseInner {
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {number}
|
|
369
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
370
|
+
*/
|
|
371
|
+
'id': number;
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @type {number}
|
|
375
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
376
|
+
*/
|
|
377
|
+
'tournamentId': number;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @type {string}
|
|
381
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
382
|
+
*/
|
|
383
|
+
'tournamentName': string;
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
388
|
+
*/
|
|
389
|
+
'tournamentLocation': string;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
394
|
+
*/
|
|
395
|
+
'tournamentCountry': string;
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
400
|
+
*/
|
|
401
|
+
'tournamentUrl': string;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @type {string}
|
|
405
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
406
|
+
*/
|
|
407
|
+
'name': string;
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @type {number}
|
|
411
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
412
|
+
*/
|
|
413
|
+
'round': number;
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerScoreInner>}
|
|
417
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
418
|
+
*/
|
|
419
|
+
'score': Array<ApiPadelMatchesGet200ResponseInnerScoreInner>;
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @type {ApiPadelMatchesGet200ResponseInnerPlayers}
|
|
423
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
424
|
+
*/
|
|
425
|
+
'players': ApiPadelMatchesGet200ResponseInnerPlayers;
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
430
|
+
*/
|
|
431
|
+
'playedAt': string;
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
436
|
+
*/
|
|
437
|
+
'status': string;
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
442
|
+
*/
|
|
443
|
+
'category': string;
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
448
|
+
*/
|
|
449
|
+
'createdAt': string;
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @type {string}
|
|
453
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
454
|
+
*/
|
|
455
|
+
'updatedAt': string;
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @export
|
|
460
|
+
* @interface ApiPadelMatchesGet200ResponseInnerPlayers
|
|
461
|
+
*/
|
|
462
|
+
export interface ApiPadelMatchesGet200ResponseInnerPlayers {
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>}
|
|
466
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayers
|
|
467
|
+
*/
|
|
468
|
+
'team_1': Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>;
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>}
|
|
472
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayers
|
|
473
|
+
*/
|
|
474
|
+
'team_2': Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @export
|
|
479
|
+
* @interface ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
480
|
+
*/
|
|
481
|
+
export interface ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner {
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @type {number}
|
|
485
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
486
|
+
*/
|
|
487
|
+
'id': number;
|
|
488
|
+
/**
|
|
489
|
+
*
|
|
490
|
+
* @type {string}
|
|
491
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
492
|
+
*/
|
|
493
|
+
'name': string;
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
* @type {string}
|
|
497
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
498
|
+
*/
|
|
499
|
+
'self': string;
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* @type {string}
|
|
503
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
504
|
+
*/
|
|
505
|
+
'side': string;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @export
|
|
510
|
+
* @interface ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
511
|
+
*/
|
|
512
|
+
export interface ApiPadelMatchesGet200ResponseInnerScoreInner {
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @type {number}
|
|
516
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
517
|
+
*/
|
|
518
|
+
'team_1': number;
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @type {number}
|
|
522
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
523
|
+
*/
|
|
524
|
+
'team_2': number;
|
|
525
|
+
}
|
|
101
526
|
|
|
102
527
|
/**
|
|
103
528
|
* ExampleApi - axios parameter creator
|
|
@@ -479,3 +904,294 @@ export class ExampleApi extends BaseAPI {
|
|
|
479
904
|
|
|
480
905
|
|
|
481
906
|
|
|
907
|
+
/**
|
|
908
|
+
* NewsApi - axios parameter creator
|
|
909
|
+
* @export
|
|
910
|
+
*/
|
|
911
|
+
export const NewsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
912
|
+
return {
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @param {string} [page]
|
|
916
|
+
* @param {string} [perPage]
|
|
917
|
+
* @param {string} [leagueDescription]
|
|
918
|
+
* @param {string} [searchTerm]
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
apiNewsGet: async (page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
923
|
+
const localVarPath = `/api/news`;
|
|
924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
925
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
926
|
+
let baseOptions;
|
|
927
|
+
if (configuration) {
|
|
928
|
+
baseOptions = configuration.baseOptions;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
932
|
+
const localVarHeaderParameter = {} as any;
|
|
933
|
+
const localVarQueryParameter = {} as any;
|
|
934
|
+
|
|
935
|
+
if (page !== undefined) {
|
|
936
|
+
localVarQueryParameter['page'] = page;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
if (perPage !== undefined) {
|
|
940
|
+
localVarQueryParameter['perPage'] = perPage;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
if (leagueDescription !== undefined) {
|
|
944
|
+
localVarQueryParameter['leagueDescription'] = leagueDescription;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
if (searchTerm !== undefined) {
|
|
948
|
+
localVarQueryParameter['searchTerm'] = searchTerm;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
954
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
955
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
956
|
+
|
|
957
|
+
return {
|
|
958
|
+
url: toPathString(localVarUrlObj),
|
|
959
|
+
options: localVarRequestOptions,
|
|
960
|
+
};
|
|
961
|
+
},
|
|
962
|
+
/**
|
|
963
|
+
*
|
|
964
|
+
* @param {string} id
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
*/
|
|
968
|
+
apiNewsIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
969
|
+
// verify required parameter 'id' is not null or undefined
|
|
970
|
+
assertParamExists('apiNewsIdGet', 'id', id)
|
|
971
|
+
const localVarPath = `/api/news/{id}`
|
|
972
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
973
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
974
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
975
|
+
let baseOptions;
|
|
976
|
+
if (configuration) {
|
|
977
|
+
baseOptions = configuration.baseOptions;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
981
|
+
const localVarHeaderParameter = {} as any;
|
|
982
|
+
const localVarQueryParameter = {} as any;
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
987
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
988
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
989
|
+
|
|
990
|
+
return {
|
|
991
|
+
url: toPathString(localVarUrlObj),
|
|
992
|
+
options: localVarRequestOptions,
|
|
993
|
+
};
|
|
994
|
+
},
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* NewsApi - functional programming interface
|
|
1000
|
+
* @export
|
|
1001
|
+
*/
|
|
1002
|
+
export const NewsApiFp = function(configuration?: Configuration) {
|
|
1003
|
+
const localVarAxiosParamCreator = NewsApiAxiosParamCreator(configuration)
|
|
1004
|
+
return {
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @param {string} [page]
|
|
1008
|
+
* @param {string} [perPage]
|
|
1009
|
+
* @param {string} [leagueDescription]
|
|
1010
|
+
* @param {string} [searchTerm]
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
*/
|
|
1014
|
+
async apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsGet200Response>> {
|
|
1015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsGet(page, perPage, leagueDescription, searchTerm, options);
|
|
1016
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1017
|
+
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsGet']?.[localVarOperationServerIndex]?.url;
|
|
1018
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1019
|
+
},
|
|
1020
|
+
/**
|
|
1021
|
+
*
|
|
1022
|
+
* @param {string} id
|
|
1023
|
+
* @param {*} [options] Override http request option.
|
|
1024
|
+
* @throws {RequiredError}
|
|
1025
|
+
*/
|
|
1026
|
+
async apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsIdGet200Response>> {
|
|
1027
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsIdGet(id, options);
|
|
1028
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1029
|
+
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsIdGet']?.[localVarOperationServerIndex]?.url;
|
|
1030
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1031
|
+
},
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* NewsApi - factory interface
|
|
1037
|
+
* @export
|
|
1038
|
+
*/
|
|
1039
|
+
export const NewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1040
|
+
const localVarFp = NewsApiFp(configuration)
|
|
1041
|
+
return {
|
|
1042
|
+
/**
|
|
1043
|
+
*
|
|
1044
|
+
* @param {string} [page]
|
|
1045
|
+
* @param {string} [perPage]
|
|
1046
|
+
* @param {string} [leagueDescription]
|
|
1047
|
+
* @param {string} [searchTerm]
|
|
1048
|
+
* @param {*} [options] Override http request option.
|
|
1049
|
+
* @throws {RequiredError}
|
|
1050
|
+
*/
|
|
1051
|
+
apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsGet200Response> {
|
|
1052
|
+
return localVarFp.apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(axios, basePath));
|
|
1053
|
+
},
|
|
1054
|
+
/**
|
|
1055
|
+
*
|
|
1056
|
+
* @param {string} id
|
|
1057
|
+
* @param {*} [options] Override http request option.
|
|
1058
|
+
* @throws {RequiredError}
|
|
1059
|
+
*/
|
|
1060
|
+
apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsIdGet200Response> {
|
|
1061
|
+
return localVarFp.apiNewsIdGet(id, options).then((request) => request(axios, basePath));
|
|
1062
|
+
},
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* NewsApi - object-oriented interface
|
|
1068
|
+
* @export
|
|
1069
|
+
* @class NewsApi
|
|
1070
|
+
* @extends {BaseAPI}
|
|
1071
|
+
*/
|
|
1072
|
+
export class NewsApi extends BaseAPI {
|
|
1073
|
+
/**
|
|
1074
|
+
*
|
|
1075
|
+
* @param {string} [page]
|
|
1076
|
+
* @param {string} [perPage]
|
|
1077
|
+
* @param {string} [leagueDescription]
|
|
1078
|
+
* @param {string} [searchTerm]
|
|
1079
|
+
* @param {*} [options] Override http request option.
|
|
1080
|
+
* @throws {RequiredError}
|
|
1081
|
+
* @memberof NewsApi
|
|
1082
|
+
*/
|
|
1083
|
+
public apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig) {
|
|
1084
|
+
return NewsApiFp(this.configuration).apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(this.axios, this.basePath));
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
*
|
|
1089
|
+
* @param {string} id
|
|
1090
|
+
* @param {*} [options] Override http request option.
|
|
1091
|
+
* @throws {RequiredError}
|
|
1092
|
+
* @memberof NewsApi
|
|
1093
|
+
*/
|
|
1094
|
+
public apiNewsIdGet(id: string, options?: RawAxiosRequestConfig) {
|
|
1095
|
+
return NewsApiFp(this.configuration).apiNewsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* PadelApi - axios parameter creator
|
|
1103
|
+
* @export
|
|
1104
|
+
*/
|
|
1105
|
+
export const PadelApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1106
|
+
return {
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @param {*} [options] Override http request option.
|
|
1110
|
+
* @throws {RequiredError}
|
|
1111
|
+
*/
|
|
1112
|
+
apiPadelMatchesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1113
|
+
const localVarPath = `/api/padel/matches`;
|
|
1114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1116
|
+
let baseOptions;
|
|
1117
|
+
if (configuration) {
|
|
1118
|
+
baseOptions = configuration.baseOptions;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1122
|
+
const localVarHeaderParameter = {} as any;
|
|
1123
|
+
const localVarQueryParameter = {} as any;
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1129
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1130
|
+
|
|
1131
|
+
return {
|
|
1132
|
+
url: toPathString(localVarUrlObj),
|
|
1133
|
+
options: localVarRequestOptions,
|
|
1134
|
+
};
|
|
1135
|
+
},
|
|
1136
|
+
}
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* PadelApi - functional programming interface
|
|
1141
|
+
* @export
|
|
1142
|
+
*/
|
|
1143
|
+
export const PadelApiFp = function(configuration?: Configuration) {
|
|
1144
|
+
const localVarAxiosParamCreator = PadelApiAxiosParamCreator(configuration)
|
|
1145
|
+
return {
|
|
1146
|
+
/**
|
|
1147
|
+
*
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
async apiPadelMatchesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiPadelMatchesGet200ResponseInner>>> {
|
|
1152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiPadelMatchesGet(options);
|
|
1153
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1154
|
+
const localVarOperationServerBasePath = operationServerMap['PadelApi.apiPadelMatchesGet']?.[localVarOperationServerIndex]?.url;
|
|
1155
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1156
|
+
},
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* PadelApi - factory interface
|
|
1162
|
+
* @export
|
|
1163
|
+
*/
|
|
1164
|
+
export const PadelApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1165
|
+
const localVarFp = PadelApiFp(configuration)
|
|
1166
|
+
return {
|
|
1167
|
+
/**
|
|
1168
|
+
*
|
|
1169
|
+
* @param {*} [options] Override http request option.
|
|
1170
|
+
* @throws {RequiredError}
|
|
1171
|
+
*/
|
|
1172
|
+
apiPadelMatchesGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiPadelMatchesGet200ResponseInner>> {
|
|
1173
|
+
return localVarFp.apiPadelMatchesGet(options).then((request) => request(axios, basePath));
|
|
1174
|
+
},
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* PadelApi - object-oriented interface
|
|
1180
|
+
* @export
|
|
1181
|
+
* @class PadelApi
|
|
1182
|
+
* @extends {BaseAPI}
|
|
1183
|
+
*/
|
|
1184
|
+
export class PadelApi extends BaseAPI {
|
|
1185
|
+
/**
|
|
1186
|
+
*
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
* @memberof PadelApi
|
|
1190
|
+
*/
|
|
1191
|
+
public apiPadelMatchesGet(options?: RawAxiosRequestConfig) {
|
|
1192
|
+
return PadelApiFp(this.configuration).apiPadelMatchesGet(options).then((request) => request(this.axios, this.basePath));
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
|