@drxsuperapp/sdk 1.1.8 → 1.1.10

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.
@@ -7,6 +7,7 @@ configuration.ts
7
7
  docs/ApiExamplesGet200ResponseInner.md
8
8
  docs/ApiExamplesIdPutRequest.md
9
9
  docs/ApiExamplesPostRequest.md
10
+ docs/ApiHealthCheckGet200Response.md
10
11
  docs/ApiNewsGet200Response.md
11
12
  docs/ApiNewsGet200ResponseResponseObject.md
12
13
  docs/ApiNewsGet200ResponseResponseObjectItemsInner.md
@@ -14,7 +15,19 @@ docs/ApiNewsIdGet200Response.md
14
15
  docs/ApiNewsIdGet200ResponseResponseObject.md
15
16
  docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.md
16
17
  docs/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.md
18
+ docs/ApiPadelMatchesGet200Response.md
19
+ docs/ApiPadelMatchesGet200ResponsePlayers.md
20
+ docs/ApiPadelMatchesGet200ResponsePlayersTeam1Inner.md
21
+ docs/ApiPadelMatchesGet200ResponseScoreInner.md
22
+ docs/ApiPadelMatchesGet200ResponseSets.md
23
+ docs/ApiPadelMatchesGet200ResponseSetsSetsInner.md
24
+ docs/ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner.md
25
+ docs/ApiPadelMatchesGet200ResponseStats.md
26
+ docs/ApiPadelMatchesGet200ResponseStatsConnections.md
27
+ docs/ApiPadelMatchesGet200ResponseStatsMatchValue.md
17
28
  docs/ExampleApi.md
29
+ docs/HealthCheckApi.md
18
30
  docs/NewsApi.md
31
+ docs/PadelApi.md
19
32
  git_push.sh
20
33
  index.ts
package/api.ts CHANGED
@@ -98,6 +98,37 @@ export interface ApiExamplesPostRequest {
98
98
  */
99
99
  'email': string;
100
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
+ }
101
132
  /**
102
133
  *
103
134
  * @export
@@ -318,6 +349,12 @@ export interface ApiNewsIdGet200ResponseResponseObject {
318
349
  * @memberof ApiNewsIdGet200ResponseResponseObject
319
350
  */
320
351
  'leagues': Array<ApiNewsIdGet200ResponseResponseObjectLeaguesInner>;
352
+ /**
353
+ *
354
+ * @type {Array<ApiNewsGet200ResponseResponseObjectItemsInner>}
355
+ * @memberof ApiNewsIdGet200ResponseResponseObject
356
+ */
357
+ 'relatedNews': Array<ApiNewsGet200ResponseResponseObjectItemsInner>;
321
358
  }
322
359
  /**
323
360
  *
@@ -357,6 +394,328 @@ export interface ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague {
357
394
  */
358
395
  'abbreviation': string | null;
359
396
  }
