@drxsuperapp/sdk 1.1.181 → 1.1.182
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 +8 -4
- package/apis/AuthenticationApi.ts +8 -8
- package/apis/UserPointsApi.ts +51 -0
- package/deploy.log +35 -14
- package/dist/apis/AuthenticationApi.d.ts +5 -5
- package/dist/apis/AuthenticationApi.js +2 -2
- package/dist/apis/UserPointsApi.d.ts +12 -1
- package/dist/apis/UserPointsApi.js +34 -1
- package/dist/models/ApiAuthLoginPost200Response.d.ts +3 -3
- package/dist/models/ApiAuthLoginPost200Response.js +3 -3
- package/dist/models/ApiAuthLoginPost200ResponseResponseObject.d.ts +45 -0
- package/dist/models/ApiAuthLoginPost200ResponseResponseObject.js +52 -0
- package/dist/models/ApiAuthLoginPost200ResponseResponseObjectUser.d.ts +56 -0
- package/dist/models/{LoginResponseUser.js → ApiAuthLoginPost200ResponseResponseObjectUser.js} +8 -8
- package/dist/models/ApiAuthLoginPostRequest.d.ts +38 -0
- package/dist/models/{LoginRequest.js → ApiAuthLoginPostRequest.js} +8 -8
- package/dist/models/ApiAuthRefreshPost200Response.d.ts +3 -3
- package/dist/models/ApiAuthRefreshPost200Response.js +3 -3
- package/dist/models/ApiAuthRefreshPost200ResponseResponseObject.d.ts +38 -0
- package/dist/models/{RefreshTokenResponse.js → ApiAuthRefreshPost200ResponseResponseObject.js} +8 -8
- package/dist/models/ApiUserRewardPointsPost200Response.d.ts +51 -0
- package/dist/models/ApiUserRewardPointsPost200Response.js +54 -0
- package/dist/models/ApiUserRewardPointsPost200ResponseResponseObject.d.ts +44 -0
- package/dist/models/ApiUserRewardPointsPost200ResponseResponseObject.js +51 -0
- package/dist/models/ApiUserRewardPointsPostRequest.d.ts +47 -0
- package/dist/models/ApiUserRewardPointsPostRequest.js +53 -0
- package/dist/models/ApiUserRewardPointsPostRequestMetadata.d.ts +44 -0
- package/dist/models/ApiUserRewardPointsPostRequestMetadata.js +45 -0
- package/dist/models/index.d.ts +8 -4
- package/dist/models/index.js +8 -4
- package/models/ApiAuthLoginPost200Response.ts +10 -10
- package/models/ApiAuthLoginPost200ResponseResponseObject.ts +92 -0
- package/models/{LoginResponseUser.ts → ApiAuthLoginPost200ResponseResponseObjectUser.ts} +15 -15
- package/models/{LoginRequest.ts → ApiAuthLoginPostRequest.ts} +12 -12
- package/models/ApiAuthRefreshPost200Response.ts +10 -10
- package/models/ApiAuthRefreshPost200ResponseResponseObject.ts +75 -0
- package/models/ApiUserRewardPointsPost200Response.ts +100 -0
- package/models/ApiUserRewardPointsPost200ResponseResponseObject.ts +84 -0
- package/models/ApiUserRewardPointsPostRequest.ts +93 -0
- package/models/ApiUserRewardPointsPostRequestMetadata.ts +81 -0
- package/models/index.ts +8 -4
- package/package.json +1 -1
- package/dist/models/LoginRequest.d.ts +0 -38
- package/dist/models/LoginResponse.d.ts +0 -45
- package/dist/models/LoginResponse.js +0 -52
- package/dist/models/LoginResponseUser.d.ts +0 -56
- package/dist/models/RefreshTokenResponse.d.ts +0 -38
- package/models/LoginResponse.ts +0 -92
- package/models/RefreshTokenResponse.ts +0 -75
package/.openapi-generator/FILES
CHANGED
|
@@ -12,7 +12,11 @@ apis/YoutubeApi.ts
|
|
|
12
12
|
apis/index.ts
|
|
13
13
|
index.ts
|
|
14
14
|
models/ApiAuthLoginPost200Response.ts
|
|
15
|
+
models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
16
|
+
models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
17
|
+
models/ApiAuthLoginPostRequest.ts
|
|
15
18
|
models/ApiAuthRefreshPost200Response.ts
|
|
19
|
+
models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
16
20
|
models/ApiHealthCheckGet200Response.ts
|
|
17
21
|
models/ApiNewsCategoriesListGet200Response.ts
|
|
18
22
|
models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
@@ -130,14 +134,14 @@ models/ApiUserRecentReferralsGet200Response.ts
|
|
|
130
134
|
models/ApiUserRecentReferralsGet200ResponseResponseObject.ts
|
|
131
135
|
models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts
|
|
132
136
|
models/ApiUserRecentReferralsGetFilterParameter.ts
|
|
137
|
+
models/ApiUserRewardPointsPost200Response.ts
|
|
138
|
+
models/ApiUserRewardPointsPost200ResponseResponseObject.ts
|
|
139
|
+
models/ApiUserRewardPointsPostRequest.ts
|
|
140
|
+
models/ApiUserRewardPointsPostRequestMetadata.ts
|
|
133
141
|
models/ApiYoutubeDrxContentGet200Response.ts
|
|
134
142
|
models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
|
|
135
143
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
|
|
136
144
|
models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts
|
|
137
145
|
models/ApiYoutubeRefreshPost200Response.ts
|
|
138
|
-
models/LoginRequest.ts
|
|
139
|
-
models/LoginResponse.ts
|
|
140
|
-
models/LoginResponseUser.ts
|
|
141
|
-
models/RefreshTokenResponse.ts
|
|
142
146
|
models/index.ts
|
|
143
147
|
runtime.ts
|
|
@@ -16,23 +16,23 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiAuthLoginPost200Response,
|
|
19
|
+
ApiAuthLoginPostRequest,
|
|
19
20
|
ApiAuthRefreshPost200Response,
|
|
20
21
|
ApiUserGet200Response,
|
|
21
|
-
LoginRequest,
|
|
22
22
|
} from '../models/index';
|
|
23
23
|
import {
|
|
24
24
|
ApiAuthLoginPost200ResponseFromJSON,
|
|
25
25
|
ApiAuthLoginPost200ResponseToJSON,
|
|
26
|
+
ApiAuthLoginPostRequestFromJSON,
|
|
27
|
+
ApiAuthLoginPostRequestToJSON,
|
|
26
28
|
ApiAuthRefreshPost200ResponseFromJSON,
|
|
27
29
|
ApiAuthRefreshPost200ResponseToJSON,
|
|
28
30
|
ApiUserGet200ResponseFromJSON,
|
|
29
31
|
ApiUserGet200ResponseToJSON,
|
|
30
|
-
LoginRequestFromJSON,
|
|
31
|
-
LoginRequestToJSON,
|
|
32
32
|
} from '../models/index';
|
|
33
33
|
|
|
34
|
-
export interface
|
|
35
|
-
|
|
34
|
+
export interface ApiAuthLoginPostOperationRequest {
|
|
35
|
+
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -44,7 +44,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
44
44
|
* Authenticate user with email and password
|
|
45
45
|
* User Login
|
|
46
46
|
*/
|
|
47
|
-
async apiAuthLoginPostRaw(requestParameters:
|
|
47
|
+
async apiAuthLoginPostRaw(requestParameters: ApiAuthLoginPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthLoginPost200Response>> {
|
|
48
48
|
const queryParameters: any = {};
|
|
49
49
|
|
|
50
50
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -68,7 +68,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
68
68
|
method: 'POST',
|
|
69
69
|
headers: headerParameters,
|
|
70
70
|
query: queryParameters,
|
|
71
|
-
body:
|
|
71
|
+
body: ApiAuthLoginPostRequestToJSON(requestParameters['apiAuthLoginPostRequest']),
|
|
72
72
|
}, initOverrides);
|
|
73
73
|
|
|
74
74
|
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
|
|
@@ -78,7 +78,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
78
78
|
* Authenticate user with email and password
|
|
79
79
|
* User Login
|
|
80
80
|
*/
|
|
81
|
-
async apiAuthLoginPost(requestParameters:
|
|
81
|
+
async apiAuthLoginPost(requestParameters: ApiAuthLoginPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response> {
|
|
82
82
|
const response = await this.apiAuthLoginPostRaw(requestParameters, initOverrides);
|
|
83
83
|
return await response.value();
|
|
84
84
|
}
|
package/apis/UserPointsApi.ts
CHANGED
|
@@ -20,6 +20,8 @@ import type {
|
|
|
20
20
|
ApiUserPointsGet200Response,
|
|
21
21
|
ApiUserPointsHistoryGet200Response,
|
|
22
22
|
ApiUserPointsHistoryGetFilterParameter,
|
|
23
|
+
ApiUserRewardPointsPost200Response,
|
|
24
|
+
ApiUserRewardPointsPostRequest,
|
|
23
25
|
} from '../models/index';
|
|
24
26
|
import {
|
|
25
27
|
ApiUserLeaderboardGet200ResponseFromJSON,
|
|
@@ -32,6 +34,10 @@ import {
|
|
|
32
34
|
ApiUserPointsHistoryGet200ResponseToJSON,
|
|
33
35
|
ApiUserPointsHistoryGetFilterParameterFromJSON,
|
|
34
36
|
ApiUserPointsHistoryGetFilterParameterToJSON,
|
|
37
|
+
ApiUserRewardPointsPost200ResponseFromJSON,
|
|
38
|
+
ApiUserRewardPointsPost200ResponseToJSON,
|
|
39
|
+
ApiUserRewardPointsPostRequestFromJSON,
|
|
40
|
+
ApiUserRewardPointsPostRequestToJSON,
|
|
35
41
|
} from '../models/index';
|
|
36
42
|
|
|
37
43
|
export interface ApiUserLeaderboardGetRequest {
|
|
@@ -48,6 +54,10 @@ export interface ApiUserPointsHistoryGetRequest {
|
|
|
48
54
|
filter?: ApiUserPointsHistoryGetFilterParameter;
|
|
49
55
|
}
|
|
50
56
|
|
|
57
|
+
export interface ApiUserRewardPointsPostOperationRequest {
|
|
58
|
+
apiUserRewardPointsPostRequest?: ApiUserRewardPointsPostRequest;
|
|
59
|
+
}
|
|
60
|
+
|
|
51
61
|
/**
|
|
52
62
|
*
|
|
53
63
|
*/
|
|
@@ -199,4 +209,45 @@ export class UserPointsApi extends runtime.BaseAPI {
|
|
|
199
209
|
return await response.value();
|
|
200
210
|
}
|
|
201
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Reward User Points
|
|
214
|
+
*/
|
|
215
|
+
async apiUserRewardPointsPostRaw(requestParameters: ApiUserRewardPointsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserRewardPointsPost200Response>> {
|
|
216
|
+
const queryParameters: any = {};
|
|
217
|
+
|
|
218
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
219
|
+
|
|
220
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
221
|
+
|
|
222
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
223
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
227
|
+
const token = this.configuration.accessToken;
|
|
228
|
+
const tokenString = await token("BearerAuth", []);
|
|
229
|
+
|
|
230
|
+
if (tokenString) {
|
|
231
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
const response = await this.request({
|
|
235
|
+
path: `/api/user/reward-points`,
|
|
236
|
+
method: 'POST',
|
|
237
|
+
headers: headerParameters,
|
|
238
|
+
query: queryParameters,
|
|
239
|
+
body: ApiUserRewardPointsPostRequestToJSON(requestParameters['apiUserRewardPointsPostRequest']),
|
|
240
|
+
}, initOverrides);
|
|
241
|
+
|
|
242
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserRewardPointsPost200ResponseFromJSON(jsonValue));
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Reward User Points
|
|
247
|
+
*/
|
|
248
|
+
async apiUserRewardPointsPost(requestParameters: ApiUserRewardPointsPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserRewardPointsPost200Response> {
|
|
249
|
+
const response = await this.apiUserRewardPointsPostRaw(requestParameters, initOverrides);
|
|
250
|
+
return await response.value();
|
|
251
|
+
}
|
|
252
|
+
|
|
202
253
|
}
|
package/deploy.log
CHANGED
|
@@ -104,6 +104,10 @@
|
|
|
104
104
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_recent_referrals_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_user_recent_referrals_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_recent_referrals_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
105
105
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_recent_referrals_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_recent_referrals_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_recent_referrals_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
106
106
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_recent_referrals_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_recent_referrals_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_recent_referrals_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
107
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_reward_points_post_request_metadata. 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_metadata=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_reward_points_post_request_metadata=NewModel,ModelA=NewModelA in CLI).
|
|
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
|
+
[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
|
+
[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).
|
|
107
111
|
[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).
|
|
108
112
|
[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).
|
|
109
113
|
[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).
|
|
@@ -126,13 +130,20 @@
|
|
|
126
130
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tennis_tournaments__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_tennis_tournaments__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tennis_tournaments__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
127
131
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tennis_event_types_get_200_response_responseObject_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_event_types_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tennis_event_types_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI).
|
|
128
132
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tennis_event_types_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_tennis_event_types_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tennis_event_types_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
133
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_login_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_auth_login_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_login_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
134
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_login_post_200_response_responseObject_user. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_login_post_200_response_responseObject_user=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_login_post_200_response_responseObject_user=NewModel,ModelA=NewModelA in CLI).
|
|
135
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_login_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_auth_login_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_login_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
129
136
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_login_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_auth_login_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_login_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
137
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_refresh_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_auth_refresh_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_refresh_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
130
138
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_refresh_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_auth_refresh_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_refresh_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
131
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as LoginResponse_user. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings LoginResponse_user=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings LoginResponse_user=NewModel,ModelA=NewModelA in CLI).
|
|
132
139
|
[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/]
|
|
133
140
|
[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/]
|
|
134
141
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
|
|
142
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
143
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
144
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPostRequest.ts
|
|
135
145
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200Response.ts
|
|
146
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
136
147
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
137
148
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200Response.ts
|
|
138
149
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
@@ -250,15 +261,15 @@
|
|
|
250
261
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRecentReferralsGet200ResponseResponseObject.ts
|
|
251
262
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts
|
|
252
263
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRecentReferralsGetFilterParameter.ts
|
|
264
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRewardPointsPost200Response.ts
|
|
265
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRewardPointsPost200ResponseResponseObject.ts
|
|
266
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRewardPointsPostRequest.ts
|
|
267
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserRewardPointsPostRequestMetadata.ts
|
|
253
268
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200Response.ts
|
|
254
269
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
|
|
255
270
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
|
|
256
271
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts
|
|
257
272
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeRefreshPost200Response.ts
|
|
258
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/LoginRequest.ts
|
|
259
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/LoginResponse.ts
|
|
260
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/LoginResponseUser.ts
|
|
261
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/RefreshTokenResponse.ts
|
|
262
273
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/healthCheck. Renamed to auto-generated operationId: apiHealthCheckGet
|
|
263
274
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news. Renamed to auto-generated operationId: apiNewsGet
|
|
264
275
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/{id}. Renamed to auto-generated operationId: apiNewsIdGet
|
|
@@ -287,6 +298,7 @@
|
|
|
287
298
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/user/point-rewards. Renamed to auto-generated operationId: apiUserPointRewardsPut
|
|
288
299
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/user/affiliate. Renamed to auto-generated operationId: apiUserAffiliateGet
|
|
289
300
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/user/recent-referrals. Renamed to auto-generated operationId: apiUserRecentReferralsGet
|
|
301
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/user/reward-points. Renamed to auto-generated operationId: apiUserRewardPointsPost
|
|
290
302
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tennis/matches. Renamed to auto-generated operationId: apiTennisMatchesGet
|
|
291
303
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tennis/matches/{id}. Renamed to auto-generated operationId: apiTennisMatchesIdGet
|
|
292
304
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tennis/players. Renamed to auto-generated operationId: apiTennisPlayersGet
|
|
@@ -335,21 +347,30 @@
|
|
|
335
347
|
# https://opencollective.com/openapi_generator/donate #
|
|
336
348
|
################################################################################
|
|
337
349
|
✅ SDK generated
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
350
|
+
[master 36d4a0e] VPS: Generated API SDK
|
|
351
|
+
16 files changed, 647 insertions(+), 230 deletions(-)
|
|
352
|
+
create mode 100644 models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
353
|
+
rename models/{LoginResponseUser.ts => ApiAuthLoginPost200ResponseResponseObjectUser.ts} (54%)
|
|
354
|
+
rename models/{LoginRequest.ts => ApiAuthLoginPostRequest.ts} (55%)
|
|
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
|
|
362
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
363
|
+
a45f15a..36d4a0e master -> master
|
|
343
364
|
✅ Changes committed and pushed
|
|
344
|
-
v1.1.
|
|
365
|
+
v1.1.182
|
|
345
366
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
346
|
-
|
|
367
|
+
36d4a0e..6f5f210 master -> master
|
|
347
368
|
✅ Version bumped
|
|
348
369
|
|
|
349
|
-
> @drxsuperapp/sdk@1.1.
|
|
370
|
+
> @drxsuperapp/sdk@1.1.182 prepublishOnly
|
|
350
371
|
> npm run build
|
|
351
372
|
|
|
352
373
|
|
|
353
|
-
> @drxsuperapp/sdk@1.1.
|
|
374
|
+
> @drxsuperapp/sdk@1.1.182 build
|
|
354
375
|
> tsc
|
|
355
376
|
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiAuthLoginPost200Response, ApiAuthRefreshPost200Response, ApiUserGet200Response
|
|
14
|
-
export interface
|
|
15
|
-
|
|
13
|
+
import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiUserGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiAuthLoginPostOperationRequest {
|
|
15
|
+
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -22,12 +22,12 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
|
22
22
|
* Authenticate user with email and password
|
|
23
23
|
* User Login
|
|
24
24
|
*/
|
|
25
|
-
apiAuthLoginPostRaw(requestParameters:
|
|
25
|
+
apiAuthLoginPostRaw(requestParameters: ApiAuthLoginPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthLoginPost200Response>>;
|
|
26
26
|
/**
|
|
27
27
|
* Authenticate user with email and password
|
|
28
28
|
* User Login
|
|
29
29
|
*/
|
|
30
|
-
apiAuthLoginPost(requestParameters?:
|
|
30
|
+
apiAuthLoginPost(requestParameters?: ApiAuthLoginPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response>;
|
|
31
31
|
/**
|
|
32
32
|
* Generate new access and refresh tokens using Authorization header
|
|
33
33
|
* Refresh Access Token
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiUserGet200ResponseFromJSON,
|
|
15
|
+
import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -40,7 +40,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
40
40
|
method: 'POST',
|
|
41
41
|
headers: headerParameters,
|
|
42
42
|
query: queryParameters,
|
|
43
|
-
body:
|
|
43
|
+
body: ApiAuthLoginPostRequestToJSON(requestParameters['apiAuthLoginPostRequest']),
|
|
44
44
|
}, initOverrides);
|
|
45
45
|
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
|
|
46
46
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiUserLeaderboardGet200Response, ApiUserLeaderboardGetFilterParameter, ApiUserPointsGet200Response, ApiUserPointsHistoryGet200Response, ApiUserPointsHistoryGetFilterParameter } from '../models/index';
|
|
13
|
+
import type { ApiUserLeaderboardGet200Response, ApiUserLeaderboardGetFilterParameter, ApiUserPointsGet200Response, ApiUserPointsHistoryGet200Response, ApiUserPointsHistoryGetFilterParameter, ApiUserRewardPointsPost200Response, ApiUserRewardPointsPostRequest } from '../models/index';
|
|
14
14
|
export interface ApiUserLeaderboardGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
@@ -23,6 +23,9 @@ export interface ApiUserPointsHistoryGetRequest {
|
|
|
23
23
|
sort?: string;
|
|
24
24
|
filter?: ApiUserPointsHistoryGetFilterParameter;
|
|
25
25
|
}
|
|
26
|
+
export interface ApiUserRewardPointsPostOperationRequest {
|
|
27
|
+
apiUserRewardPointsPostRequest?: ApiUserRewardPointsPostRequest;
|
|
28
|
+
}
|
|
26
29
|
/**
|
|
27
30
|
*
|
|
28
31
|
*/
|
|
@@ -51,4 +54,12 @@ export declare class UserPointsApi extends runtime.BaseAPI {
|
|
|
51
54
|
* Get Self Point History
|
|
52
55
|
*/
|
|
53
56
|
apiUserPointsHistoryGet(requestParameters?: ApiUserPointsHistoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointsHistoryGet200Response>;
|
|
57
|
+
/**
|
|
58
|
+
* Reward User Points
|
|
59
|
+
*/
|
|
60
|
+
apiUserRewardPointsPostRaw(requestParameters: ApiUserRewardPointsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserRewardPointsPost200Response>>;
|
|
61
|
+
/**
|
|
62
|
+
* Reward User Points
|
|
63
|
+
*/
|
|
64
|
+
apiUserRewardPointsPost(requestParameters?: ApiUserRewardPointsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserRewardPointsPost200Response>;
|
|
54
65
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiUserLeaderboardGet200ResponseFromJSON, ApiUserPointsGet200ResponseFromJSON, ApiUserPointsHistoryGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiUserLeaderboardGet200ResponseFromJSON, ApiUserPointsGet200ResponseFromJSON, ApiUserPointsHistoryGet200ResponseFromJSON, ApiUserRewardPointsPost200ResponseFromJSON, ApiUserRewardPointsPostRequestToJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -134,4 +134,37 @@ export class UserPointsApi extends runtime.BaseAPI {
|
|
|
134
134
|
const response = await this.apiUserPointsHistoryGetRaw(requestParameters, initOverrides);
|
|
135
135
|
return await response.value();
|
|
136
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* Reward User Points
|
|
139
|
+
*/
|
|
140
|
+
async apiUserRewardPointsPostRaw(requestParameters, initOverrides) {
|
|
141
|
+
const queryParameters = {};
|
|
142
|
+
const headerParameters = {};
|
|
143
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
144
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
145
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
146
|
+
}
|
|
147
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
148
|
+
const token = this.configuration.accessToken;
|
|
149
|
+
const tokenString = await token("BearerAuth", []);
|
|
150
|
+
if (tokenString) {
|
|
151
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const response = await this.request({
|
|
155
|
+
path: `/api/user/reward-points`,
|
|
156
|
+
method: 'POST',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
body: ApiUserRewardPointsPostRequestToJSON(requestParameters['apiUserRewardPointsPostRequest']),
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserRewardPointsPost200ResponseFromJSON(jsonValue));
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Reward User Points
|
|
165
|
+
*/
|
|
166
|
+
async apiUserRewardPointsPost(requestParameters = {}, initOverrides) {
|
|
167
|
+
const response = await this.apiUserRewardPointsPostRaw(requestParameters, initOverrides);
|
|
168
|
+
return await response.value();
|
|
169
|
+
}
|
|
137
170
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ApiAuthLoginPost200ResponseResponseObject } from './ApiAuthLoginPost200ResponseResponseObject';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -30,10 +30,10 @@ export interface ApiAuthLoginPost200Response {
|
|
|
30
30
|
message: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {ApiAuthLoginPost200ResponseResponseObject}
|
|
34
34
|
* @memberof ApiAuthLoginPost200Response
|
|
35
35
|
*/
|
|
36
|
-
responseObject?:
|
|
36
|
+
responseObject?: ApiAuthLoginPost200ResponseResponseObject;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {number}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ApiAuthLoginPost200ResponseResponseObjectFromJSON, ApiAuthLoginPost200ResponseResponseObjectToJSON, } from './ApiAuthLoginPost200ResponseResponseObject';
|
|
15
15
|
/**
|
|
16
16
|
* Check if a given object implements the ApiAuthLoginPost200Response interface.
|
|
17
17
|
*/
|
|
@@ -34,7 +34,7 @@ export function ApiAuthLoginPost200ResponseFromJSONTyped(json, ignoreDiscriminat
|
|
|
34
34
|
return {
|
|
35
35
|
'success': json['success'],
|
|
36
36
|
'message': json['message'],
|
|
37
|
-
'responseObject': json['responseObject'] == null ? undefined :
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiAuthLoginPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
38
|
'statusCode': json['statusCode'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -48,7 +48,7 @@ export function ApiAuthLoginPost200ResponseToJSONTyped(value, ignoreDiscriminato
|
|
|
48
48
|
return {
|
|
49
49
|
'success': value['success'],
|
|
50
50
|
'message': value['message'],
|
|
51
|
-
'responseObject':
|
|
51
|
+
'responseObject': ApiAuthLoginPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
52
|
'statusCode': value['statusCode'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { ApiAuthLoginPost200ResponseResponseObjectUser } from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiAuthLoginPost200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiAuthLoginPost200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ApiAuthLoginPost200ResponseResponseObjectUser}
|
|
22
|
+
* @memberof ApiAuthLoginPost200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
user: ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiAuthLoginPost200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
accessToken: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiAuthLoginPost200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
refreshToken: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiAuthLoginPost200ResponseResponseObject interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfApiAuthLoginPost200ResponseResponseObject(value: object): value is ApiAuthLoginPost200ResponseResponseObject;
|
|
42
|
+
export declare function ApiAuthLoginPost200ResponseResponseObjectFromJSON(json: any): ApiAuthLoginPost200ResponseResponseObject;
|
|
43
|
+
export declare function ApiAuthLoginPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthLoginPost200ResponseResponseObject;
|
|
44
|
+
export declare function ApiAuthLoginPost200ResponseResponseObjectToJSON(json: any): ApiAuthLoginPost200ResponseResponseObject;
|
|
45
|
+
export declare function ApiAuthLoginPost200ResponseResponseObjectToJSONTyped(value?: ApiAuthLoginPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { ApiAuthLoginPost200ResponseResponseObjectUserFromJSON, ApiAuthLoginPost200ResponseResponseObjectUserToJSON, } from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiAuthLoginPost200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiAuthLoginPost200ResponseResponseObject(value) {
|
|
19
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('accessToken' in value) || value['accessToken'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('refreshToken' in value) || value['refreshToken'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiAuthLoginPost200ResponseResponseObjectFromJSON(json) {
|
|
28
|
+
return ApiAuthLoginPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiAuthLoginPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'user': ApiAuthLoginPost200ResponseResponseObjectUserFromJSON(json['user']),
|
|
36
|
+
'accessToken': json['accessToken'],
|
|
37
|
+
'refreshToken': json['refreshToken'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function ApiAuthLoginPost200ResponseResponseObjectToJSON(json) {
|
|
41
|
+
return ApiAuthLoginPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function ApiAuthLoginPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'user': ApiAuthLoginPost200ResponseResponseObjectUserToJSON(value['user']),
|
|
49
|
+
'accessToken': value['accessToken'],
|
|
50
|
+
'refreshToken': value['refreshToken'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 ApiAuthLoginPost200ResponseResponseObjectUser
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiAuthLoginPost200ResponseResponseObjectUser {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiAuthLoginPost200ResponseResponseObjectUser
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiAuthLoginPost200ResponseResponseObjectUser
|
|
28
|
+
*/
|
|
29
|
+
fullname: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiAuthLoginPost200ResponseResponseObjectUser
|
|
34
|
+
*/
|
|
35
|
+
username: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAuthLoginPost200ResponseResponseObjectUser
|
|
40
|
+
*/
|
|
41
|
+
email: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiAuthLoginPost200ResponseResponseObjectUser
|
|
46
|
+
*/
|
|
47
|
+
status: number | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ApiAuthLoginPost200ResponseResponseObjectUser interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfApiAuthLoginPost200ResponseResponseObjectUser(value: object): value is ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
53
|
+
export declare function ApiAuthLoginPost200ResponseResponseObjectUserFromJSON(json: any): ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
54
|
+
export declare function ApiAuthLoginPost200ResponseResponseObjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
55
|
+
export declare function ApiAuthLoginPost200ResponseResponseObjectUserToJSON(json: any): ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
56
|
+
export declare function ApiAuthLoginPost200ResponseResponseObjectUserToJSONTyped(value?: ApiAuthLoginPost200ResponseResponseObjectUser | null, ignoreDiscriminator?: boolean): any;
|