@drxsuperapp/sdk 1.1.182 → 1.1.184
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 +17 -17
- package/dist/apis/UserApi.d.ts +9 -1
- package/dist/apis/UserApi.js +32 -1
- package/dist/models/ApiUserMeGet200Response.d.ts +51 -0
- package/dist/models/ApiUserMeGet200Response.js +54 -0
- package/dist/models/ApiUserMeGet200ResponseResponseObject.d.ts +93 -0
- package/dist/models/ApiUserMeGet200ResponseResponseObject.js +84 -0
- package/dist/models/ApiUserMeGet200ResponseResponseObjectReferrer.d.ts +44 -0
- package/dist/models/ApiUserMeGet200ResponseResponseObjectReferrer.js +51 -0
- package/dist/models/ApiUserRewardPointsPostRequest.d.ts +0 -1
- package/dist/models/ApiUserRewardPointsPostRequest.js +1 -2
- package/dist/models/ApiUserRewardPointsPostRequestMetadata.d.ts +0 -6
- package/dist/models/ApiUserRewardPointsPostRequestMetadata.js +0 -2
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/models/ApiUserMeGet200Response.ts +100 -0
- package/models/ApiUserMeGet200ResponseResponseObject.ts +164 -0
- package/models/ApiUserMeGet200ResponseResponseObjectReferrer.ts +84 -0
- package/models/ApiUserRewardPointsPostRequest.ts +1 -2
- package/models/ApiUserRewardPointsPostRequestMetadata.ts +0 -8
- package/models/index.ts +3 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -119,6 +119,9 @@ models/ApiUserLeaderboardGet200Response.ts
|
|
|
119
119
|
models/ApiUserLeaderboardGet200ResponseResponseObject.ts
|
|
120
120
|
models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.ts
|
|
121
121
|
models/ApiUserLeaderboardGetFilterParameter.ts
|
|
122
|
+
models/ApiUserMeGet200Response.ts
|
|
123
|
+
models/ApiUserMeGet200ResponseResponseObject.ts
|
|
124
|
+
models/ApiUserMeGet200ResponseResponseObjectReferrer.ts
|
|
122
125
|
models/ApiUserPointRewardsGet200Response.ts
|
|
123
126
|
models/ApiUserPointRewardsGet200ResponseResponseObject.ts
|
|
124
127
|
models/ApiUserPointRewardsPut200Response.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
|
+
ApiUserMeGet200Response,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
ApiUserGet200ResponseFromJSON,
|
|
23
24
|
ApiUserGet200ResponseToJSON,
|
|
24
25
|
ApiUserGetFilterParameterFromJSON,
|
|
25
26
|
ApiUserGetFilterParameterToJSON,
|
|
27
|
+
ApiUserMeGet200ResponseFromJSON,
|
|
28
|
+
ApiUserMeGet200ResponseToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
28
31
|
export interface ApiUserGetRequest {
|
|
@@ -91,4 +94,42 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
91
94
|
return await response.value();
|
|
92
95
|
}
|
|
93
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Get Self User Information
|
|
99
|
+
*/
|
|
100
|
+
async apiUserMeGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserMeGet200Response>> {
|
|
101
|
+
const queryParameters: any = {};
|
|
102
|
+
|
|
103
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
+
const token = this.configuration.accessToken;
|
|
111
|
+
const tokenString = await token("BearerAuth", []);
|
|
112
|
+
|
|
113
|
+
if (tokenString) {
|
|
114
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const response = await this.request({
|
|
118
|
+
path: `/api/user/me`,
|
|
119
|
+
method: 'GET',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
}, initOverrides);
|
|
123
|
+
|
|
124
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserMeGet200ResponseFromJSON(jsonValue));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Get Self User Information
|
|
129
|
+
*/
|
|
130
|
+
async apiUserMeGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserMeGet200Response> {
|
|
131
|
+
const response = await this.apiUserMeGetRaw(initOverrides);
|
|
132
|
+
return await response.value();
|
|
133
|
+
}
|
|
134
|
+
|
|
94
135
|
}
|
package/deploy.log
CHANGED
|
@@ -108,6 +108,9 @@
|
|
|
108
108
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_reward_points_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_reward_points_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_reward_points_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
109
109
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_reward_points_post_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_reward_points_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_reward_points_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
110
110
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_reward_points_post_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_reward_points_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_reward_points_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
111
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_me_get_200_response_responseObject_referrer. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_me_get_200_response_responseObject_referrer=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_me_get_200_response_responseObject_referrer=NewModel,ModelA=NewModelA in CLI).
|
|
112
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_me_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_me_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_me_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
113
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_me_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_me_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_me_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
111
114
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tennis_matches_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_tennis_matches_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tennis_matches_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
112
115
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tennis_matches_get_200_response_responseObject_items_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tennis_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tennis_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
113
116
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tennis_matches_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_tennis_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tennis_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -246,6 +249,9 @@
|
|
|
246
249
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserLeaderboardGet200ResponseResponseObject.ts
|
|
247
250
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner.ts
|
|
248
251
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserLeaderboardGetFilterParameter.ts
|
|
252
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserMeGet200Response.ts
|
|
253
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserMeGet200ResponseResponseObject.ts
|
|
254
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserMeGet200ResponseResponseObjectReferrer.ts
|
|
249
255
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserPointRewardsGet200Response.ts
|
|
250
256
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserPointRewardsGet200ResponseResponseObject.ts
|
|
251
257
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserPointRewardsPut200Response.ts
|
|
@@ -299,6 +305,7 @@
|
|
|
299
305
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/user/affiliate. Renamed to auto-generated operationId: apiUserAffiliateGet
|
|
300
306
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/user/recent-referrals. Renamed to auto-generated operationId: apiUserRecentReferralsGet
|
|
301
307
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/user/reward-points. Renamed to auto-generated operationId: apiUserRewardPointsPost
|
|
308
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/user/me. Renamed to auto-generated operationId: apiUserMeGet
|
|
302
309
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tennis/matches. Renamed to auto-generated operationId: apiTennisMatchesGet
|
|
303
310
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tennis/matches/{id}. Renamed to auto-generated operationId: apiTennisMatchesIdGet
|
|
304
311
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tennis/players. Renamed to auto-generated operationId: apiTennisPlayersGet
|
|
@@ -347,30 +354,23 @@
|
|
|
347
354
|
# https://opencollective.com/openapi_generator/donate #
|
|
348
355
|
################################################################################
|
|
349
356
|
✅ SDK generated
|
|
350
|
-
[master
|
|
351
|
-
|
|
352
|
-
create mode 100644 models/
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
create mode 100644 models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
356
|
-
create mode 100644 models/ApiUserRewardPointsPost200Response.ts
|
|
357
|
-
create mode 100644 models/ApiUserRewardPointsPost200ResponseResponseObject.ts
|
|
358
|
-
create mode 100644 models/ApiUserRewardPointsPostRequest.ts
|
|
359
|
-
create mode 100644 models/ApiUserRewardPointsPostRequestMetadata.ts
|
|
360
|
-
delete mode 100644 models/LoginResponse.ts
|
|
361
|
-
delete mode 100644 models/RefreshTokenResponse.ts
|
|
357
|
+
[master b88be50] VPS: Generated API SDK
|
|
358
|
+
6 files changed, 395 insertions(+)
|
|
359
|
+
create mode 100644 models/ApiUserMeGet200Response.ts
|
|
360
|
+
create mode 100644 models/ApiUserMeGet200ResponseResponseObject.ts
|
|
361
|
+
create mode 100644 models/ApiUserMeGet200ResponseResponseObjectReferrer.ts
|
|
362
362
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
363
|
-
|
|
363
|
+
81bbc77..b88be50 master -> master
|
|
364
364
|
✅ Changes committed and pushed
|
|
365
|
-
v1.1.
|
|
365
|
+
v1.1.184
|
|
366
366
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
367
|
-
|
|
367
|
+
b88be50..6fc7bc8 master -> master
|
|
368
368
|
✅ Version bumped
|
|
369
369
|
|
|
370
|
-
> @drxsuperapp/sdk@1.1.
|
|
370
|
+
> @drxsuperapp/sdk@1.1.184 prepublishOnly
|
|
371
371
|
> npm run build
|
|
372
372
|
|
|
373
373
|
|
|
374
|
-
> @drxsuperapp/sdk@1.1.
|
|
374
|
+
> @drxsuperapp/sdk@1.1.184 build
|
|
375
375
|
> tsc
|
|
376
376
|
|
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, ApiUserMeGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiUserGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
@@ -29,4 +29,12 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
29
29
|
* Get User List
|
|
30
30
|
*/
|
|
31
31
|
apiUserGet(requestParameters?: ApiUserGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response>;
|
|
32
|
+
/**
|
|
33
|
+
* Get Self User Information
|
|
34
|
+
*/
|
|
35
|
+
apiUserMeGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserMeGet200Response>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get Self User Information
|
|
38
|
+
*/
|
|
39
|
+
apiUserMeGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserMeGet200Response>;
|
|
32
40
|
}
|
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, ApiUserMeGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -60,4 +60,35 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
60
60
|
const response = await this.apiUserGetRaw(requestParameters, initOverrides);
|
|
61
61
|
return await response.value();
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Get Self User Information
|
|
65
|
+
*/
|
|
66
|
+
async apiUserMeGetRaw(initOverrides) {
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
71
|
+
}
|
|
72
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
73
|
+
const token = this.configuration.accessToken;
|
|
74
|
+
const tokenString = await token("BearerAuth", []);
|
|
75
|
+
if (tokenString) {
|
|
76
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const response = await this.request({
|
|
80
|
+
path: `/api/user/me`,
|
|
81
|
+
method: 'GET',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserMeGet200ResponseFromJSON(jsonValue));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Get Self User Information
|
|
89
|
+
*/
|
|
90
|
+
async apiUserMeGet(initOverrides) {
|
|
91
|
+
const response = await this.apiUserMeGetRaw(initOverrides);
|
|
92
|
+
return await response.value();
|
|
93
|
+
}
|
|
63
94
|
}
|
|
@@ -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 { ApiUserMeGet200ResponseResponseObject } from './ApiUserMeGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserMeGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserMeGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiUserMeGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiUserMeGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiUserMeGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiUserMeGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiUserMeGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiUserMeGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiUserMeGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiUserMeGet200Response(value: object): value is ApiUserMeGet200Response;
|
|
48
|
+
export declare function ApiUserMeGet200ResponseFromJSON(json: any): ApiUserMeGet200Response;
|
|
49
|
+
export declare function ApiUserMeGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserMeGet200Response;
|
|
50
|
+
export declare function ApiUserMeGet200ResponseToJSON(json: any): ApiUserMeGet200Response;
|
|
51
|
+
export declare function ApiUserMeGet200ResponseToJSONTyped(value?: ApiUserMeGet200Response | 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 { ApiUserMeGet200ResponseResponseObjectFromJSON, ApiUserMeGet200ResponseResponseObjectToJSON, } from './ApiUserMeGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserMeGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserMeGet200Response(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 ApiUserMeGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiUserMeGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserMeGet200ResponseFromJSONTyped(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 : ApiUserMeGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiUserMeGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiUserMeGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiUserMeGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiUserMeGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { ApiUserMeGet200ResponseResponseObjectReferrer } from './ApiUserMeGet200ResponseResponseObjectReferrer';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserMeGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserMeGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
fullname: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
username: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
email: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
phoneNumber: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
53
|
+
*/
|
|
54
|
+
dateOfBirth: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
59
|
+
*/
|
|
60
|
+
gender: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
65
|
+
*/
|
|
66
|
+
bio: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
71
|
+
*/
|
|
72
|
+
createdAt: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
77
|
+
*/
|
|
78
|
+
status: number | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {ApiUserMeGet200ResponseResponseObjectReferrer}
|
|
82
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
83
|
+
*/
|
|
84
|
+
referrer: ApiUserMeGet200ResponseResponseObjectReferrer | null;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the ApiUserMeGet200ResponseResponseObject interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfApiUserMeGet200ResponseResponseObject(value: object): value is ApiUserMeGet200ResponseResponseObject;
|
|
90
|
+
export declare function ApiUserMeGet200ResponseResponseObjectFromJSON(json: any): ApiUserMeGet200ResponseResponseObject;
|
|
91
|
+
export declare function ApiUserMeGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserMeGet200ResponseResponseObject;
|
|
92
|
+
export declare function ApiUserMeGet200ResponseResponseObjectToJSON(json: any): ApiUserMeGet200ResponseResponseObject;
|
|
93
|
+
export declare function ApiUserMeGet200ResponseResponseObjectToJSONTyped(value?: ApiUserMeGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { ApiUserMeGet200ResponseResponseObjectReferrerFromJSON, ApiUserMeGet200ResponseResponseObjectReferrerToJSON, } from './ApiUserMeGet200ResponseResponseObjectReferrer';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserMeGet200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserMeGet200ResponseResponseObject(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('fullname' in value) || value['fullname'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('gender' in value) || value['gender'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('bio' in value) || value['bio'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('referrer' in value) || value['referrer'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
export function ApiUserMeGet200ResponseResponseObjectFromJSON(json) {
|
|
44
|
+
return ApiUserMeGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function ApiUserMeGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'fullname': json['fullname'],
|
|
53
|
+
'username': json['username'],
|
|
54
|
+
'email': json['email'],
|
|
55
|
+
'phoneNumber': json['phone_number'],
|
|
56
|
+
'dateOfBirth': json['date_of_birth'],
|
|
57
|
+
'gender': json['gender'],
|
|
58
|
+
'bio': json['bio'],
|
|
59
|
+
'createdAt': json['created_at'],
|
|
60
|
+
'status': json['status'],
|
|
61
|
+
'referrer': ApiUserMeGet200ResponseResponseObjectReferrerFromJSON(json['referrer']),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function ApiUserMeGet200ResponseResponseObjectToJSON(json) {
|
|
65
|
+
return ApiUserMeGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
export function ApiUserMeGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'id': value['id'],
|
|
73
|
+
'fullname': value['fullname'],
|
|
74
|
+
'username': value['username'],
|
|
75
|
+
'email': value['email'],
|
|
76
|
+
'phone_number': value['phoneNumber'],
|
|
77
|
+
'date_of_birth': value['dateOfBirth'],
|
|
78
|
+
'gender': value['gender'],
|
|
79
|
+
'bio': value['bio'],
|
|
80
|
+
'created_at': value['createdAt'],
|
|
81
|
+
'status': value['status'],
|
|
82
|
+
'referrer': ApiUserMeGet200ResponseResponseObjectReferrerToJSON(value['referrer']),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ApiUserMeGet200ResponseResponseObjectReferrer
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiUserMeGet200ResponseResponseObjectReferrer {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiUserMeGet200ResponseResponseObjectReferrer
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiUserMeGet200ResponseResponseObjectReferrer
|
|
28
|
+
*/
|
|
29
|
+
fullname: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiUserMeGet200ResponseResponseObjectReferrer
|
|
34
|
+
*/
|
|
35
|
+
email: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApiUserMeGet200ResponseResponseObjectReferrer interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApiUserMeGet200ResponseResponseObjectReferrer(value: object): value is ApiUserMeGet200ResponseResponseObjectReferrer;
|
|
41
|
+
export declare function ApiUserMeGet200ResponseResponseObjectReferrerFromJSON(json: any): ApiUserMeGet200ResponseResponseObjectReferrer;
|
|
42
|
+
export declare function ApiUserMeGet200ResponseResponseObjectReferrerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserMeGet200ResponseResponseObjectReferrer;
|
|
43
|
+
export declare function ApiUserMeGet200ResponseResponseObjectReferrerToJSON(json: any): ApiUserMeGet200ResponseResponseObjectReferrer;
|
|
44
|
+
export declare function ApiUserMeGet200ResponseResponseObjectReferrerToJSONTyped(value?: ApiUserMeGet200ResponseResponseObjectReferrer | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ApiUserMeGet200ResponseResponseObjectReferrer interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiUserMeGet200ResponseResponseObjectReferrer(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('fullname' in value) || value['fullname'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ApiUserMeGet200ResponseResponseObjectReferrerFromJSON(json) {
|
|
27
|
+
return ApiUserMeGet200ResponseResponseObjectReferrerFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ApiUserMeGet200ResponseResponseObjectReferrerFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'fullname': json['fullname'],
|
|
36
|
+
'email': json['email'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ApiUserMeGet200ResponseResponseObjectReferrerToJSON(json) {
|
|
40
|
+
return ApiUserMeGet200ResponseResponseObjectReferrerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ApiUserMeGet200ResponseResponseObjectReferrerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': value['id'],
|
|
48
|
+
'fullname': value['fullname'],
|
|
49
|
+
'email': value['email'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -34,7 +34,6 @@ export interface ApiUserRewardPointsPostRequest {
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const ApiUserRewardPointsPostRequestRewardTypeEnum: {
|
|
36
36
|
readonly NfcScan: "NFC_SCAN";
|
|
37
|
-
readonly FirstGame: "FIRST_GAME";
|
|
38
37
|
};
|
|
39
38
|
export type ApiUserRewardPointsPostRequestRewardTypeEnum = typeof ApiUserRewardPointsPostRequestRewardTypeEnum[keyof typeof ApiUserRewardPointsPostRequestRewardTypeEnum];
|
|
40
39
|
/**
|
|
@@ -16,8 +16,7 @@ import { ApiUserRewardPointsPostRequestMetadataFromJSON, ApiUserRewardPointsPost
|
|
|
16
16
|
* @export
|
|
17
17
|
*/
|
|
18
18
|
export const ApiUserRewardPointsPostRequestRewardTypeEnum = {
|
|
19
|
-
NfcScan: 'NFC_SCAN'
|
|
20
|
-
FirstGame: 'FIRST_GAME'
|
|
19
|
+
NfcScan: 'NFC_SCAN'
|
|
21
20
|
};
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the ApiUserRewardPointsPostRequest interface.
|
|
@@ -27,12 +27,6 @@ export interface ApiUserRewardPointsPostRequestMetadata {
|
|
|
27
27
|
* @memberof ApiUserRewardPointsPostRequestMetadata
|
|
28
28
|
*/
|
|
29
29
|
itemName?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ApiUserRewardPointsPostRequestMetadata
|
|
34
|
-
*/
|
|
35
|
-
gameReference?: string;
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
32
|
* Check if a given object implements the ApiUserRewardPointsPostRequestMetadata interface.
|
|
@@ -27,7 +27,6 @@ export function ApiUserRewardPointsPostRequestMetadataFromJSONTyped(json, ignore
|
|
|
27
27
|
return {
|
|
28
28
|
'nfcCode': json['nfcCode'] == null ? undefined : json['nfcCode'],
|
|
29
29
|
'itemName': json['itemName'] == null ? undefined : json['itemName'],
|
|
30
|
-
'gameReference': json['gameReference'] == null ? undefined : json['gameReference'],
|
|
31
30
|
};
|
|
32
31
|
}
|
|
33
32
|
export function ApiUserRewardPointsPostRequestMetadataToJSON(json) {
|
|
@@ -40,6 +39,5 @@ export function ApiUserRewardPointsPostRequestMetadataToJSONTyped(value, ignoreD
|
|
|
40
39
|
return {
|
|
41
40
|
'nfcCode': value['nfcCode'],
|
|
42
41
|
'itemName': value['itemName'],
|
|
43
|
-
'gameReference': value['gameReference'],
|
|
44
42
|
};
|
|
45
43
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -106,6 +106,9 @@ export * from './ApiUserLeaderboardGet200Response';
|
|
|
106
106
|
export * from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
107
107
|
export * from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
108
108
|
export * from './ApiUserLeaderboardGetFilterParameter';
|
|
109
|
+
export * from './ApiUserMeGet200Response';
|
|
110
|
+
export * from './ApiUserMeGet200ResponseResponseObject';
|
|
111
|
+
export * from './ApiUserMeGet200ResponseResponseObjectReferrer';
|
|
109
112
|
export * from './ApiUserPointRewardsGet200Response';
|
|
110
113
|
export * from './ApiUserPointRewardsGet200ResponseResponseObject';
|
|
111
114
|
export * from './ApiUserPointRewardsPut200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -108,6 +108,9 @@ export * from './ApiUserLeaderboardGet200Response';
|
|
|
108
108
|
export * from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
109
109
|
export * from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
110
110
|
export * from './ApiUserLeaderboardGetFilterParameter';
|
|
111
|
+
export * from './ApiUserMeGet200Response';
|
|
112
|
+
export * from './ApiUserMeGet200ResponseResponseObject';
|
|
113
|
+
export * from './ApiUserMeGet200ResponseResponseObjectReferrer';
|
|
111
114
|
export * from './ApiUserPointRewardsGet200Response';
|
|
112
115
|
export * from './ApiUserPointRewardsGet200ResponseResponseObject';
|
|
113
116
|
export * from './ApiUserPointRewardsPut200Response';
|
|
@@ -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 { ApiUserMeGet200ResponseResponseObject } from './ApiUserMeGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiUserMeGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiUserMeGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiUserMeGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiUserMeGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiUserMeGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUserMeGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUserMeGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiUserMeGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiUserMeGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiUserMeGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiUserMeGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiUserMeGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiUserMeGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiUserMeGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiUserMeGet200Response(value: object): value is ApiUserMeGet200Response {
|
|
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 ApiUserMeGet200ResponseFromJSON(json: any): ApiUserMeGet200Response {
|
|
67
|
+
return ApiUserMeGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiUserMeGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserMeGet200Response {
|
|
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 : ApiUserMeGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiUserMeGet200ResponseToJSON(json: any): ApiUserMeGet200Response {
|
|
84
|
+
return ApiUserMeGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiUserMeGet200ResponseToJSONTyped(value?: ApiUserMeGet200Response | 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': ApiUserMeGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
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 { ApiUserMeGet200ResponseResponseObjectReferrer } from './ApiUserMeGet200ResponseResponseObjectReferrer';
|
|
17
|
+
import {
|
|
18
|
+
ApiUserMeGet200ResponseResponseObjectReferrerFromJSON,
|
|
19
|
+
ApiUserMeGet200ResponseResponseObjectReferrerFromJSONTyped,
|
|
20
|
+
ApiUserMeGet200ResponseResponseObjectReferrerToJSON,
|
|
21
|
+
ApiUserMeGet200ResponseResponseObjectReferrerToJSONTyped,
|
|
22
|
+
} from './ApiUserMeGet200ResponseResponseObjectReferrer';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUserMeGet200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUserMeGet200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
fullname: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
username: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
email: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
58
|
+
*/
|
|
59
|
+
phoneNumber: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
64
|
+
*/
|
|
65
|
+
dateOfBirth: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
70
|
+
*/
|
|
71
|
+
gender: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
76
|
+
*/
|
|
77
|
+
bio: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
82
|
+
*/
|
|
83
|
+
createdAt: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
88
|
+
*/
|
|
89
|
+
status: number | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {ApiUserMeGet200ResponseResponseObjectReferrer}
|
|
93
|
+
* @memberof ApiUserMeGet200ResponseResponseObject
|
|
94
|
+
*/
|
|
95
|
+
referrer: ApiUserMeGet200ResponseResponseObjectReferrer | null;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the ApiUserMeGet200ResponseResponseObject interface.
|
|
100
|
+
*/
|
|
101
|
+
export function instanceOfApiUserMeGet200ResponseResponseObject(value: object): value is ApiUserMeGet200ResponseResponseObject {
|
|
102
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
|
+
if (!('fullname' in value) || value['fullname'] === undefined) return false;
|
|
104
|
+
if (!('username' in value) || value['username'] === undefined) return false;
|
|
105
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
106
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
107
|
+
if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
|
|
108
|
+
if (!('gender' in value) || value['gender'] === undefined) return false;
|
|
109
|
+
if (!('bio' in value) || value['bio'] === undefined) return false;
|
|
110
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
111
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
112
|
+
if (!('referrer' in value) || value['referrer'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ApiUserMeGet200ResponseResponseObjectFromJSON(json: any): ApiUserMeGet200ResponseResponseObject {
|
|
117
|
+
return ApiUserMeGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ApiUserMeGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserMeGet200ResponseResponseObject {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': json['id'],
|
|
127
|
+
'fullname': json['fullname'],
|
|
128
|
+
'username': json['username'],
|
|
129
|
+
'email': json['email'],
|
|
130
|
+
'phoneNumber': json['phone_number'],
|
|
131
|
+
'dateOfBirth': json['date_of_birth'],
|
|
132
|
+
'gender': json['gender'],
|
|
133
|
+
'bio': json['bio'],
|
|
134
|
+
'createdAt': json['created_at'],
|
|
135
|
+
'status': json['status'],
|
|
136
|
+
'referrer': ApiUserMeGet200ResponseResponseObjectReferrerFromJSON(json['referrer']),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function ApiUserMeGet200ResponseResponseObjectToJSON(json: any): ApiUserMeGet200ResponseResponseObject {
|
|
141
|
+
return ApiUserMeGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function ApiUserMeGet200ResponseResponseObjectToJSONTyped(value?: ApiUserMeGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
145
|
+
if (value == null) {
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return {
|
|
150
|
+
|
|
151
|
+
'id': value['id'],
|
|
152
|
+
'fullname': value['fullname'],
|
|
153
|
+
'username': value['username'],
|
|
154
|
+
'email': value['email'],
|
|
155
|
+
'phone_number': value['phoneNumber'],
|
|
156
|
+
'date_of_birth': value['dateOfBirth'],
|
|
157
|
+
'gender': value['gender'],
|
|
158
|
+
'bio': value['bio'],
|
|
159
|
+
'created_at': value['createdAt'],
|
|
160
|
+
'status': value['status'],
|
|
161
|
+
'referrer': ApiUserMeGet200ResponseResponseObjectReferrerToJSON(value['referrer']),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 ApiUserMeGet200ResponseResponseObjectReferrer
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiUserMeGet200ResponseResponseObjectReferrer {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiUserMeGet200ResponseResponseObjectReferrer
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiUserMeGet200ResponseResponseObjectReferrer
|
|
32
|
+
*/
|
|
33
|
+
fullname: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiUserMeGet200ResponseResponseObjectReferrer
|
|
38
|
+
*/
|
|
39
|
+
email: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApiUserMeGet200ResponseResponseObjectReferrer interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApiUserMeGet200ResponseResponseObjectReferrer(value: object): value is ApiUserMeGet200ResponseResponseObjectReferrer {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('fullname' in value) || value['fullname'] === undefined) return false;
|
|
48
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiUserMeGet200ResponseResponseObjectReferrerFromJSON(json: any): ApiUserMeGet200ResponseResponseObjectReferrer {
|
|
53
|
+
return ApiUserMeGet200ResponseResponseObjectReferrerFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiUserMeGet200ResponseResponseObjectReferrerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserMeGet200ResponseResponseObjectReferrer {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'fullname': json['fullname'],
|
|
64
|
+
'email': json['email'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ApiUserMeGet200ResponseResponseObjectReferrerToJSON(json: any): ApiUserMeGet200ResponseResponseObjectReferrer {
|
|
69
|
+
return ApiUserMeGet200ResponseResponseObjectReferrerToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiUserMeGet200ResponseResponseObjectReferrerToJSONTyped(value?: ApiUserMeGet200ResponseResponseObjectReferrer | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'fullname': value['fullname'],
|
|
81
|
+
'email': value['email'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -46,8 +46,7 @@ export interface ApiUserRewardPointsPostRequest {
|
|
|
46
46
|
* @export
|
|
47
47
|
*/
|
|
48
48
|
export const ApiUserRewardPointsPostRequestRewardTypeEnum = {
|
|
49
|
-
NfcScan: 'NFC_SCAN'
|
|
50
|
-
FirstGame: 'FIRST_GAME'
|
|
49
|
+
NfcScan: 'NFC_SCAN'
|
|
51
50
|
} as const;
|
|
52
51
|
export type ApiUserRewardPointsPostRequestRewardTypeEnum = typeof ApiUserRewardPointsPostRequestRewardTypeEnum[keyof typeof ApiUserRewardPointsPostRequestRewardTypeEnum];
|
|
53
52
|
|
|
@@ -31,12 +31,6 @@ export interface ApiUserRewardPointsPostRequestMetadata {
|
|
|
31
31
|
* @memberof ApiUserRewardPointsPostRequestMetadata
|
|
32
32
|
*/
|
|
33
33
|
itemName?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ApiUserRewardPointsPostRequestMetadata
|
|
38
|
-
*/
|
|
39
|
-
gameReference?: string;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
/**
|
|
@@ -58,7 +52,6 @@ export function ApiUserRewardPointsPostRequestMetadataFromJSONTyped(json: any, i
|
|
|
58
52
|
|
|
59
53
|
'nfcCode': json['nfcCode'] == null ? undefined : json['nfcCode'],
|
|
60
54
|
'itemName': json['itemName'] == null ? undefined : json['itemName'],
|
|
61
|
-
'gameReference': json['gameReference'] == null ? undefined : json['gameReference'],
|
|
62
55
|
};
|
|
63
56
|
}
|
|
64
57
|
|
|
@@ -75,7 +68,6 @@ export function ApiUserRewardPointsPostRequestMetadataToJSONTyped(value?: ApiUse
|
|
|
75
68
|
|
|
76
69
|
'nfcCode': value['nfcCode'],
|
|
77
70
|
'itemName': value['itemName'],
|
|
78
|
-
'gameReference': value['gameReference'],
|
|
79
71
|
};
|
|
80
72
|
}
|
|
81
73
|
|
package/models/index.ts
CHANGED
|
@@ -108,6 +108,9 @@ export * from './ApiUserLeaderboardGet200Response';
|
|
|
108
108
|
export * from './ApiUserLeaderboardGet200ResponseResponseObject';
|
|
109
109
|
export * from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
|
|
110
110
|
export * from './ApiUserLeaderboardGetFilterParameter';
|
|
111
|
+
export * from './ApiUserMeGet200Response';
|
|
112
|
+
export * from './ApiUserMeGet200ResponseResponseObject';
|
|
113
|
+
export * from './ApiUserMeGet200ResponseResponseObjectReferrer';
|
|
111
114
|
export * from './ApiUserPointRewardsGet200Response';
|
|
112
115
|
export * from './ApiUserPointRewardsGet200ResponseResponseObject';
|
|
113
116
|
export * from './ApiUserPointRewardsPut200Response';
|