397
+ /**
398
+ *
399
+ * @export
400
+ * @interface ApiPadelMatchesGet200Response
401
+ */
402
+ export interface ApiPadelMatchesGet200Response {
403
+ /**
404
+ *
405
+ * @type {number}
406
+ * @memberof ApiPadelMatchesGet200Response
407
+ */
408
+ 'id': number;
409
+ /**
410
+ *
411
+ * @type {number}
412
+ * @memberof ApiPadelMatchesGet200Response
413
+ */
414
+ 'tournamentId': number;
415
+ /**
416
+ *
417
+ * @type {string}
418
+ * @memberof ApiPadelMatchesGet200Response
419
+ */
420
+ 'name': string;
421
+ /**
422
+ *
423
+ * @type {number}
424
+ * @memberof ApiPadelMatchesGet200Response
425
+ */
426
+ 'round': number;
427
+ /**
428
+ *
429
+ * @type {Array<ApiPadelMatchesGet200ResponseScoreInner>}
430
+ * @memberof ApiPadelMatchesGet200Response
431
+ */
432
+ 'score': Array<ApiPadelMatchesGet200ResponseScoreInner>;
433
+ /**
434
+ *
435
+ * @type {ApiPadelMatchesGet200ResponsePlayers}
436
+ * @memberof ApiPadelMatchesGet200Response
437
+ */
438
+ 'players': ApiPadelMatchesGet200ResponsePlayers;
439
+ /**
440
+ *
441
+ * @type {string}
442
+ * @memberof ApiPadelMatchesGet200Response
443
+ */
444
+ 'playedAt': string;
445
+ /**
446
+ *
447
+ * @type {string}
448
+ * @memberof ApiPadelMatchesGet200Response
449
+ */
450
+ 'status': string;
451
+ /**
452
+ *
453
+ * @type {string}
454
+ * @memberof ApiPadelMatchesGet200Response
455
+ */
456
+ 'category': string;
457
+ /**
458
+ *
459
+ * @type {string}
460
+ * @memberof ApiPadelMatchesGet200Response
461
+ */
462
+ 'duration': string | null;
463
+ /**
464
+ *
465
+ * @type {string}
466
+ * @memberof ApiPadelMatchesGet200Response
467
+ */
468
+ 'court': string | null;
469
+ /**
470
+ *
471
+ * @type {ApiPadelMatchesGet200ResponseStats}
472
+ * @memberof ApiPadelMatchesGet200Response
473
+ */
474
+ 'stats': ApiPadelMatchesGet200ResponseStats;
475
+ /**
476
+ *
477
+ * @type {ApiPadelMatchesGet200ResponseSets}
478
+ * @memberof ApiPadelMatchesGet200Response
479
+ */
480
+ 'sets': ApiPadelMatchesGet200ResponseSets;
481
+ /**
482
+ *
483
+ * @type {string}
484
+ * @memberof ApiPadelMatchesGet200Response
485
+ */
486
+ 'createdAt': string;
487
+ /**
488
+ *
489
+ * @type {string}
490
+ * @memberof ApiPadelMatchesGet200Response
491
+ */
492
+ 'updatedAt': string;
493
+ }
494
+ /**
495
+ *
496
+ * @export
497
+ * @interface ApiPadelMatchesGet200ResponsePlayers
498
+ */
499
+ export interface ApiPadelMatchesGet200ResponsePlayers {
500
+ /**
501
+ *
502
+ * @type {Array<ApiPadelMatchesGet200ResponsePlayersTeam1Inner>}
503
+ * @memberof ApiPadelMatchesGet200ResponsePlayers
504
+ */
505
+ 'team_1': Array<ApiPadelMatchesGet200ResponsePlayersTeam1Inner>;
506
+ /**
507
+ *
508
+ * @type {Array<ApiPadelMatchesGet200ResponsePlayersTeam1Inner>}
509
+ * @memberof ApiPadelMatchesGet200ResponsePlayers
510
+ */
511
+ 'team_2': Array<ApiPadelMatchesGet200ResponsePlayersTeam1Inner>;
512
+ }
513
+ /**
514
+ *
515
+ * @export
516
+ * @interface ApiPadelMatchesGet200ResponsePlayersTeam1Inner
517
+ */
518
+ export interface ApiPadelMatchesGet200ResponsePlayersTeam1Inner {
519
+ /**
520
+ *
521
+ * @type {number}
522
+ * @memberof ApiPadelMatchesGet200ResponsePlayersTeam1Inner
523
+ */
524
+ 'id': number;
525
+ /**
526
+ *
527
+ * @type {string}
528
+ * @memberof ApiPadelMatchesGet200ResponsePlayersTeam1Inner
529
+ */
530
+ 'name': string;
531
+ /**
532
+ *
533
+ * @type {string}
534
+ * @memberof ApiPadelMatchesGet200ResponsePlayersTeam1Inner
535
+ */
536
+ 'self': string;
537
+ /**
538
+ *
539
+ * @type {string}
540
+ * @memberof ApiPadelMatchesGet200ResponsePlayersTeam1Inner
541
+ */
542
+ 'side': string;
543
+ }
544
+ /**
545
+ *
546
+ * @export
547
+ * @interface ApiPadelMatchesGet200ResponseScoreInner
548
+ */
549
+ export interface ApiPadelMatchesGet200ResponseScoreInner {
550
+ /**
551
+ *
552
+ * @type {number}
553
+ * @memberof ApiPadelMatchesGet200ResponseScoreInner
554
+ */
555
+ 'team_1': number;
556
+ /**
557
+ *
558
+ * @type {number}
559
+ * @memberof ApiPadelMatchesGet200ResponseScoreInner
560
+ */
561
+ 'team_2': number;
562
+ }
563
+ /**
564
+ *
565
+ * @export
566
+ * @interface ApiPadelMatchesGet200ResponseSets
567
+ */
568
+ export interface ApiPadelMatchesGet200ResponseSets {
569
+ /**
570
+ *
571
+ * @type {number}
572
+ * @memberof ApiPadelMatchesGet200ResponseSets
573
+ */
574
+ 'id': number;
575
+ /**
576
+ *
577
+ * @type {string}
578
+ * @memberof ApiPadelMatchesGet200ResponseSets
579
+ */
580
+ 'self': string;
581
+ /**
582
+ *
583
+ * @type {Array<ApiPadelMatchesGet200ResponseSetsSetsInner>}
584
+ * @memberof ApiPadelMatchesGet200ResponseSets
585
+ */
586
+ 'sets': Array<ApiPadelMatchesGet200ResponseSetsSetsInner>;
587
+ /**
588
+ *
589
+ * @type {ApiPadelMatchesGet200ResponseStatsConnections}
590
+ * @memberof ApiPadelMatchesGet200ResponseSets
591
+ */
592
+ 'connections': ApiPadelMatchesGet200ResponseStatsConnections;
593
+ }
594
+ /**
595
+ *
596
+ * @export
597
+ * @interface ApiPadelMatchesGet200ResponseSetsSetsInner
598
+ */
599
+ export interface ApiPadelMatchesGet200ResponseSetsSetsInner {
600
+ /**
601
+ *
602
+ * @type {Array<ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner>}
603
+ * @memberof ApiPadelMatchesGet200ResponseSetsSetsInner
604
+ */
605
+ 'games': Array<ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner>;
606
+ /**
607
+ *
608
+ * @type {number}
609
+ * @memberof ApiPadelMatchesGet200ResponseSetsSetsInner
610
+ */
611
+ 'set_number': number;
612
+ }
613
+ /**
614
+ *
615
+ * @export
616
+ * @interface ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner
617
+ */
618
+ export interface ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner {
619
+ /**
620
+ *
621
+ * @type {Array<string>}
622
+ * @memberof ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner
623
+ */
624
+ 'points': Array<string>;
625
+ /**
626
+ *
627
+ * @type {string}
628
+ * @memberof ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner
629
+ */
630
+ 'game_score': string;
631
+ /**
632
+ *
633
+ * @type {number}
634
+ * @memberof ApiPadelMatchesGet200ResponseSetsSetsInnerGamesInner
635
+ */
636
+ 'game_number': number;
637
+ }
638
+ /**
639
+ *
640
+ * @export
641
+ * @interface ApiPadelMatchesGet200ResponseStats
642
+ */
643
+ export interface ApiPadelMatchesGet200ResponseStats {
644
+ /**
645
+ *
646
+ * @type {number}
647
+ * @memberof ApiPadelMatchesGet200ResponseStats
648
+ */
649
+ 'id': number;
650
+ /**
651
+ *
652
+ * @type {string}
653
+ * @memberof ApiPadelMatchesGet200ResponseStats
654
+ */
655
+ 'self': string;
656
+ /**
657
+ *
658
+ * @type {{ [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; }}
659
+ * @memberof ApiPadelMatchesGet200ResponseStats
660
+ */
661
+ 'match': { [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; };
662
+ /**
663
+ *
664
+ * @type {{ [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; }}
665
+ * @memberof ApiPadelMatchesGet200ResponseStats
666
+ */
667
+ 'set_1': { [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; };
668
+ /**
669
+ *
670
+ * @type {{ [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; }}
671
+ * @memberof ApiPadelMatchesGet200ResponseStats
672
+ */
673
+ 'set_2': { [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; };
674
+ /**
675
+ *
676
+ * @type {{ [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; }}
677
+ * @memberof ApiPadelMatchesGet200ResponseStats
678
+ */
679
+ 'set_3'?: { [key: string]: ApiPadelMatchesGet200ResponseStatsMatchValue; };
680
+ /**
681
+ *
682
+ * @type {ApiPadelMatchesGet200ResponseStatsConnections}
683
+ * @memberof ApiPadelMatchesGet200ResponseStats
684
+ */
685
+ 'connections': ApiPadelMatchesGet200ResponseStatsConnections;
686
+ }
687
+ /**
688
+ *
689
+ * @export
690
+ * @interface ApiPadelMatchesGet200ResponseStatsConnections
691
+ */
692
+ export interface ApiPadelMatchesGet200ResponseStatsConnections {
693
+ /**
694
+ *
695
+ * @type {string}
696
+ * @memberof ApiPadelMatchesGet200ResponseStatsConnections
697
+ */
698
+ 'match': string;
699
+ }
700
+ /**
701
+ *
702
+ * @export
703
+ * @interface ApiPadelMatchesGet200ResponseStatsMatchValue
704
+ */
705
+ export interface ApiPadelMatchesGet200ResponseStatsMatchValue {
706
+ /**
707
+ *
708
+ * @type {string}
709
+ * @memberof ApiPadelMatchesGet200ResponseStatsMatchValue
710
+ */
711
+ 'team_1': string;
712
+ /**
713
+ *
714
+ * @type {string}
715
+ * @memberof ApiPadelMatchesGet200ResponseStatsMatchValue
716
+ */
717
+ 'team_2': string;
718
+ }
360
719
 
361
720
  /**
362
721
  * ExampleApi - axios parameter creator
@@ -738,6 +1097,103 @@ export class ExampleApi extends BaseAPI {
738
1097
 
739
1098
 
740
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
+
741
1197
  /**
742
1198
  * NewsApi - axios parameter creator
743
1199
  * @export
@@ -932,3 +1388,100 @@ export class NewsApi extends BaseAPI {
932
1388
 
933
1389
 
934
1390
 
1391
+ /**
1392
+ * PadelApi - axios parameter creator
1393
+ * @export
1394
+ */
1395
+ export const PadelApiAxiosParamCreator = function (configuration?: Configuration) {
1396
+ return {
1397
+ /**
1398
+ *
1399
+ * @param {*} [options] Override http request option.
1400
+ * @throws {RequiredError}
1401
+ */
1402
+ apiPadelMatchesGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1403
+ const localVarPath = `/api/padel/matches`;
1404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1405
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1406
+ let baseOptions;
1407
+ if (configuration) {
1408
+ baseOptions = configuration.baseOptions;
1409
+ }
1410
+
1411
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1412
+ const localVarHeaderParameter = {} as any;
1413
+ const localVarQueryParameter = {} as any;
1414
+
1415
+
1416
+
1417
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1418
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1419
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1420
+
1421
+ return {
1422
+ url: toPathString(localVarUrlObj),
1423
+ options: localVarRequestOptions,
1424
+ };
1425
+ },
1426
+ }
1427
+ };
1428
+
1429
+ /**
1430
+ * PadelApi - functional programming interface
1431
+ * @export
1432
+ */
1433
+ export const PadelApiFp = function(configuration?: Configuration) {
1434
+ const localVarAxiosParamCreator = PadelApiAxiosParamCreator(configuration)
1435
+ return {
1436
+ /**
1437
+ *
1438
+ * @param {*} [options] Override http request option.
1439
+ * @throws {RequiredError}
1440
+ */
1441
+ async apiPadelMatchesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiPadelMatchesGet200Response>> {
1442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiPadelMatchesGet(options);
1443
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1444
+ const localVarOperationServerBasePath = operationServerMap['PadelApi.apiPadelMatchesGet']?.[localVarOperationServerIndex]?.url;
1445
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1446
+ },
1447
+ }
1448
+ };
1449
+
1450
+ /**
1451
+ * PadelApi - factory interface
1452
+ * @export
1453
+ */
1454
+ export const PadelApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1455
+ const localVarFp = PadelApiFp(configuration)
1456
+ return {
1457
+ /**
1458
+ *
1459
+ * @param {*} [options] Override http request option.
1460
+ * @throws {RequiredError}
1461
+ */
1462
+ apiPadelMatchesGet(options?: RawAxiosRequestConfig): AxiosPromise<ApiPadelMatchesGet200Response> {
1463
+ return localVarFp.apiPadelMatchesGet(options).then((request) => request(axios, basePath));
1464
+ },
1465
+ };
1466
+ };
1467
+
1468
+ /**
1469
+ * PadelApi - object-oriented interface
1470
+ * @export
1471
+ * @class PadelApi
1472
+ * @extends {BaseAPI}
1473
+ */
1474
+ export class PadelApi extends BaseAPI {
1475
+ /**
1476
+ *
1477
+ * @param {*} [options] Override http request option.
1478
+ * @throws {RequiredError}
1479
+ * @memberof PadelApi
1480
+ */
1481
+ public apiPadelMatchesGet(options?: RawAxiosRequestConfig) {
1482
+ return PadelApiFp(this.configuration).apiPadelMatchesGet(options).then((request) => request(this.axios, this.basePath));
1483
+ }
1484
+ }
1485
+
1486
+
1487
+