@drxsuperapp/sdk 1.1.141 → 1.1.142
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 +3 -0
- package/apis/UserApi.ts +41 -0
- package/deploy.log +18 -9
- package/dist/apis/UserApi.d.ts +9 -1
- package/dist/apis/UserApi.js +32 -1
- package/dist/models/ApiUserLeaderboardGet200Response.d.ts +51 -0
- package/dist/models/ApiUserLeaderboardGet200Response.js +54 -0
- package/dist/models/ApiUserLeaderboardGet200ResponseResponseObject.d.ts +39 -0
- package/dist/models/ApiUserLeaderboardGet200ResponseResponseObject.js +48 -0
- package/dist/models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.d.ts +56 -0
- package/dist/models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.js +59 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/models/ApiUserLeaderboardGet200Response.ts +100 -0
- package/models/ApiUserLeaderboardGet200ResponseResponseObject.ts +83 -0
- package/models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.ts +102 -0
- package/models/index.ts +3 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -75,6 +75,9 @@ models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
|
|
|
75
75
|
models/ApiTournamentSeedGameTypesGet200Response.ts
|
|
76
76
|
models/ApiUserGet200Response.ts
|
|
77
77
|
models/ApiUserGetFilterParameter.ts
|
|
78
|
+
models/ApiUserLeaderboardGet200Response.ts
|
|
79
|
+
models/ApiUserLeaderboardGet200ResponseResponseObject.ts
|
|
80
|
+
models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.ts
|
|
78
81
|
models/ApiYoutubeDrxContentGet200Response.ts
|
|
79
82
|
models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
|
|
80
83
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
|
package/apis/UserApi.ts
CHANGED
|
@@ -17,12 +17,15 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApiUserGet200Response,
|
|
19
19
|
ApiUserGetFilterParameter,
|
|
20
|
+
ApiUserLeaderboardGet200Response,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
ApiUserGet200ResponseFromJSON,
|
|
23
24
|
ApiUserGet200ResponseToJSON,
|
|
24
25
|
ApiUserGetFilterParameterFromJSON,
|
|
25
26
|
ApiUserGetFilterParameterToJSON,
|
|
27
|
+
ApiUserLeaderboardGet200ResponseFromJSON,
|
|
28
|
+
ApiUserLeaderboardGet200ResponseToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
28
31
|
export interface ApiUserGetRequest {
|
|
@@ -96,4 +99,42 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
96
99
|
return await response.value();
|
|
97
100
|
}
|
|
98
101
|
|
|
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
|
+
|
|
99
140
|
}
|
package/deploy.log
CHANGED
|
@@ -78,6 +78,9 @@
|
|
|
78
78
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_padel_leaderboard__id__get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tournament_padel_leaderboard__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_padel_leaderboard__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
79
79
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
80
80
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
81
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_leaderboard_get_200_response_responseObject_leaderboard_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_leaderboard_get_200_response_responseObject_leaderboard_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_leaderboard_get_200_response_responseObject_leaderboard_inner=NewModel,ModelA=NewModelA in CLI).
|
|
82
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_leaderboard_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_leaderboard_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_leaderboard_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
83
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_leaderboard_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_leaderboard_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_leaderboard_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
81
84
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
82
85
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
83
86
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -149,6 +152,9 @@
|
|
|
149
152
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentSeedGameTypesGet200Response.ts
|
|
150
153
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserGet200Response.ts
|
|
151
154
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserGetFilterParameter.ts
|
|
155
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserLeaderboardGet200Response.ts
|
|
156
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserLeaderboardGet200ResponseResponseObject.ts
|
|
157
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.ts
|
|
152
158
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200Response.ts
|
|
153
159
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
|
|
154
160
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
|
|
@@ -174,6 +180,7 @@
|
|
|
174
180
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/tournament/padel/match-team. Renamed to auto-generated operationId: apiTournamentPadelMatchTeamPut
|
|
175
181
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tournament/padel/leaderboard/{id}. Renamed to auto-generated operationId: apiTournamentPadelLeaderboardIdGet
|
|
176
182
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/user. Renamed to auto-generated operationId: apiUserGet
|
|
183
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/user/leaderboard. Renamed to auto-generated operationId: apiUserLeaderboardGet
|
|
177
184
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
178
185
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/HealthCheckApi.ts
|
|
179
186
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
@@ -200,21 +207,23 @@
|
|
|
200
207
|
# https://opencollective.com/openapi_generator/donate #
|
|
201
208
|
################################################################################
|
|
202
209
|
✅ SDK generated
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
210
|
+
[master 7ac8aac] VPS: Generated API SDK
|
|
211
|
+
6 files changed, 332 insertions(+)
|
|
212
|
+
create mode 100644 models/ApiUserLeaderboardGet200Response.ts
|
|
213
|
+
create mode 100644 models/ApiUserLeaderboardGet200ResponseResponseObject.ts
|
|
214
|
+
create mode 100644 models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.ts
|
|
215
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
216
|
+
0ef945e..7ac8aac master -> master
|
|
208
217
|
✅ Changes committed and pushed
|
|
209
|
-
v1.1.
|
|
218
|
+
v1.1.142
|
|
210
219
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
211
|
-
|
|
220
|
+
7ac8aac..bb8d8e4 master -> master
|
|
212
221
|
✅ Version bumped
|
|
213
222
|
|
|
214
|
-
> @drxsuperapp/sdk@1.1.
|
|
223
|
+
> @drxsuperapp/sdk@1.1.142 prepublishOnly
|
|
215
224
|
> npm run build
|
|
216
225
|
|
|
217
226
|
|
|
218
|
-
> @drxsuperapp/sdk@1.1.
|
|
227
|
+
> @drxsuperapp/sdk@1.1.142 build
|
|
219
228
|
> tsc
|
|
220
229
|
|
package/dist/apis/UserApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiUserGet200Response, ApiUserGetFilterParameter } from '../models/index';
|
|
13
|
+
import type { ApiUserGet200Response, ApiUserGetFilterParameter, ApiUserLeaderboardGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiUserGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
@@ -30,4 +30,12 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
30
30
|
* Get User List
|
|
31
31
|
*/
|
|
32
32
|
apiUserGet(requestParameters?: ApiUserGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response>;
|
|
33
|
+
/**
|
|
34
|
+
* Get User Leaderboard
|
|
35
|
+
*/
|
|
36
|
+
apiUserLeaderboardGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserLeaderboardGet200Response>>;
|
|
37
|
+
/**
|
|
38
|
+
* Get User Leaderboard
|
|
39
|
+
*/
|
|
40
|
+
apiUserLeaderboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserLeaderboardGet200Response>;
|
|
33
41
|
}
|
package/dist/apis/UserApi.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiUserGet200ResponseFromJSON, ApiUserLeaderboardGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -63,4 +63,35 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
63
63
|
const response = await this.apiUserGetRaw(requestParameters, initOverrides);
|
|
64
64
|
return await response.value();
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Get User Leaderboard
|
|
68
|
+
*/
|
|
69
|
+
async apiUserLeaderboardGetRaw(initOverrides) {
|
|
70
|
+
const queryParameters = {};
|
|
71
|
+
const headerParameters = {};
|
|
72
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
74
|
+
}
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
const token = this.configuration.accessToken;
|
|
77
|
+
const tokenString = await token("BearerAuth", []);
|
|
78
|
+
if (tokenString) {
|
|
79
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const response = await this.request({
|
|
83
|
+
path: `/api/user/leaderboard`,
|
|
84
|
+
method: 'GET',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserLeaderboardGet200ResponseFromJSON(jsonValue));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get User Leaderboard
|
|
92
|
+
*/
|
|
93
|
+
async apiUserLeaderboardGet(initOverrides) {
|
|
94
|
+
const response = await this.apiUserLeaderboardGetRaw(initOverrides);
|
|
95
|
+
return await response.value();
|
|
96
|
+
}
|
|
66
97
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiUserLeaderboardGet200ResponseResponseObject } from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserLeaderboardGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserLeaderboardGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiUserLeaderboardGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiUserLeaderboardGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiUserLeaderboardGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiUserLeaderboardGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiUserLeaderboardGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiUserLeaderboardGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiUserLeaderboardGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiUserLeaderboardGet200Response(value: object): value is ApiUserLeaderboardGet200Response;
|
|
48
|
+
export declare function ApiUserLeaderboardGet200ResponseFromJSON(json: any): ApiUserLeaderboardGet200Response;
|
|
49
|
+
export declare function ApiUserLeaderboardGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserLeaderboardGet200Response;
|
|
50
|
+
export declare function ApiUserLeaderboardGet200ResponseToJSON(json: any): ApiUserLeaderboardGet200Response;
|
|
51
|
+
export declare function ApiUserLeaderboardGet200ResponseToJSONTyped(value?: ApiUserLeaderboardGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import { ApiUserLeaderboardGet200ResponseResponseObjectFromJSON, ApiUserLeaderboardGet200ResponseResponseObjectToJSON, } from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserLeaderboardGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserLeaderboardGet200Response(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiUserLeaderboardGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiUserLeaderboardGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserLeaderboardGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiUserLeaderboardGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiUserLeaderboardGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiUserLeaderboardGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiUserLeaderboardGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiUserLeaderboardGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner } from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserLeaderboardGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserLeaderboardGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner>}
|
|
22
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
leaderboard: Array<ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
totalUsers: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ApiUserLeaderboardGet200ResponseResponseObject interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfApiUserLeaderboardGet200ResponseResponseObject(value: object): value is ApiUserLeaderboardGet200ResponseResponseObject;
|
|
36
|
+
export declare function ApiUserLeaderboardGet200ResponseResponseObjectFromJSON(json: any): ApiUserLeaderboardGet200ResponseResponseObject;
|
|
37
|
+
export declare function ApiUserLeaderboardGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserLeaderboardGet200ResponseResponseObject;
|
|
38
|
+
export declare function ApiUserLeaderboardGet200ResponseResponseObjectToJSON(json: any): ApiUserLeaderboardGet200ResponseResponseObject;
|
|
39
|
+
export declare function ApiUserLeaderboardGet200ResponseResponseObjectToJSONTyped(value?: ApiUserLeaderboardGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
import { ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSON, ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSON, } from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserLeaderboardGet200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserLeaderboardGet200ResponseResponseObject(value) {
|
|
19
|
+
if (!('leaderboard' in value) || value['leaderboard'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('totalUsers' in value) || value['totalUsers'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectFromJSON(json) {
|
|
26
|
+
return ApiUserLeaderboardGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'leaderboard': (json['leaderboard'].map(ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSON)),
|
|
34
|
+
'totalUsers': json['totalUsers'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectToJSON(json) {
|
|
38
|
+
return ApiUserLeaderboardGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'leaderboard': (value['leaderboard'].map(ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSON)),
|
|
46
|
+
'totalUsers': value['totalUsers'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
28
|
+
*/
|
|
29
|
+
name: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
34
|
+
*/
|
|
35
|
+
email: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
40
|
+
*/
|
|
41
|
+
totalPoints: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
46
|
+
*/
|
|
47
|
+
rank: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner(value: object): value is ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner;
|
|
53
|
+
export declare function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSON(json: any): ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner;
|
|
54
|
+
export declare function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner;
|
|
55
|
+
export declare function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSON(json: any): ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner;
|
|
56
|
+
export declare function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSONTyped(value?: ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* Check if a given object implements the ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner(value) {
|
|
18
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('totalPoints' in value) || value['totalPoints'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('rank' in value) || value['rank'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSON(json) {
|
|
31
|
+
return ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'userId': json['userId'],
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'email': json['email'],
|
|
41
|
+
'totalPoints': json['totalPoints'],
|
|
42
|
+
'rank': json['rank'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSON(json) {
|
|
46
|
+
return ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'userId': value['userId'],
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'email': value['email'],
|
|
56
|
+
'totalPoints': value['totalPoints'],
|
|
57
|
+
'rank': value['rank'],
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -67,6 +67,9 @@ export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
|
|
|
67
67
|
export * from './ApiTournamentSeedGameTypesGet200Response';
|
|
68
68
|
export * from './ApiUserGet200Response';
|
|
69
69
|
export * from './ApiUserGetFilterParameter';
|
|
70
|
+
export * from './ApiUserLeaderboardGet200Response';
|
|
71
|
+
export * from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
72
|
+
export * from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
70
73
|
export * from './ApiYoutubeDrxContentGet200Response';
|
|
71
74
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
|
|
72
75
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
|
package/dist/models/index.js
CHANGED
|
@@ -69,6 +69,9 @@ export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
|
|
|
69
69
|
export * from './ApiTournamentSeedGameTypesGet200Response';
|
|
70
70
|
export * from './ApiUserGet200Response';
|
|
71
71
|
export * from './ApiUserGetFilterParameter';
|
|
72
|
+
export * from './ApiUserLeaderboardGet200Response';
|
|
73
|
+
export * from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
74
|
+
export * from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
72
75
|
export * from './ApiYoutubeDrxContentGet200Response';
|
|
73
76
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
|
|
74
77
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiUserLeaderboardGet200ResponseResponseObject } from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiUserLeaderboardGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiUserLeaderboardGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiUserLeaderboardGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiUserLeaderboardGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUserLeaderboardGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUserLeaderboardGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiUserLeaderboardGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiUserLeaderboardGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiUserLeaderboardGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiUserLeaderboardGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiUserLeaderboardGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiUserLeaderboardGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiUserLeaderboardGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiUserLeaderboardGet200Response(value: object): value is ApiUserLeaderboardGet200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiUserLeaderboardGet200ResponseFromJSON(json: any): ApiUserLeaderboardGet200Response {
|
|
67
|
+
return ApiUserLeaderboardGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiUserLeaderboardGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserLeaderboardGet200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiUserLeaderboardGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiUserLeaderboardGet200ResponseToJSON(json: any): ApiUserLeaderboardGet200Response {
|
|
84
|
+
return ApiUserLeaderboardGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiUserLeaderboardGet200ResponseToJSONTyped(value?: ApiUserLeaderboardGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiUserLeaderboardGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner } from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSON,
|
|
19
|
+
ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSONTyped,
|
|
20
|
+
ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSON,
|
|
21
|
+
ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSONTyped,
|
|
22
|
+
} from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUserLeaderboardGet200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUserLeaderboardGet200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner>}
|
|
33
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
leaderboard: Array<ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
totalUsers: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiUserLeaderboardGet200ResponseResponseObject interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfApiUserLeaderboardGet200ResponseResponseObject(value: object): value is ApiUserLeaderboardGet200ResponseResponseObject {
|
|
48
|
+
if (!('leaderboard' in value) || value['leaderboard'] === undefined) return false;
|
|
49
|
+
if (!('totalUsers' in value) || value['totalUsers'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectFromJSON(json: any): ApiUserLeaderboardGet200ResponseResponseObject {
|
|
54
|
+
return ApiUserLeaderboardGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserLeaderboardGet200ResponseResponseObject {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'leaderboard': ((json['leaderboard'] as Array<any>).map(ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSON)),
|
|
64
|
+
'totalUsers': json['totalUsers'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectToJSON(json: any): ApiUserLeaderboardGet200ResponseResponseObject {
|
|
69
|
+
return ApiUserLeaderboardGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectToJSONTyped(value?: ApiUserLeaderboardGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'leaderboard': ((value['leaderboard'] as Array<any>).map(ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSON)),
|
|
80
|
+
'totalUsers': value['totalUsers'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
32
|
+
*/
|
|
33
|
+
name: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
38
|
+
*/
|
|
39
|
+
email: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
44
|
+
*/
|
|
45
|
+
totalPoints: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner
|
|
50
|
+
*/
|
|
51
|
+
rank: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner(value: object): value is ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner {
|
|
58
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
59
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
61
|
+
if (!('totalPoints' in value) || value['totalPoints'] === undefined) return false;
|
|
62
|
+
if (!('rank' in value) || value['rank'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSON(json: any): ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner {
|
|
67
|
+
return ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'userId': json['userId'],
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'email': json['email'],
|
|
79
|
+
'totalPoints': json['totalPoints'],
|
|
80
|
+
'rank': json['rank'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSON(json: any): ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner {
|
|
85
|
+
return ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInnerToJSONTyped(value?: ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'userId': value['userId'],
|
|
96
|
+
'name': value['name'],
|
|
97
|
+
'email': value['email'],
|
|
98
|
+
'totalPoints': value['totalPoints'],
|
|
99
|
+
'rank': value['rank'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
package/models/index.ts
CHANGED
|
@@ -69,6 +69,9 @@ export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
|
|
|
69
69
|
export * from './ApiTournamentSeedGameTypesGet200Response';
|
|
70
70
|
export * from './ApiUserGet200Response';
|
|
71
71
|
export * from './ApiUserGetFilterParameter';
|
|
72
|
+
export * from './ApiUserLeaderboardGet200Response';
|
|
73
|
+
export * from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
74
|
+
export * from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
72
75
|
export * from './ApiYoutubeDrxContentGet200Response';
|
|
73
76
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
|
|
74
77
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
|