@drxsuperapp/sdk 1.1.162 → 1.1.168
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 +34 -0
- package/apis/AppConfigApi.ts +119 -0
- package/apis/AuthenticationApi.ts +166 -0
- package/apis/PadelApi.ts +0 -5
- package/apis/TennisApi.ts +41 -15
- package/apis/TournamentApi.ts +0 -5
- package/apis/UserAffiliateApi.ts +186 -0
- package/apis/UserApi.ts +0 -46
- package/apis/UserPointsApi.ts +176 -0
- package/apis/index.ts +4 -0
- package/deploy.log +15 -262
- package/dist/apis/AppConfigApi.d.ts +37 -0
- package/dist/apis/AppConfigApi.js +84 -0
- package/dist/apis/AuthenticationApi.d.ts +51 -0
- package/dist/apis/AuthenticationApi.js +121 -0
- package/dist/apis/PadelApi.d.ts +0 -1
- package/dist/apis/PadelApi.js +0 -3
- package/dist/apis/TennisApi.d.ts +9 -4
- package/dist/apis/TennisApi.js +32 -10
- package/dist/apis/TournamentApi.d.ts +0 -1
- package/dist/apis/TournamentApi.js +0 -3
- package/dist/apis/UserAffiliateApi.d.ts +51 -0
- package/dist/apis/UserAffiliateApi.js +127 -0
- package/dist/apis/UserApi.d.ts +1 -10
- package/dist/apis/UserApi.js +1 -35
- package/dist/apis/UserPointsApi.d.ts +48 -0
- package/dist/apis/UserPointsApi.js +125 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/ApiAuthLoginPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthLoginPost200Response.js +54 -0
- package/dist/models/ApiAuthRefreshPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthRefreshPost200Response.js +54 -0
- package/dist/models/ApiTennisEventTypesGet200Response.d.ts +51 -0
- package/dist/models/ApiTennisEventTypesGet200Response.js +54 -0
- package/dist/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.d.ts +38 -0
- package/dist/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.js +47 -0
- package/dist/models/ApiTournamentGetFilterParameter.d.ts +0 -6
- package/dist/models/ApiTournamentGetFilterParameter.js +0 -2
- package/dist/models/ApiUserAffiliateGet200Response.d.ts +51 -0
- package/dist/models/ApiUserAffiliateGet200Response.js +54 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.d.ts +63 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.js +64 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.d.ts +50 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.js +55 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200Response.d.ts +51 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200Response.js +54 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.js +54 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.d.ts +38 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.js +47 -0
- package/dist/models/ApiUserApplyAffiliateCodePostRequest.d.ts +32 -0
- package/dist/models/ApiUserApplyAffiliateCodePostRequest.js +43 -0
- package/dist/models/ApiUserPointRewardsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsGet200Response.js +54 -0
- package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.d.ts +68 -0
- package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.js +67 -0
- package/dist/models/ApiUserPointRewardsPut200Response.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsPut200Response.js +54 -0
- package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.d.ts +50 -0
- package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.js +55 -0
- package/dist/models/ApiUserPointRewardsPutRequest.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsPutRequest.js +59 -0
- package/dist/models/ApiUserPointsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointsGet200Response.js +54 -0
- package/dist/models/ApiUserPointsGet200ResponseResponseObject.d.ts +56 -0
- package/dist/models/ApiUserPointsGet200ResponseResponseObject.js +59 -0
- package/dist/models/ApiUserPointsHistoryGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointsHistoryGet200Response.js +54 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.d.ts +103 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.js +96 -0
- package/dist/models/ApiUserPointsHistoryGetFilterParameter.d.ts +52 -0
- package/dist/models/ApiUserPointsHistoryGetFilterParameter.js +49 -0
- package/dist/models/ApiUserRecentReferralsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserRecentReferralsGet200Response.js +54 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.d.ts +56 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.js +59 -0
- package/dist/models/ApiUserRecentReferralsGetFilterParameter.d.ts +46 -0
- package/dist/models/ApiUserRecentReferralsGetFilterParameter.js +47 -0
- package/dist/models/LoginRequest.d.ts +38 -0
- package/dist/models/LoginRequest.js +47 -0
- package/dist/models/LoginResponse.d.ts +45 -0
- package/dist/models/LoginResponse.js +52 -0
- package/dist/models/LoginResponseUser.d.ts +56 -0
- package/dist/models/LoginResponseUser.js +59 -0
- package/dist/models/RefreshTokenResponse.d.ts +38 -0
- package/dist/models/RefreshTokenResponse.js +47 -0
- package/dist/models/index.d.ts +30 -0
- package/dist/models/index.js +30 -0
- package/models/ApiAuthLoginPost200Response.ts +100 -0
- package/models/ApiAuthRefreshPost200Response.ts +100 -0
- package/models/ApiTennisEventTypesGet200Response.ts +100 -0
- package/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.ts +75 -0
- package/models/ApiTournamentGetFilterParameter.ts +0 -8
- package/models/ApiUserAffiliateGet200Response.ts +100 -0
- package/models/ApiUserAffiliateGet200ResponseResponseObject.ts +119 -0
- package/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts +93 -0
- package/models/ApiUserApplyAffiliateCodePost200Response.ts +100 -0
- package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.ts +100 -0
- package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.ts +75 -0
- package/models/ApiUserApplyAffiliateCodePostRequest.ts +66 -0
- package/models/ApiUserPointRewardsGet200Response.ts +100 -0
- package/models/ApiUserPointRewardsGet200ResponseResponseObject.ts +120 -0
- package/models/ApiUserPointRewardsPut200Response.ts +100 -0
- package/models/ApiUserPointRewardsPut200ResponseResponseObject.ts +93 -0
- package/models/ApiUserPointRewardsPutRequest.ts +91 -0
- package/models/ApiUserPointsGet200Response.ts +100 -0
- package/models/ApiUserPointsGet200ResponseResponseObject.ts +102 -0
- package/models/ApiUserPointsHistoryGet200Response.ts +100 -0
- package/models/ApiUserPointsHistoryGet200ResponseResponseObject.ts +110 -0
- package/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.ts +160 -0
- package/models/ApiUserPointsHistoryGetFilterParameter.ts +104 -0
- package/models/ApiUserRecentReferralsGet200Response.ts +100 -0
- package/models/ApiUserRecentReferralsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts +102 -0
- package/models/ApiUserRecentReferralsGetFilterParameter.ts +96 -0
- package/models/LoginRequest.ts +75 -0
- package/models/LoginResponse.ts +92 -0
- package/models/LoginResponseUser.ts +102 -0
- package/models/RefreshTokenResponse.ts +75 -0
- package/models/index.ts +30 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
apis/AppConfigApi.ts
|
|
2
|
+
apis/AuthenticationApi.ts
|
|
1
3
|
apis/HealthCheckApi.ts
|
|
2
4
|
apis/NewsApi.ts
|
|
3
5
|
apis/PadelApi.ts
|
|
4
6
|
apis/TennisApi.ts
|
|
5
7
|
apis/TournamentApi.ts
|
|
8
|
+
apis/UserAffiliateApi.ts
|
|
6
9
|
apis/UserApi.ts
|
|
10
|
+
apis/UserPointsApi.ts
|
|
7
11
|
apis/YoutubeApi.ts
|
|
8
12
|
apis/index.ts
|
|
9
13
|
index.ts
|
|
14
|
+
models/ApiAuthLoginPost200Response.ts
|
|
15
|
+
models/ApiAuthRefreshPost200Response.ts
|
|
10
16
|
models/ApiHealthCheckGet200Response.ts
|
|
11
17
|
models/ApiNewsCategoriesListGet200Response.ts
|
|
12
18
|
models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
@@ -36,6 +42,8 @@ models/ApiPadelMatchesIdGet200ResponseResponseObjectSetsSetsInnerGamesInner.ts
|
|
|
36
42
|
models/ApiPadelMatchesIdGet200ResponseResponseObjectStats.ts
|
|
37
43
|
models/ApiPadelMatchesIdGet200ResponseResponseObjectStatsConnections.ts
|
|
38
44
|
models/ApiPadelSeedGet200Response.ts
|
|
45
|
+
models/ApiTennisEventTypesGet200Response.ts
|
|
46
|
+
models/ApiTennisEventTypesGet200ResponseResponseObjectInner.ts
|
|
39
47
|
models/ApiTennisMatchesGet200Response.ts
|
|
40
48
|
models/ApiTennisMatchesGet200ResponseResponseObject.ts
|
|
41
49
|
models/ApiTennisMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -94,15 +102,41 @@ models/ApiTournamentPadelPostRequestBody.ts
|
|
|
94
102
|
models/ApiTournamentPadelPostRequestBodyPlayersInner.ts
|
|
95
103
|
models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
|
|
96
104
|
models/ApiTournamentSeedGameTypesGet200Response.ts
|
|
105
|
+
models/ApiUserAffiliateGet200Response.ts
|
|
106
|
+
models/ApiUserAffiliateGet200ResponseResponseObject.ts
|
|
107
|
+
models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts
|
|
108
|
+
models/ApiUserApplyAffiliateCodePost200Response.ts
|
|
109
|
+
models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.ts
|
|
110
|
+
models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.ts
|
|
111
|
+
models/ApiUserApplyAffiliateCodePostRequest.ts
|
|
97
112
|
models/ApiUserGet200Response.ts
|
|
98
113
|
models/ApiUserGetFilterParameter.ts
|
|
99
114
|
models/ApiUserLeaderboardGet200Response.ts
|
|
100
115
|
models/ApiUserLeaderboardGet200ResponseResponseObject.ts
|
|
101
116
|
models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.ts
|
|
117
|
+
models/ApiUserPointRewardsGet200Response.ts
|
|
118
|
+
models/ApiUserPointRewardsGet200ResponseResponseObject.ts
|
|
119
|
+
models/ApiUserPointRewardsPut200Response.ts
|
|
120
|
+
models/ApiUserPointRewardsPut200ResponseResponseObject.ts
|
|
121
|
+
models/ApiUserPointRewardsPutRequest.ts
|
|
122
|
+
models/ApiUserPointsGet200Response.ts
|
|
123
|
+
models/ApiUserPointsGet200ResponseResponseObject.ts
|
|
124
|
+
models/ApiUserPointsHistoryGet200Response.ts
|
|
125
|
+
models/ApiUserPointsHistoryGet200ResponseResponseObject.ts
|
|
126
|
+
models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.ts
|
|
127
|
+
models/ApiUserPointsHistoryGetFilterParameter.ts
|
|
128
|
+
models/ApiUserRecentReferralsGet200Response.ts
|
|
129
|
+
models/ApiUserRecentReferralsGet200ResponseResponseObject.ts
|
|
130
|
+
models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts
|
|
131
|
+
models/ApiUserRecentReferralsGetFilterParameter.ts
|
|
102
132
|
models/ApiYoutubeDrxContentGet200Response.ts
|
|
103
133
|
models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
|
|
104
134
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
|
|
105
135
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts
|
|
106
136
|
models/ApiYoutubeRefreshPost200Response.ts
|
|
137
|
+
models/LoginRequest.ts
|
|
138
|
+
models/LoginResponse.ts
|
|
139
|
+
models/LoginResponseUser.ts
|
|
140
|
+
models/RefreshTokenResponse.ts
|
|
107
141
|
models/index.ts
|
|
108
142
|
runtime.ts
|
|
@@ -0,0 +1,119 @@
|
|
|
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 * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiUserPointRewardsGet200Response,
|
|
19
|
+
ApiUserPointRewardsPut200Response,
|
|
20
|
+
ApiUserPointRewardsPutRequest,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
ApiUserPointRewardsGet200ResponseFromJSON,
|
|
24
|
+
ApiUserPointRewardsGet200ResponseToJSON,
|
|
25
|
+
ApiUserPointRewardsPut200ResponseFromJSON,
|
|
26
|
+
ApiUserPointRewardsPut200ResponseToJSON,
|
|
27
|
+
ApiUserPointRewardsPutRequestFromJSON,
|
|
28
|
+
ApiUserPointRewardsPutRequestToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface ApiUserPointRewardsPutOperationRequest {
|
|
32
|
+
apiUserPointRewardsPutRequest?: ApiUserPointRewardsPutRequest;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export class AppConfigApi extends runtime.BaseAPI {
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Get Point Rewards Configuration
|
|
42
|
+
*/
|
|
43
|
+
async apiUserPointRewardsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserPointRewardsGet200Response>> {
|
|
44
|
+
const queryParameters: any = {};
|
|
45
|
+
|
|
46
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
47
|
+
|
|
48
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
49
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
53
|
+
const token = this.configuration.accessToken;
|
|
54
|
+
const tokenString = await token("BearerAuth", []);
|
|
55
|
+
|
|
56
|
+
if (tokenString) {
|
|
57
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const response = await this.request({
|
|
61
|
+
path: `/api/user/point-rewards`,
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
|
|
67
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserPointRewardsGet200ResponseFromJSON(jsonValue));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Get Point Rewards Configuration
|
|
72
|
+
*/
|
|
73
|
+
async apiUserPointRewardsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointRewardsGet200Response> {
|
|
74
|
+
const response = await this.apiUserPointRewardsGetRaw(initOverrides);
|
|
75
|
+
return await response.value();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Update Point Reward Configuration
|
|
80
|
+
*/
|
|
81
|
+
async apiUserPointRewardsPutRaw(requestParameters: ApiUserPointRewardsPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserPointRewardsPut200Response>> {
|
|
82
|
+
const queryParameters: any = {};
|
|
83
|
+
|
|
84
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
85
|
+
|
|
86
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
87
|
+
|
|
88
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
89
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
93
|
+
const token = this.configuration.accessToken;
|
|
94
|
+
const tokenString = await token("BearerAuth", []);
|
|
95
|
+
|
|
96
|
+
if (tokenString) {
|
|
97
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const response = await this.request({
|
|
101
|
+
path: `/api/user/point-rewards`,
|
|
102
|
+
method: 'PUT',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
body: ApiUserPointRewardsPutRequestToJSON(requestParameters['apiUserPointRewardsPutRequest']),
|
|
106
|
+
}, initOverrides);
|
|
107
|
+
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserPointRewardsPut200ResponseFromJSON(jsonValue));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Update Point Reward Configuration
|
|
113
|
+
*/
|
|
114
|
+
async apiUserPointRewardsPut(requestParameters: ApiUserPointRewardsPutOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointRewardsPut200Response> {
|
|
115
|
+
const response = await this.apiUserPointRewardsPutRaw(requestParameters, initOverrides);
|
|
116
|
+
return await response.value();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
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 * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiAuthLoginPost200Response,
|
|
19
|
+
ApiAuthRefreshPost200Response,
|
|
20
|
+
ApiUserGet200Response,
|
|
21
|
+
LoginRequest,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
ApiAuthLoginPost200ResponseFromJSON,
|
|
25
|
+
ApiAuthLoginPost200ResponseToJSON,
|
|
26
|
+
ApiAuthRefreshPost200ResponseFromJSON,
|
|
27
|
+
ApiAuthRefreshPost200ResponseToJSON,
|
|
28
|
+
ApiUserGet200ResponseFromJSON,
|
|
29
|
+
ApiUserGet200ResponseToJSON,
|
|
30
|
+
LoginRequestFromJSON,
|
|
31
|
+
LoginRequestToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface ApiAuthLoginPostRequest {
|
|
35
|
+
loginRequest?: LoginRequest;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class AuthenticationApi extends runtime.BaseAPI {
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Authenticate user with email and password
|
|
45
|
+
* User Login
|
|
46
|
+
*/
|
|
47
|
+
async apiAuthLoginPostRaw(requestParameters: ApiAuthLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthLoginPost200Response>> {
|
|
48
|
+
const queryParameters: any = {};
|
|
49
|
+
|
|
50
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
51
|
+
|
|
52
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
53
|
+
|
|
54
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
55
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
59
|
+
const token = this.configuration.accessToken;
|
|
60
|
+
const tokenString = await token("BearerAuth", []);
|
|
61
|
+
|
|
62
|
+
if (tokenString) {
|
|
63
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const response = await this.request({
|
|
67
|
+
path: `/api/auth/login`,
|
|
68
|
+
method: 'POST',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
body: LoginRequestToJSON(requestParameters['loginRequest']),
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Authenticate user with email and password
|
|
79
|
+
* User Login
|
|
80
|
+
*/
|
|
81
|
+
async apiAuthLoginPost(requestParameters: ApiAuthLoginPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response> {
|
|
82
|
+
const response = await this.apiAuthLoginPostRaw(requestParameters, initOverrides);
|
|
83
|
+
return await response.value();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Generate new access and refresh tokens using Authorization header
|
|
88
|
+
* Refresh Access Token
|
|
89
|
+
*/
|
|
90
|
+
async apiAuthRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRefreshPost200Response>> {
|
|
91
|
+
const queryParameters: any = {};
|
|
92
|
+
|
|
93
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
94
|
+
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
100
|
+
const token = this.configuration.accessToken;
|
|
101
|
+
const tokenString = await token("BearerAuth", []);
|
|
102
|
+
|
|
103
|
+
if (tokenString) {
|
|
104
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const response = await this.request({
|
|
108
|
+
path: `/api/auth/refresh`,
|
|
109
|
+
method: 'POST',
|
|
110
|
+
headers: headerParameters,
|
|
111
|
+
query: queryParameters,
|
|
112
|
+
}, initOverrides);
|
|
113
|
+
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRefreshPost200ResponseFromJSON(jsonValue));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Generate new access and refresh tokens using Authorization header
|
|
119
|
+
* Refresh Access Token
|
|
120
|
+
*/
|
|
121
|
+
async apiAuthRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRefreshPost200Response> {
|
|
122
|
+
const response = await this.apiAuthRefreshPostRaw(initOverrides);
|
|
123
|
+
return await response.value();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Validate the current access token and return user information
|
|
128
|
+
* Validate Token
|
|
129
|
+
*/
|
|
130
|
+
async apiAuthValidateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>> {
|
|
131
|
+
const queryParameters: any = {};
|
|
132
|
+
|
|
133
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
134
|
+
|
|
135
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
136
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
140
|
+
const token = this.configuration.accessToken;
|
|
141
|
+
const tokenString = await token("BearerAuth", []);
|
|
142
|
+
|
|
143
|
+
if (tokenString) {
|
|
144
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const response = await this.request({
|
|
148
|
+
path: `/api/auth/validate`,
|
|
149
|
+
method: 'GET',
|
|
150
|
+
headers: headerParameters,
|
|
151
|
+
query: queryParameters,
|
|
152
|
+
}, initOverrides);
|
|
153
|
+
|
|
154
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Validate the current access token and return user information
|
|
159
|
+
* Validate Token
|
|
160
|
+
*/
|
|
161
|
+
async apiAuthValidateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response> {
|
|
162
|
+
const response = await this.apiAuthValidateGetRaw(initOverrides);
|
|
163
|
+
return await response.value();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
}
|
package/apis/PadelApi.ts
CHANGED
|
@@ -34,7 +34,6 @@ import {
|
|
|
34
34
|
export interface ApiPadelMatchesGetRequest {
|
|
35
35
|
page?: number;
|
|
36
36
|
pageSize?: number;
|
|
37
|
-
userId?: number | null;
|
|
38
37
|
sort?: string;
|
|
39
38
|
filter?: ApiPadelMatchesGetFilterParameter;
|
|
40
39
|
}
|
|
@@ -62,10 +61,6 @@ export class PadelApi extends runtime.BaseAPI {
|
|
|
62
61
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
63
62
|
}
|
|
64
63
|
|
|
65
|
-
if (requestParameters['userId'] != null) {
|
|
66
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
64
|
if (requestParameters['sort'] != null) {
|
|
70
65
|
queryParameters['sort'] = requestParameters['sort'];
|
|
71
66
|
}
|
package/apis/TennisApi.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiPadelSeedGet200Response,
|
|
19
|
+
ApiTennisEventTypesGet200Response,
|
|
19
20
|
ApiTennisMatchesGet200Response,
|
|
20
21
|
ApiTennisMatchesGetFilterParameter,
|
|
21
22
|
ApiTennisMatchesIdGet200Response,
|
|
@@ -29,6 +30,8 @@ import type {
|
|
|
29
30
|
import {
|
|
30
31
|
ApiPadelSeedGet200ResponseFromJSON,
|
|
31
32
|
ApiPadelSeedGet200ResponseToJSON,
|
|
33
|
+
ApiTennisEventTypesGet200ResponseFromJSON,
|
|
34
|
+
ApiTennisEventTypesGet200ResponseToJSON,
|
|
32
35
|
ApiTennisMatchesGet200ResponseFromJSON,
|
|
33
36
|
ApiTennisMatchesGet200ResponseToJSON,
|
|
34
37
|
ApiTennisMatchesGetFilterParameterFromJSON,
|
|
@@ -52,7 +55,6 @@ import {
|
|
|
52
55
|
export interface ApiTennisMatchesGetRequest {
|
|
53
56
|
page?: number;
|
|
54
57
|
pageSize?: number;
|
|
55
|
-
userId?: number | null;
|
|
56
58
|
sort?: string;
|
|
57
59
|
filter?: ApiTennisMatchesGetFilterParameter;
|
|
58
60
|
}
|
|
@@ -64,7 +66,6 @@ export interface ApiTennisMatchesIdGetRequest {
|
|
|
64
66
|
export interface ApiTennisPlayersGetRequest {
|
|
65
67
|
page?: number;
|
|
66
68
|
pageSize?: number;
|
|
67
|
-
userId?: number | null;
|
|
68
69
|
sort?: string;
|
|
69
70
|
filter?: ApiTennisPlayersGetFilterParameter;
|
|
70
71
|
}
|
|
@@ -76,7 +77,6 @@ export interface ApiTennisPlayersIdGetRequest {
|
|
|
76
77
|
export interface ApiTennisTournamentsGetRequest {
|
|
77
78
|
page?: number;
|
|
78
79
|
pageSize?: number;
|
|
79
|
-
userId?: number | null;
|
|
80
80
|
sort?: string;
|
|
81
81
|
filter?: ApiTennisTournamentsGetFilterParameter;
|
|
82
82
|
}
|
|
@@ -90,6 +90,44 @@ export interface ApiTennisTournamentsIdGetRequest {
|
|
|
90
90
|
*/
|
|
91
91
|
export class TennisApi extends runtime.BaseAPI {
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Get All Tennis Event Types
|
|
95
|
+
*/
|
|
96
|
+
async apiTennisEventTypesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiTennisEventTypesGet200Response>> {
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
100
|
+
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
106
|
+
const token = this.configuration.accessToken;
|
|
107
|
+
const tokenString = await token("BearerAuth", []);
|
|
108
|
+
|
|
109
|
+
if (tokenString) {
|
|
110
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const response = await this.request({
|
|
114
|
+
path: `/api/tennis/event-types`,
|
|
115
|
+
method: 'GET',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
|
|
120
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiTennisEventTypesGet200ResponseFromJSON(jsonValue));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Get All Tennis Event Types
|
|
125
|
+
*/
|
|
126
|
+
async apiTennisEventTypesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiTennisEventTypesGet200Response> {
|
|
127
|
+
const response = await this.apiTennisEventTypesGetRaw(initOverrides);
|
|
128
|
+
return await response.value();
|
|
129
|
+
}
|
|
130
|
+
|
|
93
131
|
/**
|
|
94
132
|
* Get Tennis Matches
|
|
95
133
|
*/
|
|
@@ -104,10 +142,6 @@ export class TennisApi extends runtime.BaseAPI {
|
|
|
104
142
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
105
143
|
}
|
|
106
144
|
|
|
107
|
-
if (requestParameters['userId'] != null) {
|
|
108
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
109
|
-
}
|
|
110
|
-
|
|
111
145
|
if (requestParameters['sort'] != null) {
|
|
112
146
|
queryParameters['sort'] = requestParameters['sort'];
|
|
113
147
|
}
|
|
@@ -207,10 +241,6 @@ export class TennisApi extends runtime.BaseAPI {
|
|
|
207
241
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
208
242
|
}
|
|
209
243
|
|
|
210
|
-
if (requestParameters['userId'] != null) {
|
|
211
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
212
|
-
}
|
|
213
|
-
|
|
214
244
|
if (requestParameters['sort'] != null) {
|
|
215
245
|
queryParameters['sort'] = requestParameters['sort'];
|
|
216
246
|
}
|
|
@@ -386,10 +416,6 @@ export class TennisApi extends runtime.BaseAPI {
|
|
|
386
416
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
387
417
|
}
|
|
388
418
|
|
|
389
|
-
if (requestParameters['userId'] != null) {
|
|
390
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
391
|
-
}
|
|
392
|
-
|
|
393
419
|
if (requestParameters['sort'] != null) {
|
|
394
420
|
queryParameters['sort'] = requestParameters['sort'];
|
|
395
421
|
}
|
package/apis/TournamentApi.ts
CHANGED
|
@@ -61,7 +61,6 @@ import {
|
|
|
61
61
|
export interface ApiTournamentGetRequest {
|
|
62
62
|
page?: number;
|
|
63
63
|
pageSize?: number;
|
|
64
|
-
userId?: number | null;
|
|
65
64
|
sort?: string;
|
|
66
65
|
filter?: ApiTournamentGetFilterParameter;
|
|
67
66
|
}
|
|
@@ -147,10 +146,6 @@ export class TournamentApi extends runtime.BaseAPI {
|
|
|
147
146
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
148
147
|
}
|
|
149
148
|
|
|
150
|
-
if (requestParameters['userId'] != null) {
|
|
151
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
152
|
-
}
|
|
153
|
-
|
|
154
149
|
if (requestParameters['sort'] != null) {
|
|
155
150
|
queryParameters['sort'] = requestParameters['sort'];
|
|
156
151
|
}
|