@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
|
@@ -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
|
+
}
|
package/apis/UserApi.ts
CHANGED
|
@@ -17,21 +17,17 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApiUserGet200Response,
|
|
19
19
|
ApiUserGetFilterParameter,
|
|
20
|
-
ApiUserLeaderboardGet200Response,
|
|
21
20
|
} from '../models/index';
|
|
22
21
|
import {
|
|
23
22
|
ApiUserGet200ResponseFromJSON,
|
|
24
23
|
ApiUserGet200ResponseToJSON,
|
|
25
24
|
ApiUserGetFilterParameterFromJSON,
|
|
26
25
|
ApiUserGetFilterParameterToJSON,
|
|
27
|
-
ApiUserLeaderboardGet200ResponseFromJSON,
|
|
28
|
-
ApiUserLeaderboardGet200ResponseToJSON,
|
|
29
26
|
} from '../models/index';
|
|
30
27
|
|
|
31
28
|
export interface ApiUserGetRequest {
|
|
32
29
|
page?: number;
|
|
33
30
|
pageSize?: number;
|
|
34
|
-
userId?: number | null;
|
|
35
31
|
sort?: string;
|
|
36
32
|
filter?: ApiUserGetFilterParameter;
|
|
37
33
|
}
|
|
@@ -55,10 +51,6 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
55
51
|
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
if (requestParameters['userId'] != null) {
|
|
59
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
54
|
if (requestParameters['sort'] != null) {
|
|
63
55
|
queryParameters['sort'] = requestParameters['sort'];
|
|
64
56
|
}
|
|
@@ -99,42 +91,4 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
99
91
|
return await response.value();
|
|
100
92
|
}
|
|
101
93
|
|
|
102
|
-
/**
|
|
103
|
-
* Get User Leaderboard
|
|
104
|
-
*/
|
|
105
|
-
async apiUserLeaderboardGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserLeaderboardGet200Response>> {
|
|
106
|
-
const queryParameters: any = {};
|
|
107
|
-
|
|
108
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
109
|
-
|
|
110
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
115
|
-
const token = this.configuration.accessToken;
|
|
116
|
-
const tokenString = await token("BearerAuth", []);
|
|
117
|
-
|
|
118
|
-
if (tokenString) {
|
|
119
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
const response = await this.request({
|
|
123
|
-
path: `/api/user/leaderboard`,
|
|
124
|
-
method: 'GET',
|
|
125
|
-
headers: headerParameters,
|
|
126
|
-
query: queryParameters,
|
|
127
|
-
}, initOverrides);
|
|
128
|
-
|
|
129
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserLeaderboardGet200ResponseFromJSON(jsonValue));
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Get User Leaderboard
|
|
134
|
-
*/
|
|
135
|
-
async apiUserLeaderboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserLeaderboardGet200Response> {
|
|
136
|
-
const response = await this.apiUserLeaderboardGetRaw(initOverrides);
|
|
137
|
-
return await response.value();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
94
|
}
|
|
@@ -0,0 +1,176 @@
|
|
|
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
|
+
ApiUserLeaderboardGet200Response,
|
|
19
|
+
ApiUserPointsGet200Response,
|
|
20
|
+
ApiUserPointsHistoryGet200Response,
|
|
21
|
+
ApiUserPointsHistoryGetFilterParameter,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
ApiUserLeaderboardGet200ResponseFromJSON,
|
|
25
|
+
ApiUserLeaderboardGet200ResponseToJSON,
|
|
26
|
+
ApiUserPointsGet200ResponseFromJSON,
|
|
27
|
+
ApiUserPointsGet200ResponseToJSON,
|
|
28
|
+
ApiUserPointsHistoryGet200ResponseFromJSON,
|
|
29
|
+
ApiUserPointsHistoryGet200ResponseToJSON,
|
|
30
|
+
ApiUserPointsHistoryGetFilterParameterFromJSON,
|
|
31
|
+
ApiUserPointsHistoryGetFilterParameterToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface ApiUserPointsHistoryGetRequest {
|
|
35
|
+
page?: number;
|
|
36
|
+
pageSize?: number;
|
|
37
|
+
sort?: string;
|
|
38
|
+
filter?: ApiUserPointsHistoryGetFilterParameter;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export class UserPointsApi extends runtime.BaseAPI {
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Get User Leaderboard
|
|
48
|
+
*/
|
|
49
|
+
async apiUserLeaderboardGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserLeaderboardGet200Response>> {
|
|
50
|
+
const queryParameters: any = {};
|
|
51
|
+
|
|
52
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
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/user/leaderboard`,
|
|
68
|
+
method: 'GET',
|
|
69
|
+
headers: headerParameters,
|
|
70
|
+
query: queryParameters,
|
|
71
|
+
}, initOverrides);
|
|
72
|
+
|
|
73
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserLeaderboardGet200ResponseFromJSON(jsonValue));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Get User Leaderboard
|
|
78
|
+
*/
|
|
79
|
+
async apiUserLeaderboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserLeaderboardGet200Response> {
|
|
80
|
+
const response = await this.apiUserLeaderboardGetRaw(initOverrides);
|
|
81
|
+
return await response.value();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Get Self Points
|
|
86
|
+
*/
|
|
87
|
+
async apiUserPointsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserPointsGet200Response>> {
|
|
88
|
+
const queryParameters: any = {};
|
|
89
|
+
|
|
90
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
91
|
+
|
|
92
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
93
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
+
const token = this.configuration.accessToken;
|
|
98
|
+
const tokenString = await token("BearerAuth", []);
|
|
99
|
+
|
|
100
|
+
if (tokenString) {
|
|
101
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const response = await this.request({
|
|
105
|
+
path: `/api/user/points`,
|
|
106
|
+
method: 'GET',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserPointsGet200ResponseFromJSON(jsonValue));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Get Self Points
|
|
116
|
+
*/
|
|
117
|
+
async apiUserPointsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointsGet200Response> {
|
|
118
|
+
const response = await this.apiUserPointsGetRaw(initOverrides);
|
|
119
|
+
return await response.value();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Get Self Point History
|
|
124
|
+
*/
|
|
125
|
+
async apiUserPointsHistoryGetRaw(requestParameters: ApiUserPointsHistoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserPointsHistoryGet200Response>> {
|
|
126
|
+
const queryParameters: any = {};
|
|
127
|
+
|
|
128
|
+
if (requestParameters['page'] != null) {
|
|
129
|
+
queryParameters['page'] = requestParameters['page'];
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (requestParameters['pageSize'] != null) {
|
|
133
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (requestParameters['sort'] != null) {
|
|
137
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (requestParameters['filter'] != null) {
|
|
141
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
145
|
+
|
|
146
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
147
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
151
|
+
const token = this.configuration.accessToken;
|
|
152
|
+
const tokenString = await token("BearerAuth", []);
|
|
153
|
+
|
|
154
|
+
if (tokenString) {
|
|
155
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const response = await this.request({
|
|
159
|
+
path: `/api/user/points/history`,
|
|
160
|
+
method: 'GET',
|
|
161
|
+
headers: headerParameters,
|
|
162
|
+
query: queryParameters,
|
|
163
|
+
}, initOverrides);
|
|
164
|
+
|
|
165
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserPointsHistoryGet200ResponseFromJSON(jsonValue));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Get Self Point History
|
|
170
|
+
*/
|
|
171
|
+
async apiUserPointsHistoryGet(requestParameters: ApiUserPointsHistoryGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointsHistoryGet200Response> {
|
|
172
|
+
const response = await this.apiUserPointsHistoryGetRaw(requestParameters, initOverrides);
|
|
173
|
+
return await response.value();
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
}
|
package/apis/index.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AppConfigApi';
|
|
4
|
+
export * from './AuthenticationApi';
|
|
3
5
|
export * from './HealthCheckApi';
|
|
4
6
|
export * from './NewsApi';
|
|
5
7
|
export * from './PadelApi';
|
|
6
8
|
export * from './TennisApi';
|
|
7
9
|
export * from './TournamentApi';
|
|
8
10
|
export * from './UserApi';
|
|
11
|
+
export * from './UserAffiliateApi';
|
|
12
|
+
export * from './UserPointsApi';
|
|
9
13
|
export * from './YoutubeApi';
|