@drxsuperapp/sdk 1.1.206 → 1.1.208
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 -4
- package/apis/AuthenticationApi.ts +39 -89
- package/deploy.log +11 -14
- package/dist/apis/AuthenticationApi.d.ts +14 -27
- package/dist/apis/AuthenticationApi.js +30 -65
- package/dist/models/ApiAuthSocialMobilePost200Response.d.ts +51 -0
- package/dist/models/{ApiAuthGoogleCallbackPost200Response.js → ApiAuthSocialMobilePost200Response.js} +11 -11
- package/dist/models/ApiAuthSocialMobilePost200ResponseResponseObject.d.ts +51 -0
- package/dist/models/{ApiAuthGoogleCallbackPost200ResponseResponseObject.js → ApiAuthSocialMobilePost200ResponseResponseObject.js} +8 -8
- package/dist/models/ApiAuthSocialMobilePostRequest.d.ts +52 -0
- package/dist/models/ApiAuthSocialMobilePostRequest.js +54 -0
- package/dist/models/index.d.ts +3 -4
- package/dist/models/index.js +3 -4
- package/models/ApiAuthSocialMobilePost200Response.ts +100 -0
- package/models/{ApiAuthGoogleCallbackPost200ResponseResponseObject.ts → ApiAuthSocialMobilePost200ResponseResponseObject.ts} +14 -14
- package/models/ApiAuthSocialMobilePostRequest.ts +93 -0
- package/models/index.ts +3 -4
- package/package.json +1 -1
- package/dist/models/ApiAuthGoogleCallbackPost200Response.d.ts +0 -51
- package/dist/models/ApiAuthGoogleCallbackPost200ResponseResponseObject.d.ts +0 -51
- package/dist/models/ApiAuthGoogleCallbackPostRequest.d.ts +0 -38
- package/dist/models/ApiAuthGoogleCallbackPostRequest.js +0 -47
- package/dist/models/ApiAuthGoogleMobilePostRequest.d.ts +0 -32
- package/dist/models/ApiAuthGoogleMobilePostRequest.js +0 -43
- package/models/ApiAuthGoogleCallbackPost200Response.ts +0 -100
- package/models/ApiAuthGoogleCallbackPostRequest.ts +0 -75
- package/models/ApiAuthGoogleMobilePostRequest.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -12,16 +12,15 @@ apis/UserPointsApi.ts
|
|
|
12
12
|
apis/YoutubeApi.ts
|
|
13
13
|
apis/index.ts
|
|
14
14
|
index.ts
|
|
15
|
-
models/ApiAuthGoogleCallbackPost200Response.ts
|
|
16
|
-
models/ApiAuthGoogleCallbackPost200ResponseResponseObject.ts
|
|
17
|
-
models/ApiAuthGoogleCallbackPostRequest.ts
|
|
18
|
-
models/ApiAuthGoogleMobilePostRequest.ts
|
|
19
15
|
models/ApiAuthLoginPost200Response.ts
|
|
20
16
|
models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
21
17
|
models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
22
18
|
models/ApiAuthLoginPostRequest.ts
|
|
23
19
|
models/ApiAuthRefreshPost200Response.ts
|
|
24
20
|
models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
21
|
+
models/ApiAuthSocialMobilePost200Response.ts
|
|
22
|
+
models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
23
|
+
models/ApiAuthSocialMobilePostRequest.ts
|
|
25
24
|
models/ApiEsportIdMatchesGet200Response.ts
|
|
26
25
|
models/ApiEsportIdMatchesGet200ResponseResponseObject.ts
|
|
27
26
|
models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -15,53 +15,46 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
ApiAuthGoogleCallbackPost200Response,
|
|
19
|
-
ApiAuthGoogleCallbackPostRequest,
|
|
20
|
-
ApiAuthGoogleMobilePostRequest,
|
|
21
18
|
ApiAuthLoginPost200Response,
|
|
22
19
|
ApiAuthLoginPostRequest,
|
|
23
20
|
ApiAuthRefreshPost200Response,
|
|
21
|
+
ApiAuthSocialMobilePost200Response,
|
|
22
|
+
ApiAuthSocialMobilePostRequest,
|
|
24
23
|
ApiUserGet200Response,
|
|
25
24
|
} from '../models/index';
|
|
26
25
|
import {
|
|
27
|
-
ApiAuthGoogleCallbackPost200ResponseFromJSON,
|
|
28
|
-
ApiAuthGoogleCallbackPost200ResponseToJSON,
|
|
29
|
-
ApiAuthGoogleCallbackPostRequestFromJSON,
|
|
30
|
-
ApiAuthGoogleCallbackPostRequestToJSON,
|
|
31
|
-
ApiAuthGoogleMobilePostRequestFromJSON,
|
|
32
|
-
ApiAuthGoogleMobilePostRequestToJSON,
|
|
33
26
|
ApiAuthLoginPost200ResponseFromJSON,
|
|
34
27
|
ApiAuthLoginPost200ResponseToJSON,
|
|
35
28
|
ApiAuthLoginPostRequestFromJSON,
|
|
36
29
|
ApiAuthLoginPostRequestToJSON,
|
|
37
30
|
ApiAuthRefreshPost200ResponseFromJSON,
|
|
38
31
|
ApiAuthRefreshPost200ResponseToJSON,
|
|
32
|
+
ApiAuthSocialMobilePost200ResponseFromJSON,
|
|
33
|
+
ApiAuthSocialMobilePost200ResponseToJSON,
|
|
34
|
+
ApiAuthSocialMobilePostRequestFromJSON,
|
|
35
|
+
ApiAuthSocialMobilePostRequestToJSON,
|
|
39
36
|
ApiUserGet200ResponseFromJSON,
|
|
40
37
|
ApiUserGet200ResponseToJSON,
|
|
41
38
|
} from '../models/index';
|
|
42
39
|
|
|
43
|
-
export interface ApiAuthGoogleCallbackPostOperationRequest {
|
|
44
|
-
apiAuthGoogleCallbackPostRequest?: ApiAuthGoogleCallbackPostRequest;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface ApiAuthGoogleMobilePostOperationRequest {
|
|
48
|
-
apiAuthGoogleMobilePostRequest?: ApiAuthGoogleMobilePostRequest;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
40
|
export interface ApiAuthLoginPostOperationRequest {
|
|
52
41
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
53
42
|
}
|
|
54
43
|
|
|
44
|
+
export interface ApiAuthSocialMobilePostOperationRequest {
|
|
45
|
+
apiAuthSocialMobilePostRequest?: ApiAuthSocialMobilePostRequest;
|
|
46
|
+
}
|
|
47
|
+
|
|
55
48
|
/**
|
|
56
49
|
*
|
|
57
50
|
*/
|
|
58
51
|
export class AuthenticationApi extends runtime.BaseAPI {
|
|
59
52
|
|
|
60
53
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
54
|
+
* Authenticate user with email and password
|
|
55
|
+
* User Login
|
|
63
56
|
*/
|
|
64
|
-
async
|
|
57
|
+
async apiAuthLoginPostRaw(requestParameters: ApiAuthLoginPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthLoginPost200Response>> {
|
|
65
58
|
const queryParameters: any = {};
|
|
66
59
|
|
|
67
60
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -81,36 +74,34 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
81
74
|
}
|
|
82
75
|
}
|
|
83
76
|
const response = await this.request({
|
|
84
|
-
path: `/api/auth/
|
|
77
|
+
path: `/api/auth/login`,
|
|
85
78
|
method: 'POST',
|
|
86
79
|
headers: headerParameters,
|
|
87
80
|
query: queryParameters,
|
|
88
|
-
body:
|
|
81
|
+
body: ApiAuthLoginPostRequestToJSON(requestParameters['apiAuthLoginPostRequest']),
|
|
89
82
|
}, initOverrides);
|
|
90
83
|
|
|
91
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
84
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
|
|
92
85
|
}
|
|
93
86
|
|
|
94
87
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
88
|
+
* Authenticate user with email and password
|
|
89
|
+
* User Login
|
|
97
90
|
*/
|
|
98
|
-
async
|
|
99
|
-
const response = await this.
|
|
91
|
+
async apiAuthLoginPost(requestParameters: ApiAuthLoginPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response> {
|
|
92
|
+
const response = await this.apiAuthLoginPostRaw(requestParameters, initOverrides);
|
|
100
93
|
return await response.value();
|
|
101
94
|
}
|
|
102
95
|
|
|
103
96
|
/**
|
|
104
|
-
*
|
|
105
|
-
*
|
|
97
|
+
* Generate new access and refresh tokens using Authorization header
|
|
98
|
+
* Refresh Access Token
|
|
106
99
|
*/
|
|
107
|
-
async
|
|
100
|
+
async apiAuthRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRefreshPost200Response>> {
|
|
108
101
|
const queryParameters: any = {};
|
|
109
102
|
|
|
110
103
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
104
|
|
|
112
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
113
|
-
|
|
114
105
|
if (this.configuration && this.configuration.apiKey) {
|
|
115
106
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
116
107
|
}
|
|
@@ -124,30 +115,29 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
124
115
|
}
|
|
125
116
|
}
|
|
126
117
|
const response = await this.request({
|
|
127
|
-
path: `/api/auth/
|
|
118
|
+
path: `/api/auth/refresh`,
|
|
128
119
|
method: 'POST',
|
|
129
120
|
headers: headerParameters,
|
|
130
121
|
query: queryParameters,
|
|
131
|
-
body: ApiAuthGoogleMobilePostRequestToJSON(requestParameters['apiAuthGoogleMobilePostRequest']),
|
|
132
122
|
}, initOverrides);
|
|
133
123
|
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
124
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRefreshPost200ResponseFromJSON(jsonValue));
|
|
135
125
|
}
|
|
136
126
|
|
|
137
127
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
128
|
+
* Generate new access and refresh tokens using Authorization header
|
|
129
|
+
* Refresh Access Token
|
|
140
130
|
*/
|
|
141
|
-
async
|
|
142
|
-
const response = await this.
|
|
131
|
+
async apiAuthRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRefreshPost200Response> {
|
|
132
|
+
const response = await this.apiAuthRefreshPostRaw(initOverrides);
|
|
143
133
|
return await response.value();
|
|
144
134
|
}
|
|
145
135
|
|
|
146
136
|
/**
|
|
147
|
-
* Authenticate user with
|
|
148
|
-
*
|
|
137
|
+
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
138
|
+
* Social Mobile Authentication
|
|
149
139
|
*/
|
|
150
|
-
async
|
|
140
|
+
async apiAuthSocialMobilePostRaw(requestParameters: ApiAuthSocialMobilePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthSocialMobilePost200Response>> {
|
|
151
141
|
const queryParameters: any = {};
|
|
152
142
|
|
|
153
143
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -167,62 +157,22 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
167
157
|
}
|
|
168
158
|
}
|
|
169
159
|
const response = await this.request({
|
|
170
|
-
path: `/api/auth/
|
|
160
|
+
path: `/api/auth/social/mobile`,
|
|
171
161
|
method: 'POST',
|
|
172
162
|
headers: headerParameters,
|
|
173
163
|
query: queryParameters,
|
|
174
|
-
body:
|
|
164
|
+
body: ApiAuthSocialMobilePostRequestToJSON(requestParameters['apiAuthSocialMobilePostRequest']),
|
|
175
165
|
}, initOverrides);
|
|
176
166
|
|
|
177
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
167
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthSocialMobilePost200ResponseFromJSON(jsonValue));
|
|
178
168
|
}
|
|
179
169
|
|
|
180
170
|
/**
|
|
181
|
-
* Authenticate user with
|
|
182
|
-
*
|
|
171
|
+
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
172
|
+
* Social Mobile Authentication
|
|
183
173
|
*/
|
|
184
|
-
async
|
|
185
|
-
const response = await this.
|
|
186
|
-
return await response.value();
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Generate new access and refresh tokens using Authorization header
|
|
191
|
-
* Refresh Access Token
|
|
192
|
-
*/
|
|
193
|
-
async apiAuthRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRefreshPost200Response>> {
|
|
194
|
-
const queryParameters: any = {};
|
|
195
|
-
|
|
196
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
197
|
-
|
|
198
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
199
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
203
|
-
const token = this.configuration.accessToken;
|
|
204
|
-
const tokenString = await token("BearerAuth", []);
|
|
205
|
-
|
|
206
|
-
if (tokenString) {
|
|
207
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
const response = await this.request({
|
|
211
|
-
path: `/api/auth/refresh`,
|
|
212
|
-
method: 'POST',
|
|
213
|
-
headers: headerParameters,
|
|
214
|
-
query: queryParameters,
|
|
215
|
-
}, initOverrides);
|
|
216
|
-
|
|
217
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRefreshPost200ResponseFromJSON(jsonValue));
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Generate new access and refresh tokens using Authorization header
|
|
222
|
-
* Refresh Access Token
|
|
223
|
-
*/
|
|
224
|
-
async apiAuthRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRefreshPost200Response> {
|
|
225
|
-
const response = await this.apiAuthRefreshPostRaw(initOverrides);
|
|
174
|
+
async apiAuthSocialMobilePost(requestParameters: ApiAuthSocialMobilePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthSocialMobilePost200Response> {
|
|
175
|
+
const response = await this.apiAuthSocialMobilePostRaw(requestParameters, initOverrides);
|
|
226
176
|
return await response.value();
|
|
227
177
|
}
|
|
228
178
|
|
package/deploy.log
CHANGED
|
@@ -139,10 +139,9 @@
|
|
|
139
139
|
[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).
|
|
140
140
|
[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).
|
|
141
141
|
[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).
|
|
142
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
143
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
144
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
145
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_google_mobile_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_google_mobile_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_google_mobile_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
142
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_social_mobile_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_social_mobile_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_social_mobile_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
143
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_social_mobile_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_social_mobile_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_social_mobile_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
144
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_social_mobile_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_social_mobile_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_social_mobile_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
146
145
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_videogames_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_esport_videogames_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_videogames_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI).
|
|
147
146
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_videogames_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_esport_videogames_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_videogames_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
148
147
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__id__matches_get_200_response_responseObject_items_inner_results_inner_team. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport__id__matches_get_200_response_responseObject_items_inner_results_inner_team=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__id__matches_get_200_response_responseObject_items_inner_results_inner_team=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -155,16 +154,15 @@
|
|
|
155
154
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_match__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_esport_match__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_match__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
156
155
|
[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/]
|
|
157
156
|
[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/]
|
|
158
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthGoogleCallbackPost200Response.ts
|
|
159
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthGoogleCallbackPost200ResponseResponseObject.ts
|
|
160
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthGoogleCallbackPostRequest.ts
|
|
161
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthGoogleMobilePostRequest.ts
|
|
162
157
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
|
|
163
158
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
164
159
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
165
160
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPostRequest.ts
|
|
166
161
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200Response.ts
|
|
167
162
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
163
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200Response.ts
|
|
164
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
165
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePostRequest.ts
|
|
168
166
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200Response.ts
|
|
169
167
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200ResponseResponseObject.ts
|
|
170
168
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -346,8 +344,7 @@
|
|
|
346
344
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/login. Renamed to auto-generated operationId: apiAuthLoginPost
|
|
347
345
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/refresh. Renamed to auto-generated operationId: apiAuthRefreshPost
|
|
348
346
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/auth/validate. Renamed to auto-generated operationId: apiAuthValidateGet
|
|
349
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/
|
|
350
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/google/mobile. Renamed to auto-generated operationId: apiAuthGoogleMobilePost
|
|
347
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/social/mobile. Renamed to auto-generated operationId: apiAuthSocialMobilePost
|
|
351
348
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
|
|
352
349
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/{id}/matches. Renamed to auto-generated operationId: apiEsportIdMatchesGet
|
|
353
350
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/match/{id}. Renamed to auto-generated operationId: apiEsportMatchIdGet
|
|
@@ -395,15 +392,15 @@ Your branch is up to date with 'origin/master'.
|
|
|
395
392
|
nothing to commit, working tree clean
|
|
396
393
|
Everything up-to-date
|
|
397
394
|
✅ Changes committed and pushed
|
|
398
|
-
v1.1.
|
|
395
|
+
v1.1.208
|
|
399
396
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
400
|
-
|
|
397
|
+
19c84e7..197c225 master -> master
|
|
401
398
|
✅ Version bumped
|
|
402
399
|
|
|
403
|
-
> @drxsuperapp/sdk@1.1.
|
|
400
|
+
> @drxsuperapp/sdk@1.1.208 prepublishOnly
|
|
404
401
|
> npm run build
|
|
405
402
|
|
|
406
403
|
|
|
407
|
-
> @drxsuperapp/sdk@1.1.
|
|
404
|
+
> @drxsuperapp/sdk@1.1.208 build
|
|
408
405
|
> tsc
|
|
409
406
|
|
|
@@ -10,40 +10,17 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface ApiAuthGoogleCallbackPostOperationRequest {
|
|
15
|
-
apiAuthGoogleCallbackPostRequest?: ApiAuthGoogleCallbackPostRequest;
|
|
16
|
-
}
|
|
17
|
-
export interface ApiAuthGoogleMobilePostOperationRequest {
|
|
18
|
-
apiAuthGoogleMobilePostRequest?: ApiAuthGoogleMobilePostRequest;
|
|
19
|
-
}
|
|
13
|
+
import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
|
|
20
14
|
export interface ApiAuthLoginPostOperationRequest {
|
|
21
15
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
22
16
|
}
|
|
17
|
+
export interface ApiAuthSocialMobilePostOperationRequest {
|
|
18
|
+
apiAuthSocialMobilePostRequest?: ApiAuthSocialMobilePostRequest;
|
|
19
|
+
}
|
|
23
20
|
/**
|
|
24
21
|
*
|
|
25
22
|
*/
|
|
26
23
|
export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
27
|
-
/**
|
|
28
|
-
* Handle Google OAuth callback for authentication and registration
|
|
29
|
-
* Google OAuth Callback
|
|
30
|
-
*/
|
|
31
|
-
apiAuthGoogleCallbackPostRaw(requestParameters: ApiAuthGoogleCallbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthGoogleCallbackPost200Response>>;
|
|
32
|
-
/**
|
|
33
|
-
* Handle Google OAuth callback for authentication and registration
|
|
34
|
-
* Google OAuth Callback
|
|
35
|
-
*/
|
|
36
|
-
apiAuthGoogleCallbackPost(requestParameters?: ApiAuthGoogleCallbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthGoogleCallbackPost200Response>;
|
|
37
|
-
/**
|
|
38
|
-
* Authenticate user with Google ID token from mobile app
|
|
39
|
-
* Google Mobile Authentication
|
|
40
|
-
*/
|
|
41
|
-
apiAuthGoogleMobilePostRaw(requestParameters: ApiAuthGoogleMobilePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthGoogleCallbackPost200Response>>;
|
|
42
|
-
/**
|
|
43
|
-
* Authenticate user with Google ID token from mobile app
|
|
44
|
-
* Google Mobile Authentication
|
|
45
|
-
*/
|
|
46
|
-
apiAuthGoogleMobilePost(requestParameters?: ApiAuthGoogleMobilePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthGoogleCallbackPost200Response>;
|
|
47
24
|
/**
|
|
48
25
|
* Authenticate user with email and password
|
|
49
26
|
* User Login
|
|
@@ -64,6 +41,16 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
|
64
41
|
* Refresh Access Token
|
|
65
42
|
*/
|
|
66
43
|
apiAuthRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRefreshPost200Response>;
|
|
44
|
+
/**
|
|
45
|
+
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
46
|
+
* Social Mobile Authentication
|
|
47
|
+
*/
|
|
48
|
+
apiAuthSocialMobilePostRaw(requestParameters: ApiAuthSocialMobilePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthSocialMobilePost200Response>>;
|
|
49
|
+
/**
|
|
50
|
+
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
51
|
+
* Social Mobile Authentication
|
|
52
|
+
*/
|
|
53
|
+
apiAuthSocialMobilePost(requestParameters?: ApiAuthSocialMobilePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthSocialMobilePost200Response>;
|
|
67
54
|
/**
|
|
68
55
|
* Validate the current access token and return user information
|
|
69
56
|
* Validate Token
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import {
|
|
15
|
+
import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class AuthenticationApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Authenticate user with email and password
|
|
22
|
+
* User Login
|
|
23
23
|
*/
|
|
24
|
-
async
|
|
24
|
+
async apiAuthLoginPostRaw(requestParameters, initOverrides) {
|
|
25
25
|
const queryParameters = {};
|
|
26
26
|
const headerParameters = {};
|
|
27
27
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -36,30 +36,29 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
const response = await this.request({
|
|
39
|
-
path: `/api/auth/
|
|
39
|
+
path: `/api/auth/login`,
|
|
40
40
|
method: 'POST',
|
|
41
41
|
headers: headerParameters,
|
|
42
42
|
query: queryParameters,
|
|
43
|
-
body:
|
|
43
|
+
body: ApiAuthLoginPostRequestToJSON(requestParameters['apiAuthLoginPostRequest']),
|
|
44
44
|
}, initOverrides);
|
|
45
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* Authenticate user with email and password
|
|
49
|
+
* User Login
|
|
50
50
|
*/
|
|
51
|
-
async
|
|
52
|
-
const response = await this.
|
|
51
|
+
async apiAuthLoginPost(requestParameters = {}, initOverrides) {
|
|
52
|
+
const response = await this.apiAuthLoginPostRaw(requestParameters, initOverrides);
|
|
53
53
|
return await response.value();
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
56
|
+
* Generate new access and refresh tokens using Authorization header
|
|
57
|
+
* Refresh Access Token
|
|
58
58
|
*/
|
|
59
|
-
async
|
|
59
|
+
async apiAuthRefreshPostRaw(initOverrides) {
|
|
60
60
|
const queryParameters = {};
|
|
61
61
|
const headerParameters = {};
|
|
62
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
63
62
|
if (this.configuration && this.configuration.apiKey) {
|
|
64
63
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
65
64
|
}
|
|
@@ -71,27 +70,26 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
const response = await this.request({
|
|
74
|
-
path: `/api/auth/
|
|
73
|
+
path: `/api/auth/refresh`,
|
|
75
74
|
method: 'POST',
|
|
76
75
|
headers: headerParameters,
|
|
77
76
|
query: queryParameters,
|
|
78
|
-
body: ApiAuthGoogleMobilePostRequestToJSON(requestParameters['apiAuthGoogleMobilePostRequest']),
|
|
79
77
|
}, initOverrides);
|
|
80
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
78
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRefreshPost200ResponseFromJSON(jsonValue));
|
|
81
79
|
}
|
|
82
80
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
81
|
+
* Generate new access and refresh tokens using Authorization header
|
|
82
|
+
* Refresh Access Token
|
|
85
83
|
*/
|
|
86
|
-
async
|
|
87
|
-
const response = await this.
|
|
84
|
+
async apiAuthRefreshPost(initOverrides) {
|
|
85
|
+
const response = await this.apiAuthRefreshPostRaw(initOverrides);
|
|
88
86
|
return await response.value();
|
|
89
87
|
}
|
|
90
88
|
/**
|
|
91
|
-
* Authenticate user with
|
|
92
|
-
*
|
|
89
|
+
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
90
|
+
* Social Mobile Authentication
|
|
93
91
|
*/
|
|
94
|
-
async
|
|
92
|
+
async apiAuthSocialMobilePostRaw(requestParameters, initOverrides) {
|
|
95
93
|
const queryParameters = {};
|
|
96
94
|
const headerParameters = {};
|
|
97
95
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -106,53 +104,20 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
106
104
|
}
|
|
107
105
|
}
|
|
108
106
|
const response = await this.request({
|
|
109
|
-
path: `/api/auth/
|
|
107
|
+
path: `/api/auth/social/mobile`,
|
|
110
108
|
method: 'POST',
|
|
111
109
|
headers: headerParameters,
|
|
112
110
|
query: queryParameters,
|
|
113
|
-
body:
|
|
111
|
+
body: ApiAuthSocialMobilePostRequestToJSON(requestParameters['apiAuthSocialMobilePostRequest']),
|
|
114
112
|
}, initOverrides);
|
|
115
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthSocialMobilePost200ResponseFromJSON(jsonValue));
|
|
116
114
|
}
|
|
117
115
|
/**
|
|
118
|
-
* Authenticate user with
|
|
119
|
-
*
|
|
116
|
+
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
117
|
+
* Social Mobile Authentication
|
|
120
118
|
*/
|
|
121
|
-
async
|
|
122
|
-
const response = await this.
|
|
123
|
-
return await response.value();
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Generate new access and refresh tokens using Authorization header
|
|
127
|
-
* Refresh Access Token
|
|
128
|
-
*/
|
|
129
|
-
async apiAuthRefreshPostRaw(initOverrides) {
|
|
130
|
-
const queryParameters = {};
|
|
131
|
-
const headerParameters = {};
|
|
132
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
133
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
134
|
-
}
|
|
135
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
136
|
-
const token = this.configuration.accessToken;
|
|
137
|
-
const tokenString = await token("BearerAuth", []);
|
|
138
|
-
if (tokenString) {
|
|
139
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
const response = await this.request({
|
|
143
|
-
path: `/api/auth/refresh`,
|
|
144
|
-
method: 'POST',
|
|
145
|
-
headers: headerParameters,
|
|
146
|
-
query: queryParameters,
|
|
147
|
-
}, initOverrides);
|
|
148
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRefreshPost200ResponseFromJSON(jsonValue));
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Generate new access and refresh tokens using Authorization header
|
|
152
|
-
* Refresh Access Token
|
|
153
|
-
*/
|
|
154
|
-
async apiAuthRefreshPost(initOverrides) {
|
|
155
|
-
const response = await this.apiAuthRefreshPostRaw(initOverrides);
|
|
119
|
+
async apiAuthSocialMobilePost(requestParameters = {}, initOverrides) {
|
|
120
|
+
const response = await this.apiAuthSocialMobilePostRaw(requestParameters, initOverrides);
|
|
156
121
|
return await response.value();
|
|
157
122
|
}
|
|
158
123
|
/**
|
|
@@ -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 { ApiAuthSocialMobilePost200ResponseResponseObject } from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiAuthSocialMobilePost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiAuthSocialMobilePost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiAuthSocialMobilePost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiAuthSocialMobilePost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiAuthSocialMobilePost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiAuthSocialMobilePost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiAuthSocialMobilePost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiAuthSocialMobilePost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAuthSocialMobilePost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiAuthSocialMobilePost200Response(value: object): value is ApiAuthSocialMobilePost200Response;
|
|
48
|
+
export declare function ApiAuthSocialMobilePost200ResponseFromJSON(json: any): ApiAuthSocialMobilePost200Response;
|
|
49
|
+
export declare function ApiAuthSocialMobilePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthSocialMobilePost200Response;
|
|
50
|
+
export declare function ApiAuthSocialMobilePost200ResponseToJSON(json: any): ApiAuthSocialMobilePost200Response;
|
|
51
|
+
export declare function ApiAuthSocialMobilePost200ResponseToJSONTyped(value?: ApiAuthSocialMobilePost200Response | null, ignoreDiscriminator?: boolean): any;
|