@drxsuperapp/sdk 1.1.42 → 1.1.45
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 +39 -39
- package/.openapi-generator-ignore +23 -23
- package/api.ts +1491 -1491
- package/base.ts +86 -86
- package/common.ts +150 -150
- package/configuration.ts +115 -115
- package/deploy.log +123 -0
- package/ecosystem.config.js +13 -13
- package/git_push.sh +57 -57
- package/hooks.json +30 -30
- package/openapitools.json +7 -7
- package/package.json +30 -30
- package/tsconfig.json +17 -17
- package/workflow.sh +1 -1
- package/.idea/drx-sdk.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/api.ts
CHANGED
|
@@ -1,1491 +1,1491 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* DRX API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.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
|
-
|
|
16
|
-
import type { Configuration } from './configuration';
|
|
17
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
-
import globalAxios from 'axios';
|
|
19
|
-
// Some imports not used depending on template conditions
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
-
import type { RequestArgs } from './base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @interface ApiExamplesGet200ResponseInner
|
|
30
|
-
*/
|
|
31
|
-
export interface ApiExamplesGet200ResponseInner {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
36
|
-
*/
|
|
37
|
-
'id': string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
42
|
-
*/
|
|
43
|
-
'name': string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
48
|
-
*/
|
|
49
|
-
'email': string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
54
|
-
*/
|
|
55
|
-
'wkwkwkwk': string;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof ApiExamplesGet200ResponseInner
|
|
60
|
-
*/
|
|
61
|
-
'wkwkwkwk2': string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @export
|
|
66
|
-
* @interface ApiExamplesIdPutRequest
|
|
67
|
-
*/
|
|
68
|
-
export interface ApiExamplesIdPutRequest {
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof ApiExamplesIdPutRequest
|
|
73
|
-
*/
|
|
74
|
-
'name'?: string;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof ApiExamplesIdPutRequest
|
|
79
|
-
*/
|
|
80
|
-
'email'?: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @export
|
|
85
|
-
* @interface ApiExamplesPostRequest
|
|
86
|
-
*/
|
|
87
|
-
export interface ApiExamplesPostRequest {
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof ApiExamplesPostRequest
|
|
92
|
-
*/
|
|
93
|
-
'name': string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof ApiExamplesPostRequest
|
|
98
|
-
*/
|
|
99
|
-
'email': string;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @export
|
|
104
|
-
* @interface ApiHealthCheckGet200Response
|
|
105
|
-
*/
|
|
106
|
-
export interface ApiHealthCheckGet200Response {
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @type {boolean}
|
|
110
|
-
* @memberof ApiHealthCheckGet200Response
|
|
111
|
-
*/
|
|
112
|
-
'success': boolean;
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @type {string}
|
|
116
|
-
* @memberof ApiHealthCheckGet200Response
|
|
117
|
-
*/
|
|
118
|
-
'message': string;
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @type {any}
|
|
122
|
-
* @memberof ApiHealthCheckGet200Response
|
|
123
|
-
*/
|
|
124
|
-
'responseObject'?: any | null;
|
|
125
|
-
/**
|
|
126
|
-
*
|
|
127
|
-
* @type {number}
|
|
128
|
-
* @memberof ApiHealthCheckGet200Response
|
|
129
|
-
*/
|
|
130
|
-
'statusCode': number;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @export
|
|
135
|
-
* @interface ApiNewsGet200Response
|
|
136
|
-
*/
|
|
137
|
-
export interface ApiNewsGet200Response {
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {boolean}
|
|
141
|
-
* @memberof ApiNewsGet200Response
|
|
142
|
-
*/
|
|
143
|
-
'success': boolean;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @type {string}
|
|
147
|
-
* @memberof ApiNewsGet200Response
|
|
148
|
-
*/
|
|
149
|
-
'message': string;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {ApiNewsGet200ResponseResponseObject}
|
|
153
|
-
* @memberof ApiNewsGet200Response
|
|
154
|
-
*/
|
|
155
|
-
'responseObject'?: ApiNewsGet200ResponseResponseObject;
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @type {number}
|
|
159
|
-
* @memberof ApiNewsGet200Response
|
|
160
|
-
*/
|
|
161
|
-
'statusCode': number;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
* @export
|
|
166
|
-
* @interface ApiNewsGet200ResponseResponseObject
|
|
167
|
-
*/
|
|
168
|
-
export interface ApiNewsGet200ResponseResponseObject {
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
172
|
-
* @memberof ApiNewsGet200ResponseResponseObject
|
|
173
|
-
*/
|
|
174
|
-
'items': Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
* @type {number}
|
|
178
|
-
* @memberof ApiNewsGet200ResponseResponseObject
|
|
179
|
-
*/
|
|
180
|
-
'currentPage': number;
|
|
181
|
-
/**
|
|
182
|
-
*
|
|
183
|
-
* @type {number}
|
|
184
|
-
* @memberof ApiNewsGet200ResponseResponseObject
|
|
185
|
-
*/
|
|
186
|
-
'totalItems': number;
|
|
187
|
-
/**
|
|
188
|
-
*
|
|
189
|
-
* @type {number}
|
|
190
|
-
* @memberof ApiNewsGet200ResponseResponseObject
|
|
191
|
-
*/
|
|
192
|
-
'totalPages': number;
|
|
193
|
-
/**
|
|
194
|
-
*
|
|
195
|
-
* @type {number}
|
|
196
|
-
* @memberof ApiNewsGet200ResponseResponseObject
|
|
197
|
-
*/
|
|
198
|
-
'pageSize': number;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
* @export
|
|
203
|
-
* @interface ApiNewsGet200ResponseResponseObjectItemsInner
|
|
204
|
-
*/
|
|
205
|
-
export interface ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @type {number}
|
|
209
|
-
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
210
|
-
*/
|
|
211
|
-
'id': number;
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* @type {string}
|
|
215
|
-
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
216
|
-
*/
|
|
217
|
-
'thumbnail': string | null;
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* @type {string}
|
|
221
|
-
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
222
|
-
*/
|
|
223
|
-
'title': string | null;
|
|
224
|
-
/**
|
|
225
|
-
*
|
|
226
|
-
* @type {string}
|
|
227
|
-
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
228
|
-
*/
|
|
229
|
-
'source': string | null;
|
|
230
|
-
/**
|
|
231
|
-
*
|
|
232
|
-
* @type {string}
|
|
233
|
-
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
234
|
-
*/
|
|
235
|
-
'byline': string | null;
|
|
236
|
-
/**
|
|
237
|
-
*
|
|
238
|
-
* @type {string}
|
|
239
|
-
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
240
|
-
*/
|
|
241
|
-
'publishedAt': string | null;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
*
|
|
245
|
-
* @export
|
|
246
|
-
* @interface ApiNewsIdGet200Response
|
|
247
|
-
*/
|
|
248
|
-
export interface ApiNewsIdGet200Response {
|
|
249
|
-
/**
|
|
250
|
-
*
|
|
251
|
-
* @type {boolean}
|
|
252
|
-
* @memberof ApiNewsIdGet200Response
|
|
253
|
-
*/
|
|
254
|
-
'success': boolean;
|
|
255
|
-
/**
|
|
256
|
-
*
|
|
257
|
-
* @type {string}
|
|
258
|
-
* @memberof ApiNewsIdGet200Response
|
|
259
|
-
*/
|
|
260
|
-
'message': string;
|
|
261
|
-
/**
|
|
262
|
-
*
|
|
263
|
-
* @type {ApiNewsIdGet200ResponseResponseObject}
|
|
264
|
-
* @memberof ApiNewsIdGet200Response
|
|
265
|
-
*/
|
|
266
|
-
'responseObject'?: ApiNewsIdGet200ResponseResponseObject;
|
|
267
|
-
/**
|
|
268
|
-
*
|
|
269
|
-
* @type {number}
|
|
270
|
-
* @memberof ApiNewsIdGet200Response
|
|
271
|
-
*/
|
|
272
|
-
'statusCode': number;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
*
|
|
276
|
-
* @export
|
|
277
|
-
* @interface ApiNewsIdGet200ResponseResponseObject
|
|
278
|
-
*/
|
|
279
|
-
export interface ApiNewsIdGet200ResponseResponseObject {
|
|
280
|
-
/**
|
|
281
|
-
*
|
|
282
|
-
* @type {number}
|
|
283
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
284
|
-
*/
|
|
285
|
-
'id': number;
|
|
286
|
-
/**
|
|
287
|
-
*
|
|
288
|
-
* @type {string}
|
|
289
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
290
|
-
*/
|
|
291
|
-
'title': string | null;
|
|
292
|
-
/**
|
|
293
|
-
*
|
|
294
|
-
* @type {string}
|
|
295
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
296
|
-
*/
|
|
297
|
-
'description': string | null;
|
|
298
|
-
/**
|
|
299
|
-
*
|
|
300
|
-
* @type {string}
|
|
301
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
302
|
-
*/
|
|
303
|
-
'html_content': string | null;
|
|
304
|
-
/**
|
|
305
|
-
*
|
|
306
|
-
* @type {string}
|
|
307
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
308
|
-
*/
|
|
309
|
-
'source': string | null;
|
|
310
|
-
/**
|
|
311
|
-
*
|
|
312
|
-
* @type {string}
|
|
313
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
314
|
-
*/
|
|
315
|
-
'keywords': string | null;
|
|
316
|
-
/**
|
|
317
|
-
*
|
|
318
|
-
* @type {string}
|
|
319
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
320
|
-
*/
|
|
321
|
-
'byline': string | null;
|
|
322
|
-
/**
|
|
323
|
-
*
|
|
324
|
-
* @type {string}
|
|
325
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
326
|
-
*/
|
|
327
|
-
'publishedAt': string | null;
|
|
328
|
-
/**
|
|
329
|
-
*
|
|
330
|
-
* @type {string}
|
|
331
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
332
|
-
*/
|
|
333
|
-
'thumbnail': string | null;
|
|
334
|
-
/**
|
|
335
|
-
*
|
|
336
|
-
* @type {string}
|
|
337
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
338
|
-
*/
|
|
339
|
-
'createdAt': string;
|
|
340
|
-
/**
|
|
341
|
-
*
|
|
342
|
-
* @type {string}
|
|
343
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
344
|
-
*/
|
|
345
|
-
'updatedAt': string;
|
|
346
|
-
/**
|
|
347
|
-
*
|
|
348
|
-
* @type {Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>}
|
|
349
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
350
|
-
*/
|
|
351
|
-
'leagues': Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>;
|
|
352
|
-
/**
|
|
353
|
-
*
|
|
354
|
-
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
355
|
-
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
356
|
-
*/
|
|
357
|
-
'relatedNews': Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
*
|
|
361
|
-
* @export
|
|
362
|
-
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
363
|
-
*/
|
|
364
|
-
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
365
|
-
/**
|
|
366
|
-
*
|
|
367
|
-
* @type {ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague}
|
|
368
|
-
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
369
|
-
*/
|
|
370
|
-
'league': ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague;
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
*
|
|
374
|
-
* @export
|
|
375
|
-
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
376
|
-
*/
|
|
377
|
-
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
378
|
-
/**
|
|
379
|
-
*
|
|
380
|
-
* @type {number}
|
|
381
|
-
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
382
|
-
*/
|
|
383
|
-
'id': number;
|
|
384
|
-
/**
|
|
385
|
-
*
|
|
386
|
-
* @type {string}
|
|
387
|
-
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
388
|
-
*/
|
|
389
|
-
'description': string;
|
|
390
|
-
/**
|
|
391
|
-
*
|
|
392
|
-
* @type {string}
|
|
393
|
-
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
394
|
-
*/
|
|
395
|
-
'abbreviation': string | null;
|
|
396
|
-
}
|
|
397
|
-
/**
|
|
398
|
-
*
|
|
399
|
-
* @export
|
|
400
|
-
* @interface ApiPadelMatchesGet200ResponseInner
|
|
401
|
-
*/
|
|
402
|
-
export interface ApiPadelMatchesGet200ResponseInner {
|
|
403
|
-
/**
|
|
404
|
-
*
|
|
405
|
-
* @type {number}
|
|
406
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
407
|
-
*/
|
|
408
|
-
'id': number;
|
|
409
|
-
/**
|
|
410
|
-
*
|
|
411
|
-
* @type {number}
|
|
412
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
413
|
-
*/
|
|
414
|
-
'tournamentId': number;
|
|
415
|
-
/**
|
|
416
|
-
*
|
|
417
|
-
* @type {string}
|
|
418
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
419
|
-
*/
|
|
420
|
-
'name': string;
|
|
421
|
-
/**
|
|
422
|
-
*
|
|
423
|
-
* @type {number}
|
|
424
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
425
|
-
*/
|
|
426
|
-
'round': number;
|
|
427
|
-
/**
|
|
428
|
-
*
|
|
429
|
-
* @type {Array<ApiPadelMatchesGet200ResponseInnerScoreInner>}
|
|
430
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
431
|
-
*/
|
|
432
|
-
'score': Array<ApiPadelMatchesGet200ResponseInnerScoreInner>;
|
|
433
|
-
/**
|
|
434
|
-
*
|
|
435
|
-
* @type {ApiPadelMatchesGet200ResponseInnerPlayers}
|
|
436
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
437
|
-
*/
|
|
438
|
-
'players': ApiPadelMatchesGet200ResponseInnerPlayers;
|
|
439
|
-
/**
|
|
440
|
-
*
|
|
441
|
-
* @type {string}
|
|
442
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
443
|
-
*/
|
|
444
|
-
'playedAt': string;
|
|
445
|
-
/**
|
|
446
|
-
*
|
|
447
|
-
* @type {string}
|
|
448
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
449
|
-
*/
|
|
450
|
-
'status': string;
|
|
451
|
-
/**
|
|
452
|
-
*
|
|
453
|
-
* @type {string}
|
|
454
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
455
|
-
*/
|
|
456
|
-
'category': string;
|
|
457
|
-
/**
|
|
458
|
-
*
|
|
459
|
-
* @type {string}
|
|
460
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
461
|
-
*/
|
|
462
|
-
'duration': string | null;
|
|
463
|
-
/**
|
|
464
|
-
*
|
|
465
|
-
* @type {string}
|
|
466
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
467
|
-
*/
|
|
468
|
-
'court': string | null;
|
|
469
|
-
/**
|
|
470
|
-
*
|
|
471
|
-
* @type {ApiPadelMatchesGet200ResponseInnerStats}
|
|
472
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
473
|
-
*/
|
|
474
|
-
'stats': ApiPadelMatchesGet200ResponseInnerStats;
|
|
475
|
-
/**
|
|
476
|
-
*
|
|
477
|
-
* @type {ApiPadelMatchesGet200ResponseInnerSets}
|
|
478
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
479
|
-
*/
|
|
480
|
-
'sets': ApiPadelMatchesGet200ResponseInnerSets;
|
|
481
|
-
/**
|
|
482
|
-
*
|
|
483
|
-
* @type {string}
|
|
484
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
485
|
-
*/
|
|
486
|
-
'createdAt': string;
|
|
487
|
-
/**
|
|
488
|
-
*
|
|
489
|
-
* @type {string}
|
|
490
|
-
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
491
|
-
*/
|
|
492
|
-
'updatedAt': string;
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
*
|
|
496
|
-
* @export
|
|
497
|
-
* @interface ApiPadelMatchesGet200ResponseInnerPlayers
|
|
498
|
-
*/
|
|
499
|
-
export interface ApiPadelMatchesGet200ResponseInnerPlayers {
|
|
500
|
-
/**
|
|
501
|
-
*
|
|
502
|
-
* @type {Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>}
|
|
503
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerPlayers
|
|
504
|
-
*/
|
|
505
|
-
'team_1': Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>;
|
|
506
|
-
/**
|
|
507
|
-
*
|
|
508
|
-
* @type {Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>}
|
|
509
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerPlayers
|
|
510
|
-
*/
|
|
511
|
-
'team_2': Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>;
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
*
|
|
515
|
-
* @export
|
|
516
|
-
* @interface ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
517
|
-
*/
|
|
518
|
-
export interface ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner {
|
|
519
|
-
/**
|
|
520
|
-
*
|
|
521
|
-
* @type {number}
|
|
522
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
523
|
-
*/
|
|
524
|
-
'id': number;
|
|
525
|
-
/**
|
|
526
|
-
*
|
|
527
|
-
* @type {string}
|
|
528
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
529
|
-
*/
|
|
530
|
-
'name': string;
|
|
531
|
-
/**
|
|
532
|
-
*
|
|
533
|
-
* @type {string}
|
|
534
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
535
|
-
*/
|
|
536
|
-
'self': string;
|
|
537
|
-
/**
|
|
538
|
-
*
|
|
539
|
-
* @type {string}
|
|
540
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
541
|
-
*/
|
|
542
|
-
'side': string;
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
*
|
|
546
|
-
* @export
|
|
547
|
-
* @interface ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
548
|
-
*/
|
|
549
|
-
export interface ApiPadelMatchesGet200ResponseInnerScoreInner {
|
|
550
|
-
/**
|
|
551
|
-
*
|
|
552
|
-
* @type {number}
|
|
553
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
554
|
-
*/
|
|
555
|
-
'team_1': number;
|
|
556
|
-
/**
|
|
557
|
-
*
|
|
558
|
-
* @type {number}
|
|
559
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
560
|
-
*/
|
|
561
|
-
'team_2': number;
|
|
562
|
-
}
|
|
563
|
-
/**
|
|
564
|
-
*
|
|
565
|
-
* @export
|
|
566
|
-
* @interface ApiPadelMatchesGet200ResponseInnerSets
|
|
567
|
-
*/
|
|
568
|
-
export interface ApiPadelMatchesGet200ResponseInnerSets {
|
|
569
|
-
/**
|
|
570
|
-
*
|
|
571
|
-
* @type {number}
|
|
572
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
573
|
-
*/
|
|
574
|
-
'id': number;
|
|
575
|
-
/**
|
|
576
|
-
*
|
|
577
|
-
* @type {string}
|
|
578
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
579
|
-
*/
|
|
580
|
-
'self': string;
|
|
581
|
-
/**
|
|
582
|
-
*
|
|
583
|
-
* @type {Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInner>}
|
|
584
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
585
|
-
*/
|
|
586
|
-
'sets': Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInner>;
|
|
587
|
-
/**
|
|
588
|
-
*
|
|
589
|
-
* @type {ApiPadelMatchesGet200ResponseInnerStatsConnections}
|
|
590
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
591
|
-
*/
|
|
592
|
-
'connections': ApiPadelMatchesGet200ResponseInnerStatsConnections;
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
*
|
|
596
|
-
* @export
|
|
597
|
-
* @interface ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
598
|
-
*/
|
|
599
|
-
export interface ApiPadelMatchesGet200ResponseInnerSetsSetsInner {
|
|
600
|
-
/**
|
|
601
|
-
*
|
|
602
|
-
* @type {Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner>}
|
|
603
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
604
|
-
*/
|
|
605
|
-
'games': Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner>;
|
|
606
|
-
/**
|
|
607
|
-
*
|
|
608
|
-
* @type {number}
|
|
609
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
610
|
-
*/
|
|
611
|
-
'set_number': number;
|
|
612
|
-
}
|
|
613
|
-
/**
|
|
614
|
-
*
|
|
615
|
-
* @export
|
|
616
|
-
* @interface ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
617
|
-
*/
|
|
618
|
-
export interface ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner {
|
|
619
|
-
/**
|
|
620
|
-
*
|
|
621
|
-
* @type {Array<string>}
|
|
622
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
623
|
-
*/
|
|
624
|
-
'points': Array<string>;
|
|
625
|
-
/**
|
|
626
|
-
*
|
|
627
|
-
* @type {string}
|
|
628
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
629
|
-
*/
|
|
630
|
-
'game_score': string;
|
|
631
|
-
/**
|
|
632
|
-
*
|
|
633
|
-
* @type {number}
|
|
634
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
635
|
-
*/
|
|
636
|
-
'game_number': number;
|
|
637
|
-
}
|
|
638
|
-
/**
|
|
639
|
-
*
|
|
640
|
-
* @export
|
|
641
|
-
* @interface ApiPadelMatchesGet200ResponseInnerStats
|
|
642
|
-
*/
|
|
643
|
-
export interface ApiPadelMatchesGet200ResponseInnerStats {
|
|
644
|
-
/**
|
|
645
|
-
*
|
|
646
|
-
* @type {number}
|
|
647
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
648
|
-
*/
|
|
649
|
-
'id': number;
|
|
650
|
-
/**
|
|
651
|
-
*
|
|
652
|
-
* @type {string}
|
|
653
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
654
|
-
*/
|
|
655
|
-
'self': string;
|
|
656
|
-
/**
|
|
657
|
-
*
|
|
658
|
-
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
659
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
660
|
-
*/
|
|
661
|
-
'match': { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
662
|
-
/**
|
|
663
|
-
*
|
|
664
|
-
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
665
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
666
|
-
*/
|
|
667
|
-
'set_1': { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
668
|
-
/**
|
|
669
|
-
*
|
|
670
|
-
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
671
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
672
|
-
*/
|
|
673
|
-
'set_2': { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
674
|
-
/**
|
|
675
|
-
*
|
|
676
|
-
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
677
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
678
|
-
*/
|
|
679
|
-
'set_3'?: { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
680
|
-
/**
|
|
681
|
-
*
|
|
682
|
-
* @type {ApiPadelMatchesGet200ResponseInnerStatsConnections}
|
|
683
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
684
|
-
*/
|
|
685
|
-
'connections': ApiPadelMatchesGet200ResponseInnerStatsConnections;
|
|
686
|
-
}
|
|
687
|
-
/**
|
|
688
|
-
*
|
|
689
|
-
* @export
|
|
690
|
-
* @interface ApiPadelMatchesGet200ResponseInnerStatsConnections
|
|
691
|
-
*/
|
|
692
|
-
export interface ApiPadelMatchesGet200ResponseInnerStatsConnections {
|
|
693
|
-
/**
|
|
694
|
-
*
|
|
695
|
-
* @type {string}
|
|
696
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStatsConnections
|
|
697
|
-
*/
|
|
698
|
-
'match': string;
|
|
699
|
-
}
|
|
700
|
-
/**
|
|
701
|
-
*
|
|
702
|
-
* @export
|
|
703
|
-
* @interface ApiPadelMatchesGet200ResponseInnerStatsMatchValue
|
|
704
|
-
*/
|
|
705
|
-
export interface ApiPadelMatchesGet200ResponseInnerStatsMatchValue {
|
|
706
|
-
/**
|
|
707
|
-
*
|
|
708
|
-
* @type {string}
|
|
709
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStatsMatchValue
|
|
710
|
-
*/
|
|
711
|
-
'team_1': string;
|
|
712
|
-
/**
|
|
713
|
-
*
|
|
714
|
-
* @type {string}
|
|
715
|
-
* @memberof ApiPadelMatchesGet200ResponseInnerStatsMatchValue
|
|
716
|
-
*/
|
|
717
|
-
'team_2': string;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* ExampleApi - axios parameter creator
|
|
722
|
-
* @export
|
|
723
|
-
*/
|
|
724
|
-
export const ExampleApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
725
|
-
return {
|
|
726
|
-
/**
|
|
727
|
-
*
|
|
728
|
-
* @param {number} [page]
|
|
729
|
-
* @param {number} [limit]
|
|
730
|
-
* @param {*} [options] Override http request option.
|
|
731
|
-
* @throws {RequiredError}
|
|
732
|
-
*/
|
|
733
|
-
apiExamplesGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
734
|
-
const localVarPath = `/api/examples`;
|
|
735
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
736
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
737
|
-
let baseOptions;
|
|
738
|
-
if (configuration) {
|
|
739
|
-
baseOptions = configuration.baseOptions;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
743
|
-
const localVarHeaderParameter = {} as any;
|
|
744
|
-
const localVarQueryParameter = {} as any;
|
|
745
|
-
|
|
746
|
-
if (page !== undefined) {
|
|
747
|
-
localVarQueryParameter['page'] = page;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
if (limit !== undefined) {
|
|
751
|
-
localVarQueryParameter['limit'] = limit;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
757
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
758
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
759
|
-
|
|
760
|
-
return {
|
|
761
|
-
url: toPathString(localVarUrlObj),
|
|
762
|
-
options: localVarRequestOptions,
|
|
763
|
-
};
|
|
764
|
-
},
|
|
765
|
-
/**
|
|
766
|
-
*
|
|
767
|
-
* @param {string} id
|
|
768
|
-
* @param {*} [options] Override http request option.
|
|
769
|
-
* @throws {RequiredError}
|
|
770
|
-
*/
|
|
771
|
-
apiExamplesIdDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
772
|
-
// verify required parameter 'id' is not null or undefined
|
|
773
|
-
assertParamExists('apiExamplesIdDelete', 'id', id)
|
|
774
|
-
const localVarPath = `/api/examples/{id}`
|
|
775
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
776
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
777
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
778
|
-
let baseOptions;
|
|
779
|
-
if (configuration) {
|
|
780
|
-
baseOptions = configuration.baseOptions;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
784
|
-
const localVarHeaderParameter = {} as any;
|
|
785
|
-
const localVarQueryParameter = {} as any;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
790
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
791
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
792
|
-
|
|
793
|
-
return {
|
|
794
|
-
url: toPathString(localVarUrlObj),
|
|
795
|
-
options: localVarRequestOptions,
|
|
796
|
-
};
|
|
797
|
-
},
|
|
798
|
-
/**
|
|
799
|
-
*
|
|
800
|
-
* @param {string} id
|
|
801
|
-
* @param {*} [options] Override http request option.
|
|
802
|
-
* @throws {RequiredError}
|
|
803
|
-
*/
|
|
804
|
-
apiExamplesIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
805
|
-
// verify required parameter 'id' is not null or undefined
|
|
806
|
-
assertParamExists('apiExamplesIdGet', 'id', id)
|
|
807
|
-
const localVarPath = `/api/examples/{id}`
|
|
808
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
809
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
810
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
811
|
-
let baseOptions;
|
|
812
|
-
if (configuration) {
|
|
813
|
-
baseOptions = configuration.baseOptions;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
817
|
-
const localVarHeaderParameter = {} as any;
|
|
818
|
-
const localVarQueryParameter = {} as any;
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
823
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
824
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
825
|
-
|
|
826
|
-
return {
|
|
827
|
-
url: toPathString(localVarUrlObj),
|
|
828
|
-
options: localVarRequestOptions,
|
|
829
|
-
};
|
|
830
|
-
},
|
|
831
|
-
/**
|
|
832
|
-
*
|
|
833
|
-
* @param {string} id
|
|
834
|
-
* @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
|
|
835
|
-
* @param {*} [options] Override http request option.
|
|
836
|
-
* @throws {RequiredError}
|
|
837
|
-
*/
|
|
838
|
-
apiExamplesIdPut: async (id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
839
|
-
// verify required parameter 'id' is not null or undefined
|
|
840
|
-
assertParamExists('apiExamplesIdPut', 'id', id)
|
|
841
|
-
const localVarPath = `/api/examples/{id}`
|
|
842
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
843
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
844
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
845
|
-
let baseOptions;
|
|
846
|
-
if (configuration) {
|
|
847
|
-
baseOptions = configuration.baseOptions;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
851
|
-
const localVarHeaderParameter = {} as any;
|
|
852
|
-
const localVarQueryParameter = {} as any;
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
857
|
-
|
|
858
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
859
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
860
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
861
|
-
localVarRequestOptions.data = serializeDataIfNeeded(apiExamplesIdPutRequest, localVarRequestOptions, configuration)
|
|
862
|
-
|
|
863
|
-
return {
|
|
864
|
-
url: toPathString(localVarUrlObj),
|
|
865
|
-
options: localVarRequestOptions,
|
|
866
|
-
};
|
|
867
|
-
},
|
|
868
|
-
/**
|
|
869
|
-
*
|
|
870
|
-
* @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
|
|
871
|
-
* @param {*} [options] Override http request option.
|
|
872
|
-
* @throws {RequiredError}
|
|
873
|
-
*/
|
|
874
|
-
apiExamplesPost: async (apiExamplesPostRequest?: ApiExamplesPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
875
|
-
const localVarPath = `/api/examples`;
|
|
876
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
877
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
878
|
-
let baseOptions;
|
|
879
|
-
if (configuration) {
|
|
880
|
-
baseOptions = configuration.baseOptions;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
884
|
-
const localVarHeaderParameter = {} as any;
|
|
885
|
-
const localVarQueryParameter = {} as any;
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
890
|
-
|
|
891
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
892
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
893
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
894
|
-
localVarRequestOptions.data = serializeDataIfNeeded(apiExamplesPostRequest, localVarRequestOptions, configuration)
|
|
895
|
-
|
|
896
|
-
return {
|
|
897
|
-
url: toPathString(localVarUrlObj),
|
|
898
|
-
options: localVarRequestOptions,
|
|
899
|
-
};
|
|
900
|
-
},
|
|
901
|
-
}
|
|
902
|
-
};
|
|
903
|
-
|
|
904
|
-
/**
|
|
905
|
-
* ExampleApi - functional programming interface
|
|
906
|
-
* @export
|
|
907
|
-
*/
|
|
908
|
-
export const ExampleApiFp = function(configuration?: Configuration) {
|
|
909
|
-
const localVarAxiosParamCreator = ExampleApiAxiosParamCreator(configuration)
|
|
910
|
-
return {
|
|
911
|
-
/**
|
|
912
|
-
*
|
|
913
|
-
* @param {number} [page]
|
|
914
|
-
* @param {number} [limit]
|
|
915
|
-
* @param {*} [options] Override http request option.
|
|
916
|
-
* @throws {RequiredError}
|
|
917
|
-
*/
|
|
918
|
-
async apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiExamplesGet200ResponseInner>>> {
|
|
919
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesGet(page, limit, options);
|
|
920
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
921
|
-
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesGet']?.[localVarOperationServerIndex]?.url;
|
|
922
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
923
|
-
},
|
|
924
|
-
/**
|
|
925
|
-
*
|
|
926
|
-
* @param {string} id
|
|
927
|
-
* @param {*} [options] Override http request option.
|
|
928
|
-
* @throws {RequiredError}
|
|
929
|
-
*/
|
|
930
|
-
async apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
931
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdDelete(id, options);
|
|
932
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
933
|
-
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
934
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
935
|
-
},
|
|
936
|
-
/**
|
|
937
|
-
*
|
|
938
|
-
* @param {string} id
|
|
939
|
-
* @param {*} [options] Override http request option.
|
|
940
|
-
* @throws {RequiredError}
|
|
941
|
-
*/
|
|
942
|
-
async apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>> {
|
|
943
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdGet(id, options);
|
|
944
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
945
|
-
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdGet']?.[localVarOperationServerIndex]?.url;
|
|
946
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
947
|
-
},
|
|
948
|
-
/**
|
|
949
|
-
*
|
|
950
|
-
* @param {string} id
|
|
951
|
-
* @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
|
|
952
|
-
* @param {*} [options] Override http request option.
|
|
953
|
-
* @throws {RequiredError}
|
|
954
|
-
*/
|
|
955
|
-
async apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>> {
|
|
956
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdPut(id, apiExamplesIdPutRequest, options);
|
|
957
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
958
|
-
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdPut']?.[localVarOperationServerIndex]?.url;
|
|
959
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
960
|
-
},
|
|
961
|
-
/**
|
|
962
|
-
*
|
|
963
|
-
* @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
|
|
964
|
-
* @param {*} [options] Override http request option.
|
|
965
|
-
* @throws {RequiredError}
|
|
966
|
-
*/
|
|
967
|
-
async apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>> {
|
|
968
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesPost(apiExamplesPostRequest, options);
|
|
969
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
970
|
-
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesPost']?.[localVarOperationServerIndex]?.url;
|
|
971
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
972
|
-
},
|
|
973
|
-
}
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* ExampleApi - factory interface
|
|
978
|
-
* @export
|
|
979
|
-
*/
|
|
980
|
-
export const ExampleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
981
|
-
const localVarFp = ExampleApiFp(configuration)
|
|
982
|
-
return {
|
|
983
|
-
/**
|
|
984
|
-
*
|
|
985
|
-
* @param {number} [page]
|
|
986
|
-
* @param {number} [limit]
|
|
987
|
-
* @param {*} [options] Override http request option.
|
|
988
|
-
* @throws {RequiredError}
|
|
989
|
-
*/
|
|
990
|
-
apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiExamplesGet200ResponseInner>> {
|
|
991
|
-
return localVarFp.apiExamplesGet(page, limit, options).then((request) => request(axios, basePath));
|
|
992
|
-
},
|
|
993
|
-
/**
|
|
994
|
-
*
|
|
995
|
-
* @param {string} id
|
|
996
|
-
* @param {*} [options] Override http request option.
|
|
997
|
-
* @throws {RequiredError}
|
|
998
|
-
*/
|
|
999
|
-
apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1000
|
-
return localVarFp.apiExamplesIdDelete(id, options).then((request) => request(axios, basePath));
|
|
1001
|
-
},
|
|
1002
|
-
/**
|
|
1003
|
-
*
|
|
1004
|
-
* @param {string} id
|
|
1005
|
-
* @param {*} [options] Override http request option.
|
|
1006
|
-
* @throws {RequiredError}
|
|
1007
|
-
*/
|
|
1008
|
-
apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner> {
|
|
1009
|
-
return localVarFp.apiExamplesIdGet(id, options).then((request) => request(axios, basePath));
|
|
1010
|
-
},
|
|
1011
|
-
/**
|
|
1012
|
-
*
|
|
1013
|
-
* @param {string} id
|
|
1014
|
-
* @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
|
|
1015
|
-
* @param {*} [options] Override http request option.
|
|
1016
|
-
* @throws {RequiredError}
|
|
1017
|
-
*/
|
|
1018
|
-
apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner> {
|
|
1019
|
-
return localVarFp.apiExamplesIdPut(id, apiExamplesIdPutRequest, options).then((request) => request(axios, basePath));
|
|
1020
|
-
},
|
|
1021
|
-
/**
|
|
1022
|
-
*
|
|
1023
|
-
* @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
|
|
1024
|
-
* @param {*} [options] Override http request option.
|
|
1025
|
-
* @throws {RequiredError}
|
|
1026
|
-
*/
|
|
1027
|
-
apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner> {
|
|
1028
|
-
return localVarFp.apiExamplesPost(apiExamplesPostRequest, options).then((request) => request(axios, basePath));
|
|
1029
|
-
},
|
|
1030
|
-
};
|
|
1031
|
-
};
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* ExampleApi - object-oriented interface
|
|
1035
|
-
* @export
|
|
1036
|
-
* @class ExampleApi
|
|
1037
|
-
* @extends {BaseAPI}
|
|
1038
|
-
*/
|
|
1039
|
-
export class ExampleApi extends BaseAPI {
|
|
1040
|
-
/**
|
|
1041
|
-
*
|
|
1042
|
-
* @param {number} [page]
|
|
1043
|
-
* @param {number} [limit]
|
|
1044
|
-
* @param {*} [options] Override http request option.
|
|
1045
|
-
* @throws {RequiredError}
|
|
1046
|
-
* @memberof ExampleApi
|
|
1047
|
-
*/
|
|
1048
|
-
public apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
1049
|
-
return ExampleApiFp(this.configuration).apiExamplesGet(page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
/**
|
|
1053
|
-
*
|
|
1054
|
-
* @param {string} id
|
|
1055
|
-
* @param {*} [options] Override http request option.
|
|
1056
|
-
* @throws {RequiredError}
|
|
1057
|
-
* @memberof ExampleApi
|
|
1058
|
-
*/
|
|
1059
|
-
public apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig) {
|
|
1060
|
-
return ExampleApiFp(this.configuration).apiExamplesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
*
|
|
1065
|
-
* @param {string} id
|
|
1066
|
-
* @param {*} [options] Override http request option.
|
|
1067
|
-
* @throws {RequiredError}
|
|
1068
|
-
* @memberof ExampleApi
|
|
1069
|
-
*/
|
|
1070
|
-
public apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig) {
|
|
1071
|
-
return ExampleApiFp(this.configuration).apiExamplesIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
/**
|
|
1075
|
-
*
|
|
1076
|
-
* @param {string} id
|
|
1077
|
-
* @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
|
|
1078
|
-
* @param {*} [options] Override http request option.
|
|
1079
|
-
* @throws {RequiredError}
|
|
1080
|
-
* @memberof ExampleApi
|
|
1081
|
-
*/
|
|
1082
|
-
public apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig) {
|
|
1083
|
-
return ExampleApiFp(this.configuration).apiExamplesIdPut(id, apiExamplesIdPutRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
/**
|
|
1087
|
-
*
|
|
1088
|
-
* @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
|
|
1089
|
-
* @param {*} [options] Override http request option.
|
|
1090
|
-
* @throws {RequiredError}
|
|
1091
|
-
* @memberof ExampleApi
|
|
1092
|
-
*/
|
|
1093
|
-
public apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig) {
|
|
1094
|
-
return ExampleApiFp(this.configuration).apiExamplesPost(apiExamplesPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
/**
|
|
1101
|
-
* HealthCheckApi - axios parameter creator
|
|
1102
|
-
* @export
|
|
1103
|
-
*/
|
|
1104
|
-
export const HealthCheckApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1105
|
-
return {
|
|
1106
|
-
/**
|
|
1107
|
-
*
|
|
1108
|
-
* @param {*} [options] Override http request option.
|
|
1109
|
-
* @throws {RequiredError}
|
|
1110
|
-
*/
|
|
1111
|
-
apiHealthCheckGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1112
|
-
const localVarPath = `/api/healthCheck`;
|
|
1113
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1114
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1115
|
-
let baseOptions;
|
|
1116
|
-
if (configuration) {
|
|
1117
|
-
baseOptions = configuration.baseOptions;
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1121
|
-
const localVarHeaderParameter = {} as any;
|
|
1122
|
-
const localVarQueryParameter = {} as any;
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1127
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1128
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1129
|
-
|
|
1130
|
-
return {
|
|
1131
|
-
url: toPathString(localVarUrlObj),
|
|
1132
|
-
options: localVarRequestOptions,
|
|
1133
|
-
};
|
|
1134
|
-
},
|
|
1135
|
-
}
|
|
1136
|
-
};
|
|
1137
|
-
|
|
1138
|
-
/**
|
|
1139
|
-
* HealthCheckApi - functional programming interface
|
|
1140
|
-
* @export
|
|
1141
|
-
*/
|
|
1142
|
-
export const HealthCheckApiFp = function(configuration?: Configuration) {
|
|
1143
|
-
const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration)
|
|
1144
|
-
return {
|
|
1145
|
-
/**
|
|
1146
|
-
*
|
|
1147
|
-
* @param {*} [options] Override http request option.
|
|
1148
|
-
* @throws {RequiredError}
|
|
1149
|
-
*/
|
|
1150
|
-
async apiHealthCheckGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiHealthCheckGet200Response>> {
|
|
1151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiHealthCheckGet(options);
|
|
1152
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1153
|
-
const localVarOperationServerBasePath = operationServerMap['HealthCheckApi.apiHealthCheckGet']?.[localVarOperationServerIndex]?.url;
|
|
1154
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1155
|
-
},
|
|
1156
|
-
}
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
/**
|
|
1160
|
-
* HealthCheckApi - factory interface
|
|
1161
|
-
* @export
|
|
1162
|
-
*/
|
|
1163
|
-
export const HealthCheckApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1164
|
-
const localVarFp = HealthCheckApiFp(configuration)
|
|
1165
|
-
return {
|
|
1166
|
-
/**
|
|
1167
|
-
*
|
|
1168
|
-
* @param {*} [options] Override http request option.
|
|
1169
|
-
* @throws {RequiredError}
|
|
1170
|
-
*/
|
|
1171
|
-
apiHealthCheckGet(options?: RawAxiosRequestConfig): AxiosPromise<ApiHealthCheckGet200Response> {
|
|
1172
|
-
return localVarFp.apiHealthCheckGet(options).then((request) => request(axios, basePath));
|
|
1173
|
-
},
|
|
1174
|
-
};
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* HealthCheckApi - object-oriented interface
|
|
1179
|
-
* @export
|
|
1180
|
-
* @class HealthCheckApi
|
|
1181
|
-
* @extends {BaseAPI}
|
|
1182
|
-
*/
|
|
1183
|
-
export class HealthCheckApi extends BaseAPI {
|
|
1184
|
-
/**
|
|
1185
|
-
*
|
|
1186
|
-
* @param {*} [options] Override http request option.
|
|
1187
|
-
* @throws {RequiredError}
|
|
1188
|
-
* @memberof HealthCheckApi
|
|
1189
|
-
*/
|
|
1190
|
-
public apiHealthCheckGet(options?: RawAxiosRequestConfig) {
|
|
1191
|
-
return HealthCheckApiFp(this.configuration).apiHealthCheckGet(options).then((request) => request(this.axios, this.basePath));
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
/**
|
|
1198
|
-
* NewsApi - axios parameter creator
|
|
1199
|
-
* @export
|
|
1200
|
-
*/
|
|
1201
|
-
export const NewsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1202
|
-
return {
|
|
1203
|
-
/**
|
|
1204
|
-
*
|
|
1205
|
-
* @param {string} [page]
|
|
1206
|
-
* @param {string} [perPage]
|
|
1207
|
-
* @param {string} [leagueDescription]
|
|
1208
|
-
* @param {string} [searchTerm]
|
|
1209
|
-
* @param {*} [options] Override http request option.
|
|
1210
|
-
* @throws {RequiredError}
|
|
1211
|
-
*/
|
|
1212
|
-
apiNewsGet: async (page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1213
|
-
const localVarPath = `/api/news`;
|
|
1214
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1215
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1216
|
-
let baseOptions;
|
|
1217
|
-
if (configuration) {
|
|
1218
|
-
baseOptions = configuration.baseOptions;
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1222
|
-
const localVarHeaderParameter = {} as any;
|
|
1223
|
-
const localVarQueryParameter = {} as any;
|
|
1224
|
-
|
|
1225
|
-
if (page !== undefined) {
|
|
1226
|
-
localVarQueryParameter['page'] = page;
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
if (perPage !== undefined) {
|
|
1230
|
-
localVarQueryParameter['perPage'] = perPage;
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
if (leagueDescription !== undefined) {
|
|
1234
|
-
localVarQueryParameter['leagueDescription'] = leagueDescription;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
if (searchTerm !== undefined) {
|
|
1238
|
-
localVarQueryParameter['searchTerm'] = searchTerm;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1244
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1245
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1246
|
-
|
|
1247
|
-
return {
|
|
1248
|
-
url: toPathString(localVarUrlObj),
|
|
1249
|
-
options: localVarRequestOptions,
|
|
1250
|
-
};
|
|
1251
|
-
},
|
|
1252
|
-
/**
|
|
1253
|
-
*
|
|
1254
|
-
* @param {string} id
|
|
1255
|
-
* @param {*} [options] Override http request option.
|
|
1256
|
-
* @throws {RequiredError}
|
|
1257
|
-
*/
|
|
1258
|
-
apiNewsIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1259
|
-
// verify required parameter 'id' is not null or undefined
|
|
1260
|
-
assertParamExists('apiNewsIdGet', 'id', id)
|
|
1261
|
-
const localVarPath = `/api/news/{id}`
|
|
1262
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1263
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1264
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1265
|
-
let baseOptions;
|
|
1266
|
-
if (configuration) {
|
|
1267
|
-
baseOptions = configuration.baseOptions;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1271
|
-
const localVarHeaderParameter = {} as any;
|
|
1272
|
-
const localVarQueryParameter = {} as any;
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1277
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1278
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1279
|
-
|
|
1280
|
-
return {
|
|
1281
|
-
url: toPathString(localVarUrlObj),
|
|
1282
|
-
options: localVarRequestOptions,
|
|
1283
|
-
};
|
|
1284
|
-
},
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
|
-
|
|
1288
|
-
/**
|
|
1289
|
-
* NewsApi - functional programming interface
|
|
1290
|
-
* @export
|
|
1291
|
-
*/
|
|
1292
|
-
export const NewsApiFp = function(configuration?: Configuration) {
|
|
1293
|
-
const localVarAxiosParamCreator = NewsApiAxiosParamCreator(configuration)
|
|
1294
|
-
return {
|
|
1295
|
-
/**
|
|
1296
|
-
*
|
|
1297
|
-
* @param {string} [page]
|
|
1298
|
-
* @param {string} [perPage]
|
|
1299
|
-
* @param {string} [leagueDescription]
|
|
1300
|
-
* @param {string} [searchTerm]
|
|
1301
|
-
* @param {*} [options] Override http request option.
|
|
1302
|
-
* @throws {RequiredError}
|
|
1303
|
-
*/
|
|
1304
|
-
async apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsGet200Response>> {
|
|
1305
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsGet(page, perPage, leagueDescription, searchTerm, options);
|
|
1306
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1307
|
-
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsGet']?.[localVarOperationServerIndex]?.url;
|
|
1308
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1309
|
-
},
|
|
1310
|
-
/**
|
|
1311
|
-
*
|
|
1312
|
-
* @param {string} id
|
|
1313
|
-
* @param {*} [options] Override http request option.
|
|
1314
|
-
* @throws {RequiredError}
|
|
1315
|
-
*/
|
|
1316
|
-
async apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsIdGet200Response>> {
|
|
1317
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsIdGet(id, options);
|
|
1318
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1319
|
-
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsIdGet']?.[localVarOperationServerIndex]?.url;
|
|
1320
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1321
|
-
},
|
|
1322
|
-
}
|
|
1323
|
-
};
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* NewsApi - factory interface
|
|
1327
|
-
* @export
|
|
1328
|
-
*/
|
|
1329
|
-
export const NewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1330
|
-
const localVarFp = NewsApiFp(configuration)
|
|
1331
|
-
return {
|
|
1332
|
-
/**
|
|
1333
|
-
*
|
|
1334
|
-
* @param {string} [page]
|
|
1335
|
-
* @param {string} [perPage]
|
|
1336
|
-
* @param {string} [leagueDescription]
|
|
1337
|
-
* @param {string} [searchTerm]
|
|
1338
|
-
* @param {*} [options] Override http request option.
|
|
1339
|
-
* @throws {RequiredError}
|
|
1340
|
-
*/
|
|
1341
|
-
apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsGet200Response> {
|
|
1342
|
-
return localVarFp.apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(axios, basePath));
|
|
1343
|
-
},
|
|
1344
|
-
/**
|
|
1345
|
-
*
|
|
1346
|
-
* @param {string} id
|
|
1347
|
-
* @param {*} [options] Override http request option.
|
|
1348
|
-
* @throws {RequiredError}
|
|
1349
|
-
*/
|
|
1350
|
-
apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsIdGet200Response> {
|
|
1351
|
-
return localVarFp.apiNewsIdGet(id, options).then((request) => request(axios, basePath));
|
|
1352
|
-
},
|
|
1353
|
-
};
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1356
|
-
/**
|
|
1357
|
-
* NewsApi - object-oriented interface
|
|
1358
|
-
* @export
|
|
1359
|
-
* @class NewsApi
|
|
1360
|
-
* @extends {BaseAPI}
|
|
1361
|
-
*/
|
|
1362
|
-
export class NewsApi extends BaseAPI {
|
|
1363
|
-
/**
|
|
1364
|
-
*
|
|
1365
|
-
* @param {string} [page]
|
|
1366
|
-
* @param {string} [perPage]
|
|
1367
|
-
* @param {string} [leagueDescription]
|
|
1368
|
-
* @param {string} [searchTerm]
|
|
1369
|
-
* @param {*} [options] Override http request option.
|
|
1370
|
-
* @throws {RequiredError}
|
|
1371
|
-
* @memberof NewsApi
|
|
1372
|
-
*/
|
|
1373
|
-
public apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig) {
|
|
1374
|
-
return NewsApiFp(this.configuration).apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(this.axios, this.basePath));
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
*
|
|
1379
|
-
* @param {string} id
|
|
1380
|
-
* @param {*} [options] Override http request option.
|
|
1381
|
-
* @throws {RequiredError}
|
|
1382
|
-
* @memberof NewsApi
|
|
1383
|
-
*/
|
|
1384
|
-
public apiNewsIdGet(id: string, options?: RawAxiosRequestConfig) {
|
|
1385
|
-
return NewsApiFp(this.configuration).apiNewsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
/**
|
|
1392
|
-
* PadelApi - axios parameter creator
|
|
1393
|
-
* @export
|
|
1394
|
-
*/
|
|
1395
|
-
export const PadelApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1396
|
-
return {
|
|
1397
|
-
/**
|
|
1398
|
-
*
|
|
1399
|
-
* @summary List padel matches
|
|
1400
|
-
* @param {*} [options] Override http request option.
|
|
1401
|
-
* @throws {RequiredError}
|
|
1402
|
-
*/
|
|
1403
|
-
apiPadelMatchesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1404
|
-
const localVarPath = `/api/padel/matches`;
|
|
1405
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1406
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1407
|
-
let baseOptions;
|
|
1408
|
-
if (configuration) {
|
|
1409
|
-
baseOptions = configuration.baseOptions;
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1413
|
-
const localVarHeaderParameter = {} as any;
|
|
1414
|
-
const localVarQueryParameter = {} as any;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1419
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1420
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1421
|
-
|
|
1422
|
-
return {
|
|
1423
|
-
url: toPathString(localVarUrlObj),
|
|
1424
|
-
options: localVarRequestOptions,
|
|
1425
|
-
};
|
|
1426
|
-
},
|
|
1427
|
-
}
|
|
1428
|
-
};
|
|
1429
|
-
|
|
1430
|
-
/**
|
|
1431
|
-
* PadelApi - functional programming interface
|
|
1432
|
-
* @export
|
|
1433
|
-
*/
|
|
1434
|
-
export const PadelApiFp = function(configuration?: Configuration) {
|
|
1435
|
-
const localVarAxiosParamCreator = PadelApiAxiosParamCreator(configuration)
|
|
1436
|
-
return {
|
|
1437
|
-
/**
|
|
1438
|
-
*
|
|
1439
|
-
* @summary List padel matches
|
|
1440
|
-
* @param {*} [options] Override http request option.
|
|
1441
|
-
* @throws {RequiredError}
|
|
1442
|
-
*/
|
|
1443
|
-
async apiPadelMatchesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiPadelMatchesGet200ResponseInner>>> {
|
|
1444
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiPadelMatchesGet(options);
|
|
1445
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1446
|
-
const localVarOperationServerBasePath = operationServerMap['PadelApi.apiPadelMatchesGet']?.[localVarOperationServerIndex]?.url;
|
|
1447
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1448
|
-
},
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
* PadelApi - factory interface
|
|
1454
|
-
* @export
|
|
1455
|
-
*/
|
|
1456
|
-
export const PadelApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1457
|
-
const localVarFp = PadelApiFp(configuration)
|
|
1458
|
-
return {
|
|
1459
|
-
/**
|
|
1460
|
-
*
|
|
1461
|
-
* @summary List padel matches
|
|
1462
|
-
* @param {*} [options] Override http request option.
|
|
1463
|
-
* @throws {RequiredError}
|
|
1464
|
-
*/
|
|
1465
|
-
apiPadelMatchesGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiPadelMatchesGet200ResponseInner>> {
|
|
1466
|
-
return localVarFp.apiPadelMatchesGet(options).then((request) => request(axios, basePath));
|
|
1467
|
-
},
|
|
1468
|
-
};
|
|
1469
|
-
};
|
|
1470
|
-
|
|
1471
|
-
/**
|
|
1472
|
-
* PadelApi - object-oriented interface
|
|
1473
|
-
* @export
|
|
1474
|
-
* @class PadelApi
|
|
1475
|
-
* @extends {BaseAPI}
|
|
1476
|
-
*/
|
|
1477
|
-
export class PadelApi extends BaseAPI {
|
|
1478
|
-
/**
|
|
1479
|
-
*
|
|
1480
|
-
* @summary List padel matches
|
|
1481
|
-
* @param {*} [options] Override http request option.
|
|
1482
|
-
* @throws {RequiredError}
|
|
1483
|
-
* @memberof PadelApi
|
|
1484
|
-
*/
|
|
1485
|
-
public apiPadelMatchesGet(options?: RawAxiosRequestConfig) {
|
|
1486
|
-
return PadelApiFp(this.configuration).apiPadelMatchesGet(options).then((request) => request(this.axios, this.basePath));
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface ApiExamplesGet200ResponseInner
|
|
30
|
+
*/
|
|
31
|
+
export interface ApiExamplesGet200ResponseInner {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ApiExamplesGet200ResponseInner
|
|
36
|
+
*/
|
|
37
|
+
'id': string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ApiExamplesGet200ResponseInner
|
|
42
|
+
*/
|
|
43
|
+
'name': string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ApiExamplesGet200ResponseInner
|
|
48
|
+
*/
|
|
49
|
+
'email': string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ApiExamplesGet200ResponseInner
|
|
54
|
+
*/
|
|
55
|
+
'wkwkwkwk': string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ApiExamplesGet200ResponseInner
|
|
60
|
+
*/
|
|
61
|
+
'wkwkwkwk2': string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @export
|
|
66
|
+
* @interface ApiExamplesIdPutRequest
|
|
67
|
+
*/
|
|
68
|
+
export interface ApiExamplesIdPutRequest {
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof ApiExamplesIdPutRequest
|
|
73
|
+
*/
|
|
74
|
+
'name'?: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof ApiExamplesIdPutRequest
|
|
79
|
+
*/
|
|
80
|
+
'email'?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @export
|
|
85
|
+
* @interface ApiExamplesPostRequest
|
|
86
|
+
*/
|
|
87
|
+
export interface ApiExamplesPostRequest {
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof ApiExamplesPostRequest
|
|
92
|
+
*/
|
|
93
|
+
'name': string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof ApiExamplesPostRequest
|
|
98
|
+
*/
|
|
99
|
+
'email': string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @export
|
|
104
|
+
* @interface ApiHealthCheckGet200Response
|
|
105
|
+
*/
|
|
106
|
+
export interface ApiHealthCheckGet200Response {
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof ApiHealthCheckGet200Response
|
|
111
|
+
*/
|
|
112
|
+
'success': boolean;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof ApiHealthCheckGet200Response
|
|
117
|
+
*/
|
|
118
|
+
'message': string;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {any}
|
|
122
|
+
* @memberof ApiHealthCheckGet200Response
|
|
123
|
+
*/
|
|
124
|
+
'responseObject'?: any | null;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof ApiHealthCheckGet200Response
|
|
129
|
+
*/
|
|
130
|
+
'statusCode': number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @export
|
|
135
|
+
* @interface ApiNewsGet200Response
|
|
136
|
+
*/
|
|
137
|
+
export interface ApiNewsGet200Response {
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof ApiNewsGet200Response
|
|
142
|
+
*/
|
|
143
|
+
'success': boolean;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof ApiNewsGet200Response
|
|
148
|
+
*/
|
|
149
|
+
'message': string;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {ApiNewsGet200ResponseResponseObject}
|
|
153
|
+
* @memberof ApiNewsGet200Response
|
|
154
|
+
*/
|
|
155
|
+
'responseObject'?: ApiNewsGet200ResponseResponseObject;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {number}
|
|
159
|
+
* @memberof ApiNewsGet200Response
|
|
160
|
+
*/
|
|
161
|
+
'statusCode': number;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @export
|
|
166
|
+
* @interface ApiNewsGet200ResponseResponseObject
|
|
167
|
+
*/
|
|
168
|
+
export interface ApiNewsGet200ResponseResponseObject {
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
172
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
173
|
+
*/
|
|
174
|
+
'items': Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {number}
|
|
178
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
179
|
+
*/
|
|
180
|
+
'currentPage': number;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {number}
|
|
184
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
185
|
+
*/
|
|
186
|
+
'totalItems': number;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {number}
|
|
190
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
191
|
+
*/
|
|
192
|
+
'totalPages': number;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {number}
|
|
196
|
+
* @memberof ApiNewsGet200ResponseResponseObject
|
|
197
|
+
*/
|
|
198
|
+
'pageSize': number;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @export
|
|
203
|
+
* @interface ApiNewsGet200ResponseResponseObjectItemsInner
|
|
204
|
+
*/
|
|
205
|
+
export interface ApiNewsGet200ResponseResponseObjectItemsInner {
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {number}
|
|
209
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
210
|
+
*/
|
|
211
|
+
'id': number;
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type {string}
|
|
215
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
216
|
+
*/
|
|
217
|
+
'thumbnail': string | null;
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
222
|
+
*/
|
|
223
|
+
'title': string | null;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {string}
|
|
227
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
228
|
+
*/
|
|
229
|
+
'source': string | null;
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @type {string}
|
|
233
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
234
|
+
*/
|
|
235
|
+
'byline': string | null;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof ApiNewsGet200ResponseResponseObjectItemsInner
|
|
240
|
+
*/
|
|
241
|
+
'publishedAt': string | null;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @export
|
|
246
|
+
* @interface ApiNewsIdGet200Response
|
|
247
|
+
*/
|
|
248
|
+
export interface ApiNewsIdGet200Response {
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {boolean}
|
|
252
|
+
* @memberof ApiNewsIdGet200Response
|
|
253
|
+
*/
|
|
254
|
+
'success': boolean;
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @type {string}
|
|
258
|
+
* @memberof ApiNewsIdGet200Response
|
|
259
|
+
*/
|
|
260
|
+
'message': string;
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @type {ApiNewsIdGet200ResponseResponseObject}
|
|
264
|
+
* @memberof ApiNewsIdGet200Response
|
|
265
|
+
*/
|
|
266
|
+
'responseObject'?: ApiNewsIdGet200ResponseResponseObject;
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @type {number}
|
|
270
|
+
* @memberof ApiNewsIdGet200Response
|
|
271
|
+
*/
|
|
272
|
+
'statusCode': number;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
*
|
|
276
|
+
* @export
|
|
277
|
+
* @interface ApiNewsIdGet200ResponseResponseObject
|
|
278
|
+
*/
|
|
279
|
+
export interface ApiNewsIdGet200ResponseResponseObject {
|
|
280
|
+
/**
|
|
281
|
+
*
|
|
282
|
+
* @type {number}
|
|
283
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
284
|
+
*/
|
|
285
|
+
'id': number;
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @type {string}
|
|
289
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
290
|
+
*/
|
|
291
|
+
'title': string | null;
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @type {string}
|
|
295
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
296
|
+
*/
|
|
297
|
+
'description': string | null;
|
|
298
|
+
/**
|
|
299
|
+
*
|
|
300
|
+
* @type {string}
|
|
301
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
302
|
+
*/
|
|
303
|
+
'html_content': string | null;
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @type {string}
|
|
307
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
308
|
+
*/
|
|
309
|
+
'source': string | null;
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
314
|
+
*/
|
|
315
|
+
'keywords': string | null;
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @type {string}
|
|
319
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
320
|
+
*/
|
|
321
|
+
'byline': string | null;
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
326
|
+
*/
|
|
327
|
+
'publishedAt': string | null;
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @type {string}
|
|
331
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
332
|
+
*/
|
|
333
|
+
'thumbnail': string | null;
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
* @type {string}
|
|
337
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
338
|
+
*/
|
|
339
|
+
'createdAt': string;
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
* @type {string}
|
|
343
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
344
|
+
*/
|
|
345
|
+
'updatedAt': string;
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* @type {Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>}
|
|
349
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
350
|
+
*/
|
|
351
|
+
'leagues': Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>;
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
|
|
355
|
+
* @memberof ApiNewsIdGet200ResponseResponseObject
|
|
356
|
+
*/
|
|
357
|
+
'relatedNews': Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @export
|
|
362
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
363
|
+
*/
|
|
364
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInner {
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @type {ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague}
|
|
368
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInner
|
|
369
|
+
*/
|
|
370
|
+
'league': ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @export
|
|
375
|
+
* @interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
376
|
+
*/
|
|
377
|
+
export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @type {number}
|
|
381
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
382
|
+
*/
|
|
383
|
+
'id': number;
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {string}
|
|
387
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
388
|
+
*/
|
|
389
|
+
'description': string;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague
|
|
394
|
+
*/
|
|
395
|
+
'abbreviation': string | null;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @export
|
|
400
|
+
* @interface ApiPadelMatchesGet200ResponseInner
|
|
401
|
+
*/
|
|
402
|
+
export interface ApiPadelMatchesGet200ResponseInner {
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @type {number}
|
|
406
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
407
|
+
*/
|
|
408
|
+
'id': number;
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @type {number}
|
|
412
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
413
|
+
*/
|
|
414
|
+
'tournamentId': number;
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @type {string}
|
|
418
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
419
|
+
*/
|
|
420
|
+
'name': string;
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @type {number}
|
|
424
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
425
|
+
*/
|
|
426
|
+
'round': number;
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerScoreInner>}
|
|
430
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
431
|
+
*/
|
|
432
|
+
'score': Array<ApiPadelMatchesGet200ResponseInnerScoreInner>;
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
* @type {ApiPadelMatchesGet200ResponseInnerPlayers}
|
|
436
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
437
|
+
*/
|
|
438
|
+
'players': ApiPadelMatchesGet200ResponseInnerPlayers;
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @type {string}
|
|
442
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
443
|
+
*/
|
|
444
|
+
'playedAt': string;
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @type {string}
|
|
448
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
449
|
+
*/
|
|
450
|
+
'status': string;
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
* @type {string}
|
|
454
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
455
|
+
*/
|
|
456
|
+
'category': string;
|
|
457
|
+
/**
|
|
458
|
+
*
|
|
459
|
+
* @type {string}
|
|
460
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
461
|
+
*/
|
|
462
|
+
'duration': string | null;
|
|
463
|
+
/**
|
|
464
|
+
*
|
|
465
|
+
* @type {string}
|
|
466
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
467
|
+
*/
|
|
468
|
+
'court': string | null;
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @type {ApiPadelMatchesGet200ResponseInnerStats}
|
|
472
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
473
|
+
*/
|
|
474
|
+
'stats': ApiPadelMatchesGet200ResponseInnerStats;
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
* @type {ApiPadelMatchesGet200ResponseInnerSets}
|
|
478
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
479
|
+
*/
|
|
480
|
+
'sets': ApiPadelMatchesGet200ResponseInnerSets;
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @type {string}
|
|
484
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
485
|
+
*/
|
|
486
|
+
'createdAt': string;
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* @type {string}
|
|
490
|
+
* @memberof ApiPadelMatchesGet200ResponseInner
|
|
491
|
+
*/
|
|
492
|
+
'updatedAt': string;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
*
|
|
496
|
+
* @export
|
|
497
|
+
* @interface ApiPadelMatchesGet200ResponseInnerPlayers
|
|
498
|
+
*/
|
|
499
|
+
export interface ApiPadelMatchesGet200ResponseInnerPlayers {
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>}
|
|
503
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayers
|
|
504
|
+
*/
|
|
505
|
+
'team_1': Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>;
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>}
|
|
509
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayers
|
|
510
|
+
*/
|
|
511
|
+
'team_2': Array<ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner>;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @export
|
|
516
|
+
* @interface ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
517
|
+
*/
|
|
518
|
+
export interface ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner {
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @type {number}
|
|
522
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
523
|
+
*/
|
|
524
|
+
'id': number;
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @type {string}
|
|
528
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
529
|
+
*/
|
|
530
|
+
'name': string;
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
535
|
+
*/
|
|
536
|
+
'self': string;
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* @type {string}
|
|
540
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner
|
|
541
|
+
*/
|
|
542
|
+
'side': string;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @export
|
|
547
|
+
* @interface ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
548
|
+
*/
|
|
549
|
+
export interface ApiPadelMatchesGet200ResponseInnerScoreInner {
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @type {number}
|
|
553
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
554
|
+
*/
|
|
555
|
+
'team_1': number;
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @type {number}
|
|
559
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerScoreInner
|
|
560
|
+
*/
|
|
561
|
+
'team_2': number;
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @export
|
|
566
|
+
* @interface ApiPadelMatchesGet200ResponseInnerSets
|
|
567
|
+
*/
|
|
568
|
+
export interface ApiPadelMatchesGet200ResponseInnerSets {
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @type {number}
|
|
572
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
573
|
+
*/
|
|
574
|
+
'id': number;
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @type {string}
|
|
578
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
579
|
+
*/
|
|
580
|
+
'self': string;
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInner>}
|
|
584
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
585
|
+
*/
|
|
586
|
+
'sets': Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInner>;
|
|
587
|
+
/**
|
|
588
|
+
*
|
|
589
|
+
* @type {ApiPadelMatchesGet200ResponseInnerStatsConnections}
|
|
590
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSets
|
|
591
|
+
*/
|
|
592
|
+
'connections': ApiPadelMatchesGet200ResponseInnerStatsConnections;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @export
|
|
597
|
+
* @interface ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
598
|
+
*/
|
|
599
|
+
export interface ApiPadelMatchesGet200ResponseInnerSetsSetsInner {
|
|
600
|
+
/**
|
|
601
|
+
*
|
|
602
|
+
* @type {Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner>}
|
|
603
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
604
|
+
*/
|
|
605
|
+
'games': Array<ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner>;
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @type {number}
|
|
609
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInner
|
|
610
|
+
*/
|
|
611
|
+
'set_number': number;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @export
|
|
616
|
+
* @interface ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
617
|
+
*/
|
|
618
|
+
export interface ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner {
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @type {Array<string>}
|
|
622
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
623
|
+
*/
|
|
624
|
+
'points': Array<string>;
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* @type {string}
|
|
628
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
629
|
+
*/
|
|
630
|
+
'game_score': string;
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
* @type {number}
|
|
634
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner
|
|
635
|
+
*/
|
|
636
|
+
'game_number': number;
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* @export
|
|
641
|
+
* @interface ApiPadelMatchesGet200ResponseInnerStats
|
|
642
|
+
*/
|
|
643
|
+
export interface ApiPadelMatchesGet200ResponseInnerStats {
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @type {number}
|
|
647
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
648
|
+
*/
|
|
649
|
+
'id': number;
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @type {string}
|
|
653
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
654
|
+
*/
|
|
655
|
+
'self': string;
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
659
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
660
|
+
*/
|
|
661
|
+
'match': { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
665
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
666
|
+
*/
|
|
667
|
+
'set_1': { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
671
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
672
|
+
*/
|
|
673
|
+
'set_2': { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @type {{ [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; }}
|
|
677
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
678
|
+
*/
|
|
679
|
+
'set_3'?: { [key: string]: ApiPadelMatchesGet200ResponseInnerStatsMatchValue; };
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
* @type {ApiPadelMatchesGet200ResponseInnerStatsConnections}
|
|
683
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStats
|
|
684
|
+
*/
|
|
685
|
+
'connections': ApiPadelMatchesGet200ResponseInnerStatsConnections;
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
*
|
|
689
|
+
* @export
|
|
690
|
+
* @interface ApiPadelMatchesGet200ResponseInnerStatsConnections
|
|
691
|
+
*/
|
|
692
|
+
export interface ApiPadelMatchesGet200ResponseInnerStatsConnections {
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @type {string}
|
|
696
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStatsConnections
|
|
697
|
+
*/
|
|
698
|
+
'match': string;
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
*
|
|
702
|
+
* @export
|
|
703
|
+
* @interface ApiPadelMatchesGet200ResponseInnerStatsMatchValue
|
|
704
|
+
*/
|
|
705
|
+
export interface ApiPadelMatchesGet200ResponseInnerStatsMatchValue {
|
|
706
|
+
/**
|
|
707
|
+
*
|
|
708
|
+
* @type {string}
|
|
709
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStatsMatchValue
|
|
710
|
+
*/
|
|
711
|
+
'team_1': string;
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @type {string}
|
|
715
|
+
* @memberof ApiPadelMatchesGet200ResponseInnerStatsMatchValue
|
|
716
|
+
*/
|
|
717
|
+
'team_2': string;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* ExampleApi - axios parameter creator
|
|
722
|
+
* @export
|
|
723
|
+
*/
|
|
724
|
+
export const ExampleApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
725
|
+
return {
|
|
726
|
+
/**
|
|
727
|
+
*
|
|
728
|
+
* @param {number} [page]
|
|
729
|
+
* @param {number} [limit]
|
|
730
|
+
* @param {*} [options] Override http request option.
|
|
731
|
+
* @throws {RequiredError}
|
|
732
|
+
*/
|
|
733
|
+
apiExamplesGet: async (page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
734
|
+
const localVarPath = `/api/examples`;
|
|
735
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
736
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
737
|
+
let baseOptions;
|
|
738
|
+
if (configuration) {
|
|
739
|
+
baseOptions = configuration.baseOptions;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
743
|
+
const localVarHeaderParameter = {} as any;
|
|
744
|
+
const localVarQueryParameter = {} as any;
|
|
745
|
+
|
|
746
|
+
if (page !== undefined) {
|
|
747
|
+
localVarQueryParameter['page'] = page;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
if (limit !== undefined) {
|
|
751
|
+
localVarQueryParameter['limit'] = limit;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
757
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
758
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
759
|
+
|
|
760
|
+
return {
|
|
761
|
+
url: toPathString(localVarUrlObj),
|
|
762
|
+
options: localVarRequestOptions,
|
|
763
|
+
};
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @param {string} id
|
|
768
|
+
* @param {*} [options] Override http request option.
|
|
769
|
+
* @throws {RequiredError}
|
|
770
|
+
*/
|
|
771
|
+
apiExamplesIdDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
772
|
+
// verify required parameter 'id' is not null or undefined
|
|
773
|
+
assertParamExists('apiExamplesIdDelete', 'id', id)
|
|
774
|
+
const localVarPath = `/api/examples/{id}`
|
|
775
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
776
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
777
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
778
|
+
let baseOptions;
|
|
779
|
+
if (configuration) {
|
|
780
|
+
baseOptions = configuration.baseOptions;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
784
|
+
const localVarHeaderParameter = {} as any;
|
|
785
|
+
const localVarQueryParameter = {} as any;
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
790
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
791
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
792
|
+
|
|
793
|
+
return {
|
|
794
|
+
url: toPathString(localVarUrlObj),
|
|
795
|
+
options: localVarRequestOptions,
|
|
796
|
+
};
|
|
797
|
+
},
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
* @param {string} id
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
apiExamplesIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
805
|
+
// verify required parameter 'id' is not null or undefined
|
|
806
|
+
assertParamExists('apiExamplesIdGet', 'id', id)
|
|
807
|
+
const localVarPath = `/api/examples/{id}`
|
|
808
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
810
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
811
|
+
let baseOptions;
|
|
812
|
+
if (configuration) {
|
|
813
|
+
baseOptions = configuration.baseOptions;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
817
|
+
const localVarHeaderParameter = {} as any;
|
|
818
|
+
const localVarQueryParameter = {} as any;
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
823
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
824
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
825
|
+
|
|
826
|
+
return {
|
|
827
|
+
url: toPathString(localVarUrlObj),
|
|
828
|
+
options: localVarRequestOptions,
|
|
829
|
+
};
|
|
830
|
+
},
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @param {string} id
|
|
834
|
+
* @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
apiExamplesIdPut: async (id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
839
|
+
// verify required parameter 'id' is not null or undefined
|
|
840
|
+
assertParamExists('apiExamplesIdPut', 'id', id)
|
|
841
|
+
const localVarPath = `/api/examples/{id}`
|
|
842
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
843
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
844
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
845
|
+
let baseOptions;
|
|
846
|
+
if (configuration) {
|
|
847
|
+
baseOptions = configuration.baseOptions;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
851
|
+
const localVarHeaderParameter = {} as any;
|
|
852
|
+
const localVarQueryParameter = {} as any;
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
857
|
+
|
|
858
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
859
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
860
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
861
|
+
localVarRequestOptions.data = serializeDataIfNeeded(apiExamplesIdPutRequest, localVarRequestOptions, configuration)
|
|
862
|
+
|
|
863
|
+
return {
|
|
864
|
+
url: toPathString(localVarUrlObj),
|
|
865
|
+
options: localVarRequestOptions,
|
|
866
|
+
};
|
|
867
|
+
},
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
apiExamplesPost: async (apiExamplesPostRequest?: ApiExamplesPostRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
875
|
+
const localVarPath = `/api/examples`;
|
|
876
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
877
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
878
|
+
let baseOptions;
|
|
879
|
+
if (configuration) {
|
|
880
|
+
baseOptions = configuration.baseOptions;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
884
|
+
const localVarHeaderParameter = {} as any;
|
|
885
|
+
const localVarQueryParameter = {} as any;
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
890
|
+
|
|
891
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
892
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
893
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
894
|
+
localVarRequestOptions.data = serializeDataIfNeeded(apiExamplesPostRequest, localVarRequestOptions, configuration)
|
|
895
|
+
|
|
896
|
+
return {
|
|
897
|
+
url: toPathString(localVarUrlObj),
|
|
898
|
+
options: localVarRequestOptions,
|
|
899
|
+
};
|
|
900
|
+
},
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* ExampleApi - functional programming interface
|
|
906
|
+
* @export
|
|
907
|
+
*/
|
|
908
|
+
export const ExampleApiFp = function(configuration?: Configuration) {
|
|
909
|
+
const localVarAxiosParamCreator = ExampleApiAxiosParamCreator(configuration)
|
|
910
|
+
return {
|
|
911
|
+
/**
|
|
912
|
+
*
|
|
913
|
+
* @param {number} [page]
|
|
914
|
+
* @param {number} [limit]
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
async apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiExamplesGet200ResponseInner>>> {
|
|
919
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesGet(page, limit, options);
|
|
920
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
921
|
+
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesGet']?.[localVarOperationServerIndex]?.url;
|
|
922
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
923
|
+
},
|
|
924
|
+
/**
|
|
925
|
+
*
|
|
926
|
+
* @param {string} id
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
async apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
931
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdDelete(id, options);
|
|
932
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
933
|
+
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
934
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
935
|
+
},
|
|
936
|
+
/**
|
|
937
|
+
*
|
|
938
|
+
* @param {string} id
|
|
939
|
+
* @param {*} [options] Override http request option.
|
|
940
|
+
* @throws {RequiredError}
|
|
941
|
+
*/
|
|
942
|
+
async apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>> {
|
|
943
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdGet(id, options);
|
|
944
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
945
|
+
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdGet']?.[localVarOperationServerIndex]?.url;
|
|
946
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
947
|
+
},
|
|
948
|
+
/**
|
|
949
|
+
*
|
|
950
|
+
* @param {string} id
|
|
951
|
+
* @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
async apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>> {
|
|
956
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesIdPut(id, apiExamplesIdPutRequest, options);
|
|
957
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
958
|
+
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesIdPut']?.[localVarOperationServerIndex]?.url;
|
|
959
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
960
|
+
},
|
|
961
|
+
/**
|
|
962
|
+
*
|
|
963
|
+
* @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
|
|
964
|
+
* @param {*} [options] Override http request option.
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
*/
|
|
967
|
+
async apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiExamplesGet200ResponseInner>> {
|
|
968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiExamplesPost(apiExamplesPostRequest, options);
|
|
969
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
970
|
+
const localVarOperationServerBasePath = operationServerMap['ExampleApi.apiExamplesPost']?.[localVarOperationServerIndex]?.url;
|
|
971
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
972
|
+
},
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* ExampleApi - factory interface
|
|
978
|
+
* @export
|
|
979
|
+
*/
|
|
980
|
+
export const ExampleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
981
|
+
const localVarFp = ExampleApiFp(configuration)
|
|
982
|
+
return {
|
|
983
|
+
/**
|
|
984
|
+
*
|
|
985
|
+
* @param {number} [page]
|
|
986
|
+
* @param {number} [limit]
|
|
987
|
+
* @param {*} [options] Override http request option.
|
|
988
|
+
* @throws {RequiredError}
|
|
989
|
+
*/
|
|
990
|
+
apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiExamplesGet200ResponseInner>> {
|
|
991
|
+
return localVarFp.apiExamplesGet(page, limit, options).then((request) => request(axios, basePath));
|
|
992
|
+
},
|
|
993
|
+
/**
|
|
994
|
+
*
|
|
995
|
+
* @param {string} id
|
|
996
|
+
* @param {*} [options] Override http request option.
|
|
997
|
+
* @throws {RequiredError}
|
|
998
|
+
*/
|
|
999
|
+
apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1000
|
+
return localVarFp.apiExamplesIdDelete(id, options).then((request) => request(axios, basePath));
|
|
1001
|
+
},
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* @param {string} id
|
|
1005
|
+
* @param {*} [options] Override http request option.
|
|
1006
|
+
* @throws {RequiredError}
|
|
1007
|
+
*/
|
|
1008
|
+
apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner> {
|
|
1009
|
+
return localVarFp.apiExamplesIdGet(id, options).then((request) => request(axios, basePath));
|
|
1010
|
+
},
|
|
1011
|
+
/**
|
|
1012
|
+
*
|
|
1013
|
+
* @param {string} id
|
|
1014
|
+
* @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
|
|
1015
|
+
* @param {*} [options] Override http request option.
|
|
1016
|
+
* @throws {RequiredError}
|
|
1017
|
+
*/
|
|
1018
|
+
apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner> {
|
|
1019
|
+
return localVarFp.apiExamplesIdPut(id, apiExamplesIdPutRequest, options).then((request) => request(axios, basePath));
|
|
1020
|
+
},
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
|
|
1024
|
+
* @param {*} [options] Override http request option.
|
|
1025
|
+
* @throws {RequiredError}
|
|
1026
|
+
*/
|
|
1027
|
+
apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ApiExamplesGet200ResponseInner> {
|
|
1028
|
+
return localVarFp.apiExamplesPost(apiExamplesPostRequest, options).then((request) => request(axios, basePath));
|
|
1029
|
+
},
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* ExampleApi - object-oriented interface
|
|
1035
|
+
* @export
|
|
1036
|
+
* @class ExampleApi
|
|
1037
|
+
* @extends {BaseAPI}
|
|
1038
|
+
*/
|
|
1039
|
+
export class ExampleApi extends BaseAPI {
|
|
1040
|
+
/**
|
|
1041
|
+
*
|
|
1042
|
+
* @param {number} [page]
|
|
1043
|
+
* @param {number} [limit]
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
* @memberof ExampleApi
|
|
1047
|
+
*/
|
|
1048
|
+
public apiExamplesGet(page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
1049
|
+
return ExampleApiFp(this.configuration).apiExamplesGet(page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
*
|
|
1054
|
+
* @param {string} id
|
|
1055
|
+
* @param {*} [options] Override http request option.
|
|
1056
|
+
* @throws {RequiredError}
|
|
1057
|
+
* @memberof ExampleApi
|
|
1058
|
+
*/
|
|
1059
|
+
public apiExamplesIdDelete(id: string, options?: RawAxiosRequestConfig) {
|
|
1060
|
+
return ExampleApiFp(this.configuration).apiExamplesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
*
|
|
1065
|
+
* @param {string} id
|
|
1066
|
+
* @param {*} [options] Override http request option.
|
|
1067
|
+
* @throws {RequiredError}
|
|
1068
|
+
* @memberof ExampleApi
|
|
1069
|
+
*/
|
|
1070
|
+
public apiExamplesIdGet(id: string, options?: RawAxiosRequestConfig) {
|
|
1071
|
+
return ExampleApiFp(this.configuration).apiExamplesIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
*
|
|
1076
|
+
* @param {string} id
|
|
1077
|
+
* @param {ApiExamplesIdPutRequest} [apiExamplesIdPutRequest]
|
|
1078
|
+
* @param {*} [options] Override http request option.
|
|
1079
|
+
* @throws {RequiredError}
|
|
1080
|
+
* @memberof ExampleApi
|
|
1081
|
+
*/
|
|
1082
|
+
public apiExamplesIdPut(id: string, apiExamplesIdPutRequest?: ApiExamplesIdPutRequest, options?: RawAxiosRequestConfig) {
|
|
1083
|
+
return ExampleApiFp(this.configuration).apiExamplesIdPut(id, apiExamplesIdPutRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
*
|
|
1088
|
+
* @param {ApiExamplesPostRequest} [apiExamplesPostRequest]
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
* @memberof ExampleApi
|
|
1092
|
+
*/
|
|
1093
|
+
public apiExamplesPost(apiExamplesPostRequest?: ApiExamplesPostRequest, options?: RawAxiosRequestConfig) {
|
|
1094
|
+
return ExampleApiFp(this.configuration).apiExamplesPost(apiExamplesPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* HealthCheckApi - axios parameter creator
|
|
1102
|
+
* @export
|
|
1103
|
+
*/
|
|
1104
|
+
export const HealthCheckApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1105
|
+
return {
|
|
1106
|
+
/**
|
|
1107
|
+
*
|
|
1108
|
+
* @param {*} [options] Override http request option.
|
|
1109
|
+
* @throws {RequiredError}
|
|
1110
|
+
*/
|
|
1111
|
+
apiHealthCheckGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1112
|
+
const localVarPath = `/api/healthCheck`;
|
|
1113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1114
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1115
|
+
let baseOptions;
|
|
1116
|
+
if (configuration) {
|
|
1117
|
+
baseOptions = configuration.baseOptions;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1121
|
+
const localVarHeaderParameter = {} as any;
|
|
1122
|
+
const localVarQueryParameter = {} as any;
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1129
|
+
|
|
1130
|
+
return {
|
|
1131
|
+
url: toPathString(localVarUrlObj),
|
|
1132
|
+
options: localVarRequestOptions,
|
|
1133
|
+
};
|
|
1134
|
+
},
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* HealthCheckApi - functional programming interface
|
|
1140
|
+
* @export
|
|
1141
|
+
*/
|
|
1142
|
+
export const HealthCheckApiFp = function(configuration?: Configuration) {
|
|
1143
|
+
const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration)
|
|
1144
|
+
return {
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
*/
|
|
1150
|
+
async apiHealthCheckGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiHealthCheckGet200Response>> {
|
|
1151
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiHealthCheckGet(options);
|
|
1152
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1153
|
+
const localVarOperationServerBasePath = operationServerMap['HealthCheckApi.apiHealthCheckGet']?.[localVarOperationServerIndex]?.url;
|
|
1154
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1155
|
+
},
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* HealthCheckApi - factory interface
|
|
1161
|
+
* @export
|
|
1162
|
+
*/
|
|
1163
|
+
export const HealthCheckApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1164
|
+
const localVarFp = HealthCheckApiFp(configuration)
|
|
1165
|
+
return {
|
|
1166
|
+
/**
|
|
1167
|
+
*
|
|
1168
|
+
* @param {*} [options] Override http request option.
|
|
1169
|
+
* @throws {RequiredError}
|
|
1170
|
+
*/
|
|
1171
|
+
apiHealthCheckGet(options?: RawAxiosRequestConfig): AxiosPromise<ApiHealthCheckGet200Response> {
|
|
1172
|
+
return localVarFp.apiHealthCheckGet(options).then((request) => request(axios, basePath));
|
|
1173
|
+
},
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* HealthCheckApi - object-oriented interface
|
|
1179
|
+
* @export
|
|
1180
|
+
* @class HealthCheckApi
|
|
1181
|
+
* @extends {BaseAPI}
|
|
1182
|
+
*/
|
|
1183
|
+
export class HealthCheckApi extends BaseAPI {
|
|
1184
|
+
/**
|
|
1185
|
+
*
|
|
1186
|
+
* @param {*} [options] Override http request option.
|
|
1187
|
+
* @throws {RequiredError}
|
|
1188
|
+
* @memberof HealthCheckApi
|
|
1189
|
+
*/
|
|
1190
|
+
public apiHealthCheckGet(options?: RawAxiosRequestConfig) {
|
|
1191
|
+
return HealthCheckApiFp(this.configuration).apiHealthCheckGet(options).then((request) => request(this.axios, this.basePath));
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* NewsApi - axios parameter creator
|
|
1199
|
+
* @export
|
|
1200
|
+
*/
|
|
1201
|
+
export const NewsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1202
|
+
return {
|
|
1203
|
+
/**
|
|
1204
|
+
*
|
|
1205
|
+
* @param {string} [page]
|
|
1206
|
+
* @param {string} [perPage]
|
|
1207
|
+
* @param {string} [leagueDescription]
|
|
1208
|
+
* @param {string} [searchTerm]
|
|
1209
|
+
* @param {*} [options] Override http request option.
|
|
1210
|
+
* @throws {RequiredError}
|
|
1211
|
+
*/
|
|
1212
|
+
apiNewsGet: async (page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1213
|
+
const localVarPath = `/api/news`;
|
|
1214
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1215
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1216
|
+
let baseOptions;
|
|
1217
|
+
if (configuration) {
|
|
1218
|
+
baseOptions = configuration.baseOptions;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1222
|
+
const localVarHeaderParameter = {} as any;
|
|
1223
|
+
const localVarQueryParameter = {} as any;
|
|
1224
|
+
|
|
1225
|
+
if (page !== undefined) {
|
|
1226
|
+
localVarQueryParameter['page'] = page;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
if (perPage !== undefined) {
|
|
1230
|
+
localVarQueryParameter['perPage'] = perPage;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
if (leagueDescription !== undefined) {
|
|
1234
|
+
localVarQueryParameter['leagueDescription'] = leagueDescription;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
if (searchTerm !== undefined) {
|
|
1238
|
+
localVarQueryParameter['searchTerm'] = searchTerm;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1245
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1246
|
+
|
|
1247
|
+
return {
|
|
1248
|
+
url: toPathString(localVarUrlObj),
|
|
1249
|
+
options: localVarRequestOptions,
|
|
1250
|
+
};
|
|
1251
|
+
},
|
|
1252
|
+
/**
|
|
1253
|
+
*
|
|
1254
|
+
* @param {string} id
|
|
1255
|
+
* @param {*} [options] Override http request option.
|
|
1256
|
+
* @throws {RequiredError}
|
|
1257
|
+
*/
|
|
1258
|
+
apiNewsIdGet: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1259
|
+
// verify required parameter 'id' is not null or undefined
|
|
1260
|
+
assertParamExists('apiNewsIdGet', 'id', id)
|
|
1261
|
+
const localVarPath = `/api/news/{id}`
|
|
1262
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1263
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1264
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1265
|
+
let baseOptions;
|
|
1266
|
+
if (configuration) {
|
|
1267
|
+
baseOptions = configuration.baseOptions;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1271
|
+
const localVarHeaderParameter = {} as any;
|
|
1272
|
+
const localVarQueryParameter = {} as any;
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1278
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1279
|
+
|
|
1280
|
+
return {
|
|
1281
|
+
url: toPathString(localVarUrlObj),
|
|
1282
|
+
options: localVarRequestOptions,
|
|
1283
|
+
};
|
|
1284
|
+
},
|
|
1285
|
+
}
|
|
1286
|
+
};
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* NewsApi - functional programming interface
|
|
1290
|
+
* @export
|
|
1291
|
+
*/
|
|
1292
|
+
export const NewsApiFp = function(configuration?: Configuration) {
|
|
1293
|
+
const localVarAxiosParamCreator = NewsApiAxiosParamCreator(configuration)
|
|
1294
|
+
return {
|
|
1295
|
+
/**
|
|
1296
|
+
*
|
|
1297
|
+
* @param {string} [page]
|
|
1298
|
+
* @param {string} [perPage]
|
|
1299
|
+
* @param {string} [leagueDescription]
|
|
1300
|
+
* @param {string} [searchTerm]
|
|
1301
|
+
* @param {*} [options] Override http request option.
|
|
1302
|
+
* @throws {RequiredError}
|
|
1303
|
+
*/
|
|
1304
|
+
async apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsGet200Response>> {
|
|
1305
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsGet(page, perPage, leagueDescription, searchTerm, options);
|
|
1306
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1307
|
+
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsGet']?.[localVarOperationServerIndex]?.url;
|
|
1308
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1309
|
+
},
|
|
1310
|
+
/**
|
|
1311
|
+
*
|
|
1312
|
+
* @param {string} id
|
|
1313
|
+
* @param {*} [options] Override http request option.
|
|
1314
|
+
* @throws {RequiredError}
|
|
1315
|
+
*/
|
|
1316
|
+
async apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiNewsIdGet200Response>> {
|
|
1317
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiNewsIdGet(id, options);
|
|
1318
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1319
|
+
const localVarOperationServerBasePath = operationServerMap['NewsApi.apiNewsIdGet']?.[localVarOperationServerIndex]?.url;
|
|
1320
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1321
|
+
},
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* NewsApi - factory interface
|
|
1327
|
+
* @export
|
|
1328
|
+
*/
|
|
1329
|
+
export const NewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1330
|
+
const localVarFp = NewsApiFp(configuration)
|
|
1331
|
+
return {
|
|
1332
|
+
/**
|
|
1333
|
+
*
|
|
1334
|
+
* @param {string} [page]
|
|
1335
|
+
* @param {string} [perPage]
|
|
1336
|
+
* @param {string} [leagueDescription]
|
|
1337
|
+
* @param {string} [searchTerm]
|
|
1338
|
+
* @param {*} [options] Override http request option.
|
|
1339
|
+
* @throws {RequiredError}
|
|
1340
|
+
*/
|
|
1341
|
+
apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsGet200Response> {
|
|
1342
|
+
return localVarFp.apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(axios, basePath));
|
|
1343
|
+
},
|
|
1344
|
+
/**
|
|
1345
|
+
*
|
|
1346
|
+
* @param {string} id
|
|
1347
|
+
* @param {*} [options] Override http request option.
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
*/
|
|
1350
|
+
apiNewsIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiNewsIdGet200Response> {
|
|
1351
|
+
return localVarFp.apiNewsIdGet(id, options).then((request) => request(axios, basePath));
|
|
1352
|
+
},
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* NewsApi - object-oriented interface
|
|
1358
|
+
* @export
|
|
1359
|
+
* @class NewsApi
|
|
1360
|
+
* @extends {BaseAPI}
|
|
1361
|
+
*/
|
|
1362
|
+
export class NewsApi extends BaseAPI {
|
|
1363
|
+
/**
|
|
1364
|
+
*
|
|
1365
|
+
* @param {string} [page]
|
|
1366
|
+
* @param {string} [perPage]
|
|
1367
|
+
* @param {string} [leagueDescription]
|
|
1368
|
+
* @param {string} [searchTerm]
|
|
1369
|
+
* @param {*} [options] Override http request option.
|
|
1370
|
+
* @throws {RequiredError}
|
|
1371
|
+
* @memberof NewsApi
|
|
1372
|
+
*/
|
|
1373
|
+
public apiNewsGet(page?: string, perPage?: string, leagueDescription?: string, searchTerm?: string, options?: RawAxiosRequestConfig) {
|
|
1374
|
+
return NewsApiFp(this.configuration).apiNewsGet(page, perPage, leagueDescription, searchTerm, options).then((request) => request(this.axios, this.basePath));
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
*
|
|
1379
|
+
* @param {string} id
|
|
1380
|
+
* @param {*} [options] Override http request option.
|
|
1381
|
+
* @throws {RequiredError}
|
|
1382
|
+
* @memberof NewsApi
|
|
1383
|
+
*/
|
|
1384
|
+
public apiNewsIdGet(id: string, options?: RawAxiosRequestConfig) {
|
|
1385
|
+
return NewsApiFp(this.configuration).apiNewsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
/**
|
|
1392
|
+
* PadelApi - axios parameter creator
|
|
1393
|
+
* @export
|
|
1394
|
+
*/
|
|
1395
|
+
export const PadelApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1396
|
+
return {
|
|
1397
|
+
/**
|
|
1398
|
+
*
|
|
1399
|
+
* @summary List padel matches
|
|
1400
|
+
* @param {*} [options] Override http request option.
|
|
1401
|
+
* @throws {RequiredError}
|
|
1402
|
+
*/
|
|
1403
|
+
apiPadelMatchesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1404
|
+
const localVarPath = `/api/padel/matches`;
|
|
1405
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1406
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1407
|
+
let baseOptions;
|
|
1408
|
+
if (configuration) {
|
|
1409
|
+
baseOptions = configuration.baseOptions;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1413
|
+
const localVarHeaderParameter = {} as any;
|
|
1414
|
+
const localVarQueryParameter = {} as any;
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
|
|
1418
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1419
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1420
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1421
|
+
|
|
1422
|
+
return {
|
|
1423
|
+
url: toPathString(localVarUrlObj),
|
|
1424
|
+
options: localVarRequestOptions,
|
|
1425
|
+
};
|
|
1426
|
+
},
|
|
1427
|
+
}
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* PadelApi - functional programming interface
|
|
1432
|
+
* @export
|
|
1433
|
+
*/
|
|
1434
|
+
export const PadelApiFp = function(configuration?: Configuration) {
|
|
1435
|
+
const localVarAxiosParamCreator = PadelApiAxiosParamCreator(configuration)
|
|
1436
|
+
return {
|
|
1437
|
+
/**
|
|
1438
|
+
*
|
|
1439
|
+
* @summary List padel matches
|
|
1440
|
+
* @param {*} [options] Override http request option.
|
|
1441
|
+
* @throws {RequiredError}
|
|
1442
|
+
*/
|
|
1443
|
+
async apiPadelMatchesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiPadelMatchesGet200ResponseInner>>> {
|
|
1444
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiPadelMatchesGet(options);
|
|
1445
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1446
|
+
const localVarOperationServerBasePath = operationServerMap['PadelApi.apiPadelMatchesGet']?.[localVarOperationServerIndex]?.url;
|
|
1447
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1448
|
+
},
|
|
1449
|
+
}
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* PadelApi - factory interface
|
|
1454
|
+
* @export
|
|
1455
|
+
*/
|
|
1456
|
+
export const PadelApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1457
|
+
const localVarFp = PadelApiFp(configuration)
|
|
1458
|
+
return {
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @summary List padel matches
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
apiPadelMatchesGet(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiPadelMatchesGet200ResponseInner>> {
|
|
1466
|
+
return localVarFp.apiPadelMatchesGet(options).then((request) => request(axios, basePath));
|
|
1467
|
+
},
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* PadelApi - object-oriented interface
|
|
1473
|
+
* @export
|
|
1474
|
+
* @class PadelApi
|
|
1475
|
+
* @extends {BaseAPI}
|
|
1476
|
+
*/
|
|
1477
|
+
export class PadelApi extends BaseAPI {
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @summary List padel matches
|
|
1481
|
+
* @param {*} [options] Override http request option.
|
|
1482
|
+
* @throws {RequiredError}
|
|
1483
|
+
* @memberof PadelApi
|
|
1484
|
+
*/
|
|
1485
|
+
public apiPadelMatchesGet(options?: RawAxiosRequestConfig) {
|
|
1486
|
+
return PadelApiFp(this.configuration).apiPadelMatchesGet(options).then((request) => request(this.axios, this.basePath));
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
|