@drxsuperapp/sdk 1.1.163 → 1.1.170
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 +32 -0
- package/apis/AppConfigApi.ts +119 -0
- package/apis/AuthenticationApi.ts +166 -0
- package/apis/PadelApi.ts +0 -5
- package/apis/TennisApi.ts +0 -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 +216 -7
- 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 +0 -3
- package/dist/apis/TennisApi.js +0 -9
- 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/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 +28 -0
- package/dist/models/index.js +28 -0
- package/models/ApiAuthLoginPost200Response.ts +100 -0
- package/models/ApiAuthRefreshPost200Response.ts +100 -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 +28 -0
- package/package.json +1 -1
- package/workflow.sh +2 -2
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
|
|
@@ -96,15 +102,41 @@ models/ApiTournamentPadelPostRequestBody.ts
|
|
|
96
102
|
models/ApiTournamentPadelPostRequestBodyPlayersInner.ts
|
|
97
103
|
models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
|
|
98
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
|
|
99
112
|
models/ApiUserGet200Response.ts
|
|
100
113
|
models/ApiUserGetFilterParameter.ts
|
|
101
114
|
models/ApiUserLeaderboardGet200Response.ts
|
|
102
115
|
models/ApiUserLeaderboardGet200ResponseResponseObject.ts
|
|
103
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
|
|
104
132
|
models/ApiYoutubeDrxContentGet200Response.ts
|
|
105
133
|
models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
|
|
106
134
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
|
|
107
135
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts
|
|
108
136
|
models/ApiYoutubeRefreshPost200Response.ts
|
|
137
|
+
models/LoginRequest.ts
|
|
138
|
+
models/LoginResponse.ts
|
|
139
|
+
models/LoginResponseUser.ts
|
|
140
|
+
models/RefreshTokenResponse.ts
|
|
109
141
|
models/index.ts
|
|
110
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
|
@@ -55,7 +55,6 @@ import {
|
|
|
55
55
|
export interface ApiTennisMatchesGetRequest {
|
|
56
56
|
page?: number;
|
|
57
57
|
pageSize?: number;
|
|
58
|
-
userId?: number | null;
|
|
59
58
|
sort?: string;
|
|
60
59
|
filter?: ApiTennisMatchesGetFilterParameter;
|
|
61
60
|
}
|
|
@@ -67,7 +66,6 @@ export interface ApiTennisMatchesIdGetRequest {
|
|
|
67
66
|
export interface ApiTennisPlayersGetRequest {
|
|
68
67
|
page?: number;
|
|
69
68
|
pageSize?: number;
|
|
70
|
-
userId?: number | null;
|
|
71
69
|
sort?: string;
|
|
72
70
|
filter?: ApiTennisPlayersGetFilterParameter;
|
|
73
71
|
}
|
|
@@ -79,7 +77,6 @@ export interface ApiTennisPlayersIdGetRequest {
|
|
|
79
77
|
export interface ApiTennisTournamentsGetRequest {
|
|
80
78
|
page?: number;
|
|
81
79
|
pageSize?: number;
|
|
82
|
-
userId?: number | null;
|
|
83
80
|
sort?: string;
|
|
84
81
|
filter?: ApiTennisTournamentsGetFilterParameter;
|
|
85
82
|
}
|
|
@@ -145,10 +142,6 @@ export class TennisApi extends runtime.BaseAPI {
|
|
|
145
142
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
146
143
|
}
|
|
147
144
|
|
|
148
|
-
if (requestParameters['userId'] != null) {
|
|
149
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
150
|
-
}
|
|
151
|
-
|
|
152
145
|
if (requestParameters['sort'] != null) {
|
|
153
146
|
queryParameters['sort'] = requestParameters['sort'];
|
|
154
147
|
}
|
|
@@ -248,10 +241,6 @@ export class TennisApi extends runtime.BaseAPI {
|
|
|
248
241
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
249
242
|
}
|
|
250
243
|
|
|
251
|
-
if (requestParameters['userId'] != null) {
|
|
252
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
253
|
-
}
|
|
254
|
-
|
|
255
244
|
if (requestParameters['sort'] != null) {
|
|
256
245
|
queryParameters['sort'] = requestParameters['sort'];
|
|
257
246
|
}
|
|
@@ -427,10 +416,6 @@ export class TennisApi extends runtime.BaseAPI {
|
|
|
427
416
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
428
417
|
}
|
|
429
418
|
|
|
430
|
-
if (requestParameters['userId'] != null) {
|
|
431
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
432
|
-
}
|
|
433
|
-
|
|
434
419
|
if (requestParameters['sort'] != null) {
|
|
435
420
|
queryParameters['sort'] = requestParameters['sort'];
|
|
436
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
|
}
|
|
@@ -0,0 +1,186 @@
|
|
|
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
|
+
ApiUserAffiliateGet200Response,
|
|
19
|
+
ApiUserApplyAffiliateCodePost200Response,
|
|
20
|
+
ApiUserApplyAffiliateCodePostRequest,
|
|
21
|
+
ApiUserRecentReferralsGet200Response,
|
|
22
|
+
ApiUserRecentReferralsGetFilterParameter,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
import {
|
|
25
|
+
ApiUserAffiliateGet200ResponseFromJSON,
|
|
26
|
+
ApiUserAffiliateGet200ResponseToJSON,
|
|
27
|
+
ApiUserApplyAffiliateCodePost200ResponseFromJSON,
|
|
28
|
+
ApiUserApplyAffiliateCodePost200ResponseToJSON,
|
|
29
|
+
ApiUserApplyAffiliateCodePostRequestFromJSON,
|
|
30
|
+
ApiUserApplyAffiliateCodePostRequestToJSON,
|
|
31
|
+
ApiUserRecentReferralsGet200ResponseFromJSON,
|
|
32
|
+
ApiUserRecentReferralsGet200ResponseToJSON,
|
|
33
|
+
ApiUserRecentReferralsGetFilterParameterFromJSON,
|
|
34
|
+
ApiUserRecentReferralsGetFilterParameterToJSON,
|
|
35
|
+
} from '../models/index';
|
|
36
|
+
|
|
37
|
+
export interface ApiUserApplyAffiliateCodePostOperationRequest {
|
|
38
|
+
apiUserApplyAffiliateCodePostRequest?: ApiUserApplyAffiliateCodePostRequest;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ApiUserRecentReferralsGetRequest {
|
|
42
|
+
page?: number;
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
sort?: string;
|
|
45
|
+
filter?: ApiUserRecentReferralsGetFilterParameter;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export class UserAffiliateApi extends runtime.BaseAPI {
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get Self Affiliate Code and Stats
|
|
55
|
+
*/
|
|
56
|
+
async apiUserAffiliateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAffiliateGet200Response>> {
|
|
57
|
+
const queryParameters: any = {};
|
|
58
|
+
|
|
59
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
60
|
+
|
|
61
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
62
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
66
|
+
const token = this.configuration.accessToken;
|
|
67
|
+
const tokenString = await token("BearerAuth", []);
|
|
68
|
+
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/api/user/affiliate`,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAffiliateGet200ResponseFromJSON(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Get Self Affiliate Code and Stats
|
|
85
|
+
*/
|
|
86
|
+
async apiUserAffiliateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAffiliateGet200Response> {
|
|
87
|
+
const response = await this.apiUserAffiliateGetRaw(initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Apply Affiliate Code
|
|
93
|
+
*/
|
|
94
|
+
async apiUserApplyAffiliateCodePostRaw(requestParameters: ApiUserApplyAffiliateCodePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserApplyAffiliateCodePost200Response>> {
|
|
95
|
+
const queryParameters: any = {};
|
|
96
|
+
|
|
97
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
98
|
+
|
|
99
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
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/user/apply-affiliate-code`,
|
|
115
|
+
method: 'POST',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
body: ApiUserApplyAffiliateCodePostRequestToJSON(requestParameters['apiUserApplyAffiliateCodePostRequest']),
|
|
119
|
+
}, initOverrides);
|
|
120
|
+
|
|
121
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserApplyAffiliateCodePost200ResponseFromJSON(jsonValue));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Apply Affiliate Code
|
|
126
|
+
*/
|
|
127
|
+
async apiUserApplyAffiliateCodePost(requestParameters: ApiUserApplyAffiliateCodePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserApplyAffiliateCodePost200Response> {
|
|
128
|
+
const response = await this.apiUserApplyAffiliateCodePostRaw(requestParameters, initOverrides);
|
|
129
|
+
return await response.value();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Get Self Recent Referrals
|
|
134
|
+
*/
|
|
135
|
+
async apiUserRecentReferralsGetRaw(requestParameters: ApiUserRecentReferralsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserRecentReferralsGet200Response>> {
|
|
136
|
+
const queryParameters: any = {};
|
|
137
|
+
|
|
138
|
+
if (requestParameters['page'] != null) {
|
|
139
|
+
queryParameters['page'] = requestParameters['page'];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (requestParameters['pageSize'] != null) {
|
|
143
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (requestParameters['sort'] != null) {
|
|
147
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (requestParameters['filter'] != null) {
|
|
151
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
155
|
+
|
|
156
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
161
|
+
const token = this.configuration.accessToken;
|
|
162
|
+
const tokenString = await token("BearerAuth", []);
|
|
163
|
+
|
|
164
|
+
if (tokenString) {
|
|
165
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
const response = await this.request({
|
|
169
|
+
path: `/api/user/recent-referrals`,
|
|
170
|
+
method: 'GET',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
}, initOverrides);
|
|
174
|
+
|
|
175
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserRecentReferralsGet200ResponseFromJSON(jsonValue));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Get Self Recent Referrals
|
|
180
|
+
*/
|
|
181
|
+
async apiUserRecentReferralsGet(requestParameters: ApiUserRecentReferralsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserRecentReferralsGet200Response> {
|
|
182
|
+
const response = await this.apiUserRecentReferralsGetRaw(requestParameters, initOverrides);
|
|
183
|
+
return await response.value();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
}
|