@drxsuperapp/sdk 1.1.199 → 1.1.201
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 +4 -0
- package/apis/AuthenticationApi.ts +103 -0
- package/deploy.log +18 -9
- package/dist/apis/AuthenticationApi.d.ts +27 -1
- package/dist/apis/AuthenticationApi.js +71 -1
- package/dist/models/ApiAuthGoogleCallbackPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthGoogleCallbackPost200Response.js +54 -0
- package/dist/models/ApiAuthGoogleCallbackPost200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiAuthGoogleCallbackPost200ResponseResponseObject.js +56 -0
- package/dist/models/ApiAuthGoogleCallbackPostRequest.d.ts +38 -0
- package/dist/models/ApiAuthGoogleCallbackPostRequest.js +47 -0
- package/dist/models/ApiAuthGoogleMobilePostRequest.d.ts +32 -0
- package/dist/models/ApiAuthGoogleMobilePostRequest.js +43 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/models/ApiAuthGoogleCallbackPost200Response.ts +100 -0
- package/models/ApiAuthGoogleCallbackPost200ResponseResponseObject.ts +101 -0
- package/models/ApiAuthGoogleCallbackPostRequest.ts +75 -0
- package/models/ApiAuthGoogleMobilePostRequest.ts +66 -0
- package/models/index.ts +4 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -12,6 +12,10 @@ 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
|
|
15
19
|
models/ApiAuthLoginPost200Response.ts
|
|
16
20
|
models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
17
21
|
models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
@@ -15,12 +15,21 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiAuthGoogleCallbackPost200Response,
|
|
19
|
+
ApiAuthGoogleCallbackPostRequest,
|
|
20
|
+
ApiAuthGoogleMobilePostRequest,
|
|
18
21
|
ApiAuthLoginPost200Response,
|
|
19
22
|
ApiAuthLoginPostRequest,
|
|
20
23
|
ApiAuthRefreshPost200Response,
|
|
21
24
|
ApiUserGet200Response,
|
|
22
25
|
} from '../models/index';
|
|
23
26
|
import {
|
|
27
|
+
ApiAuthGoogleCallbackPost200ResponseFromJSON,
|
|
28
|
+
ApiAuthGoogleCallbackPost200ResponseToJSON,
|
|
29
|
+
ApiAuthGoogleCallbackPostRequestFromJSON,
|
|
30
|
+
ApiAuthGoogleCallbackPostRequestToJSON,
|
|
31
|
+
ApiAuthGoogleMobilePostRequestFromJSON,
|
|
32
|
+
ApiAuthGoogleMobilePostRequestToJSON,
|
|
24
33
|
ApiAuthLoginPost200ResponseFromJSON,
|
|
25
34
|
ApiAuthLoginPost200ResponseToJSON,
|
|
26
35
|
ApiAuthLoginPostRequestFromJSON,
|
|
@@ -31,6 +40,14 @@ import {
|
|
|
31
40
|
ApiUserGet200ResponseToJSON,
|
|
32
41
|
} from '../models/index';
|
|
33
42
|
|
|
43
|
+
export interface ApiAuthGoogleCallbackPostOperationRequest {
|
|
44
|
+
apiAuthGoogleCallbackPostRequest?: ApiAuthGoogleCallbackPostRequest;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface ApiAuthGoogleMobilePostOperationRequest {
|
|
48
|
+
apiAuthGoogleMobilePostRequest?: ApiAuthGoogleMobilePostRequest;
|
|
49
|
+
}
|
|
50
|
+
|
|
34
51
|
export interface ApiAuthLoginPostOperationRequest {
|
|
35
52
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
36
53
|
}
|
|
@@ -40,6 +57,92 @@ export interface ApiAuthLoginPostOperationRequest {
|
|
|
40
57
|
*/
|
|
41
58
|
export class AuthenticationApi extends runtime.BaseAPI {
|
|
42
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Handle Google OAuth callback for authentication and registration
|
|
62
|
+
* Google OAuth Callback
|
|
63
|
+
*/
|
|
64
|
+
async apiAuthGoogleCallbackPostRaw(requestParameters: ApiAuthGoogleCallbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthGoogleCallbackPost200Response>> {
|
|
65
|
+
const queryParameters: any = {};
|
|
66
|
+
|
|
67
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
68
|
+
|
|
69
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
70
|
+
|
|
71
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
72
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
const token = this.configuration.accessToken;
|
|
77
|
+
const tokenString = await token("BearerAuth", []);
|
|
78
|
+
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const response = await this.request({
|
|
84
|
+
path: `/api/auth/google/callback`,
|
|
85
|
+
method: 'POST',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
body: ApiAuthGoogleCallbackPostRequestToJSON(requestParameters['apiAuthGoogleCallbackPostRequest']),
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthGoogleCallbackPost200ResponseFromJSON(jsonValue));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Handle Google OAuth callback for authentication and registration
|
|
96
|
+
* Google OAuth Callback
|
|
97
|
+
*/
|
|
98
|
+
async apiAuthGoogleCallbackPost(requestParameters: ApiAuthGoogleCallbackPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthGoogleCallbackPost200Response> {
|
|
99
|
+
const response = await this.apiAuthGoogleCallbackPostRaw(requestParameters, initOverrides);
|
|
100
|
+
return await response.value();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Authenticate user with Google ID token from mobile app
|
|
105
|
+
* Google Mobile Authentication
|
|
106
|
+
*/
|
|
107
|
+
async apiAuthGoogleMobilePostRaw(requestParameters: ApiAuthGoogleMobilePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthGoogleCallbackPost200Response>> {
|
|
108
|
+
const queryParameters: any = {};
|
|
109
|
+
|
|
110
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
|
+
|
|
112
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
113
|
+
|
|
114
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
119
|
+
const token = this.configuration.accessToken;
|
|
120
|
+
const tokenString = await token("BearerAuth", []);
|
|
121
|
+
|
|
122
|
+
if (tokenString) {
|
|
123
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
const response = await this.request({
|
|
127
|
+
path: `/api/auth/google/mobile`,
|
|
128
|
+
method: 'POST',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
body: ApiAuthGoogleMobilePostRequestToJSON(requestParameters['apiAuthGoogleMobilePostRequest']),
|
|
132
|
+
}, initOverrides);
|
|
133
|
+
|
|
134
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthGoogleCallbackPost200ResponseFromJSON(jsonValue));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Authenticate user with Google ID token from mobile app
|
|
139
|
+
* Google Mobile Authentication
|
|
140
|
+
*/
|
|
141
|
+
async apiAuthGoogleMobilePost(requestParameters: ApiAuthGoogleMobilePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthGoogleCallbackPost200Response> {
|
|
142
|
+
const response = await this.apiAuthGoogleMobilePostRaw(requestParameters, initOverrides);
|
|
143
|
+
return await response.value();
|
|
144
|
+
}
|
|
145
|
+
|
|
43
146
|
/**
|
|
44
147
|
* Authenticate user with email and password
|
|
45
148
|
* User Login
|
package/deploy.log
CHANGED
|
@@ -139,6 +139,10 @@
|
|
|
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 _api_auth_google_callback_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_callback_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_google_callback_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
143
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_google_callback_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_google_callback_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_google_callback_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
144
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_google_callback_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_google_callback_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_google_callback_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
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
146
|
[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).
|
|
143
147
|
[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).
|
|
144
148
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__id__matches_get_200_response_responseObject_items_inner_results_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__id__matches_get_200_response_responseObject_items_inner_results_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__id__matches_get_200_response_responseObject_items_inner_results_inner=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -148,6 +152,10 @@
|
|
|
148
152
|
[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).
|
|
149
153
|
[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/]
|
|
150
154
|
[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/]
|
|
155
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthGoogleCallbackPost200Response.ts
|
|
156
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthGoogleCallbackPost200ResponseResponseObject.ts
|
|
157
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthGoogleCallbackPostRequest.ts
|
|
158
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthGoogleMobilePostRequest.ts
|
|
151
159
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
|
|
152
160
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
153
161
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
@@ -332,6 +340,8 @@
|
|
|
332
340
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/login. Renamed to auto-generated operationId: apiAuthLoginPost
|
|
333
341
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/refresh. Renamed to auto-generated operationId: apiAuthRefreshPost
|
|
334
342
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/auth/validate. Renamed to auto-generated operationId: apiAuthValidateGet
|
|
343
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/google/callback. Renamed to auto-generated operationId: apiAuthGoogleCallbackPost
|
|
344
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/google/mobile. Renamed to auto-generated operationId: apiAuthGoogleMobilePost
|
|
335
345
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
|
|
336
346
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/{id}/matches. Renamed to auto-generated operationId: apiEsportIdMatchesGet
|
|
337
347
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/match/{id}. Renamed to auto-generated operationId: apiEsportMatchIdGet
|
|
@@ -373,21 +383,20 @@
|
|
|
373
383
|
# https://opencollective.com/openapi_generator/donate #
|
|
374
384
|
################################################################################
|
|
375
385
|
✅ SDK generated
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
Everything up-to-date
|
|
386
|
+
[master 63f03a6] VPS: Generated API SDK
|
|
387
|
+
1 file changed, 9 deletions(-)
|
|
388
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
389
|
+
a6b2f32..63f03a6 master -> master
|
|
381
390
|
✅ Changes committed and pushed
|
|
382
|
-
v1.1.
|
|
391
|
+
v1.1.201
|
|
383
392
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
384
|
-
|
|
393
|
+
63f03a6..219256b master -> master
|
|
385
394
|
✅ Version bumped
|
|
386
395
|
|
|
387
|
-
> @drxsuperapp/sdk@1.1.
|
|
396
|
+
> @drxsuperapp/sdk@1.1.201 prepublishOnly
|
|
388
397
|
> npm run build
|
|
389
398
|
|
|
390
399
|
|
|
391
|
-
> @drxsuperapp/sdk@1.1.
|
|
400
|
+
> @drxsuperapp/sdk@1.1.201 build
|
|
392
401
|
> tsc
|
|
393
402
|
|
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiUserGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiAuthGoogleCallbackPost200Response, ApiAuthGoogleCallbackPostRequest, ApiAuthGoogleMobilePostRequest, ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiUserGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiAuthGoogleCallbackPostOperationRequest {
|
|
15
|
+
apiAuthGoogleCallbackPostRequest?: ApiAuthGoogleCallbackPostRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiAuthGoogleMobilePostOperationRequest {
|
|
18
|
+
apiAuthGoogleMobilePostRequest?: ApiAuthGoogleMobilePostRequest;
|
|
19
|
+
}
|
|
14
20
|
export interface ApiAuthLoginPostOperationRequest {
|
|
15
21
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
16
22
|
}
|
|
@@ -18,6 +24,26 @@ export interface ApiAuthLoginPostOperationRequest {
|
|
|
18
24
|
*
|
|
19
25
|
*/
|
|
20
26
|
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>;
|
|
21
47
|
/**
|
|
22
48
|
* Authenticate user with email and password
|
|
23
49
|
* User Login
|
|
@@ -12,11 +12,81 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiAuthGoogleCallbackPost200ResponseFromJSON, ApiAuthGoogleCallbackPostRequestToJSON, ApiAuthGoogleMobilePostRequestToJSON, ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class AuthenticationApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Handle Google OAuth callback for authentication and registration
|
|
22
|
+
* Google OAuth Callback
|
|
23
|
+
*/
|
|
24
|
+
async apiAuthGoogleCallbackPostRaw(requestParameters, initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
const headerParameters = {};
|
|
27
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
28
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
29
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
30
|
+
}
|
|
31
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
32
|
+
const token = this.configuration.accessToken;
|
|
33
|
+
const tokenString = await token("BearerAuth", []);
|
|
34
|
+
if (tokenString) {
|
|
35
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const response = await this.request({
|
|
39
|
+
path: `/api/auth/google/callback`,
|
|
40
|
+
method: 'POST',
|
|
41
|
+
headers: headerParameters,
|
|
42
|
+
query: queryParameters,
|
|
43
|
+
body: ApiAuthGoogleCallbackPostRequestToJSON(requestParameters['apiAuthGoogleCallbackPostRequest']),
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthGoogleCallbackPost200ResponseFromJSON(jsonValue));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Handle Google OAuth callback for authentication and registration
|
|
49
|
+
* Google OAuth Callback
|
|
50
|
+
*/
|
|
51
|
+
async apiAuthGoogleCallbackPost(requestParameters = {}, initOverrides) {
|
|
52
|
+
const response = await this.apiAuthGoogleCallbackPostRaw(requestParameters, initOverrides);
|
|
53
|
+
return await response.value();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Authenticate user with Google ID token from mobile app
|
|
57
|
+
* Google Mobile Authentication
|
|
58
|
+
*/
|
|
59
|
+
async apiAuthGoogleMobilePostRaw(requestParameters, initOverrides) {
|
|
60
|
+
const queryParameters = {};
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
65
|
+
}
|
|
66
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
+
const token = this.configuration.accessToken;
|
|
68
|
+
const tokenString = await token("BearerAuth", []);
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/api/auth/google/mobile`,
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: ApiAuthGoogleMobilePostRequestToJSON(requestParameters['apiAuthGoogleMobilePostRequest']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthGoogleCallbackPost200ResponseFromJSON(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Authenticate user with Google ID token from mobile app
|
|
84
|
+
* Google Mobile Authentication
|
|
85
|
+
*/
|
|
86
|
+
async apiAuthGoogleMobilePost(requestParameters = {}, initOverrides) {
|
|
87
|
+
const response = await this.apiAuthGoogleMobilePostRaw(requestParameters, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
20
90
|
/**
|
|
21
91
|
* Authenticate user with email and password
|
|
22
92
|
* User Login
|
|
@@ -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 { ApiAuthGoogleCallbackPost200ResponseResponseObject } from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiAuthGoogleCallbackPost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiAuthGoogleCallbackPost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiAuthGoogleCallbackPost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiAuthGoogleCallbackPost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiAuthGoogleCallbackPost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiAuthGoogleCallbackPost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiAuthGoogleCallbackPost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiAuthGoogleCallbackPost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAuthGoogleCallbackPost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiAuthGoogleCallbackPost200Response(value: object): value is ApiAuthGoogleCallbackPost200Response;
|
|
48
|
+
export declare function ApiAuthGoogleCallbackPost200ResponseFromJSON(json: any): ApiAuthGoogleCallbackPost200Response;
|
|
49
|
+
export declare function ApiAuthGoogleCallbackPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthGoogleCallbackPost200Response;
|
|
50
|
+
export declare function ApiAuthGoogleCallbackPost200ResponseToJSON(json: any): ApiAuthGoogleCallbackPost200Response;
|
|
51
|
+
export declare function ApiAuthGoogleCallbackPost200ResponseToJSONTyped(value?: ApiAuthGoogleCallbackPost200Response | 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 { ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSON, ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSON, } from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiAuthGoogleCallbackPost200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiAuthGoogleCallbackPost200Response(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 ApiAuthGoogleCallbackPost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiAuthGoogleCallbackPost200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiAuthGoogleCallbackPost200ResponseFromJSONTyped(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 : ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiAuthGoogleCallbackPost200ResponseToJSON(json) {
|
|
42
|
+
return ApiAuthGoogleCallbackPost200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiAuthGoogleCallbackPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 { ApiAuthLoginPost200ResponseResponseObjectUser } from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiAuthGoogleCallbackPost200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ApiAuthLoginPost200ResponseResponseObjectUser}
|
|
22
|
+
* @memberof ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
user: ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
accessToken: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
refreshToken: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
isNewUser: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAuthGoogleCallbackPost200ResponseResponseObject interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiAuthGoogleCallbackPost200ResponseResponseObject(value: object): value is ApiAuthGoogleCallbackPost200ResponseResponseObject;
|
|
48
|
+
export declare function ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSON(json: any): ApiAuthGoogleCallbackPost200ResponseResponseObject;
|
|
49
|
+
export declare function ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthGoogleCallbackPost200ResponseResponseObject;
|
|
50
|
+
export declare function ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSON(json: any): ApiAuthGoogleCallbackPost200ResponseResponseObject;
|
|
51
|
+
export declare function ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSONTyped(value?: ApiAuthGoogleCallbackPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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 ApiAuthGoogleCallbackPost200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiAuthGoogleCallbackPost200ResponseResponseObject(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
|
+
if (!('isNewUser' in value) || value['isNewUser'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSON(json) {
|
|
30
|
+
return ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'user': ApiAuthLoginPost200ResponseResponseObjectUserFromJSON(json['user']),
|
|
38
|
+
'accessToken': json['accessToken'],
|
|
39
|
+
'refreshToken': json['refreshToken'],
|
|
40
|
+
'isNewUser': json['isNewUser'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSON(json) {
|
|
44
|
+
return ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'user': ApiAuthLoginPost200ResponseResponseObjectUserToJSON(value['user']),
|
|
52
|
+
'accessToken': value['accessToken'],
|
|
53
|
+
'refreshToken': value['refreshToken'],
|
|
54
|
+
'isNewUser': value['isNewUser'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ApiAuthGoogleCallbackPostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiAuthGoogleCallbackPostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiAuthGoogleCallbackPostRequest
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiAuthGoogleCallbackPostRequest
|
|
28
|
+
*/
|
|
29
|
+
redirectUri: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiAuthGoogleCallbackPostRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiAuthGoogleCallbackPostRequest(value: object): value is ApiAuthGoogleCallbackPostRequest;
|
|
35
|
+
export declare function ApiAuthGoogleCallbackPostRequestFromJSON(json: any): ApiAuthGoogleCallbackPostRequest;
|
|
36
|
+
export declare function ApiAuthGoogleCallbackPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthGoogleCallbackPostRequest;
|
|
37
|
+
export declare function ApiAuthGoogleCallbackPostRequestToJSON(json: any): ApiAuthGoogleCallbackPostRequest;
|
|
38
|
+
export declare function ApiAuthGoogleCallbackPostRequestToJSONTyped(value?: ApiAuthGoogleCallbackPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 ApiAuthGoogleCallbackPostRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiAuthGoogleCallbackPostRequest(value) {
|
|
18
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('redirectUri' in value) || value['redirectUri'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ApiAuthGoogleCallbackPostRequestFromJSON(json) {
|
|
25
|
+
return ApiAuthGoogleCallbackPostRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ApiAuthGoogleCallbackPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'code': json['code'],
|
|
33
|
+
'redirectUri': json['redirectUri'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ApiAuthGoogleCallbackPostRequestToJSON(json) {
|
|
37
|
+
return ApiAuthGoogleCallbackPostRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ApiAuthGoogleCallbackPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'code': value['code'],
|
|
45
|
+
'redirectUri': value['redirectUri'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ApiAuthGoogleMobilePostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiAuthGoogleMobilePostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiAuthGoogleMobilePostRequest
|
|
22
|
+
*/
|
|
23
|
+
idToken: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiAuthGoogleMobilePostRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiAuthGoogleMobilePostRequest(value: object): value is ApiAuthGoogleMobilePostRequest;
|
|
29
|
+
export declare function ApiAuthGoogleMobilePostRequestFromJSON(json: any): ApiAuthGoogleMobilePostRequest;
|
|
30
|
+
export declare function ApiAuthGoogleMobilePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthGoogleMobilePostRequest;
|
|
31
|
+
export declare function ApiAuthGoogleMobilePostRequestToJSON(json: any): ApiAuthGoogleMobilePostRequest;
|
|
32
|
+
export declare function ApiAuthGoogleMobilePostRequestToJSONTyped(value?: ApiAuthGoogleMobilePostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 ApiAuthGoogleMobilePostRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiAuthGoogleMobilePostRequest(value) {
|
|
18
|
+
if (!('idToken' in value) || value['idToken'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ApiAuthGoogleMobilePostRequestFromJSON(json) {
|
|
23
|
+
return ApiAuthGoogleMobilePostRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ApiAuthGoogleMobilePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'idToken': json['idToken'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ApiAuthGoogleMobilePostRequestToJSON(json) {
|
|
34
|
+
return ApiAuthGoogleMobilePostRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ApiAuthGoogleMobilePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'idToken': value['idToken'],
|
|
42
|
+
};
|
|
43
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * from './ApiAuthGoogleCallbackPost200Response';
|
|
2
|
+
export * from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
3
|
+
export * from './ApiAuthGoogleCallbackPostRequest';
|
|
4
|
+
export * from './ApiAuthGoogleMobilePostRequest';
|
|
1
5
|
export * from './ApiAuthLoginPost200Response';
|
|
2
6
|
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
3
7
|
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
package/dist/models/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ApiAuthGoogleCallbackPost200Response';
|
|
4
|
+
export * from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
5
|
+
export * from './ApiAuthGoogleCallbackPostRequest';
|
|
6
|
+
export * from './ApiAuthGoogleMobilePostRequest';
|
|
3
7
|
export * from './ApiAuthLoginPost200Response';
|
|
4
8
|
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
5
9
|
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
@@ -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 { ApiAuthGoogleCallbackPost200ResponseResponseObject } from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAuthGoogleCallbackPost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAuthGoogleCallbackPost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiAuthGoogleCallbackPost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAuthGoogleCallbackPost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiAuthGoogleCallbackPost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiAuthGoogleCallbackPost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiAuthGoogleCallbackPost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiAuthGoogleCallbackPost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiAuthGoogleCallbackPost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiAuthGoogleCallbackPost200Response(value: object): value is ApiAuthGoogleCallbackPost200Response {
|
|
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 ApiAuthGoogleCallbackPost200ResponseFromJSON(json: any): ApiAuthGoogleCallbackPost200Response {
|
|
67
|
+
return ApiAuthGoogleCallbackPost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiAuthGoogleCallbackPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthGoogleCallbackPost200Response {
|
|
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 : ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiAuthGoogleCallbackPost200ResponseToJSON(json: any): ApiAuthGoogleCallbackPost200Response {
|
|
84
|
+
return ApiAuthGoogleCallbackPost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiAuthGoogleCallbackPost200ResponseToJSONTyped(value?: ApiAuthGoogleCallbackPost200Response | 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': ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { ApiAuthLoginPost200ResponseResponseObjectUser } from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
17
|
+
import {
|
|
18
|
+
ApiAuthLoginPost200ResponseResponseObjectUserFromJSON,
|
|
19
|
+
ApiAuthLoginPost200ResponseResponseObjectUserFromJSONTyped,
|
|
20
|
+
ApiAuthLoginPost200ResponseResponseObjectUserToJSON,
|
|
21
|
+
ApiAuthLoginPost200ResponseResponseObjectUserToJSONTyped,
|
|
22
|
+
} from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAuthGoogleCallbackPost200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ApiAuthLoginPost200ResponseResponseObjectUser}
|
|
33
|
+
* @memberof ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
user: ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
accessToken: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
refreshToken: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof ApiAuthGoogleCallbackPost200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
isNewUser: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiAuthGoogleCallbackPost200ResponseResponseObject interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiAuthGoogleCallbackPost200ResponseResponseObject(value: object): value is ApiAuthGoogleCallbackPost200ResponseResponseObject {
|
|
60
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
61
|
+
if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
|
|
62
|
+
if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false;
|
|
63
|
+
if (!('isNewUser' in value) || value['isNewUser'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSON(json: any): ApiAuthGoogleCallbackPost200ResponseResponseObject {
|
|
68
|
+
return ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthGoogleCallbackPost200ResponseResponseObject {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'user': ApiAuthLoginPost200ResponseResponseObjectUserFromJSON(json['user']),
|
|
78
|
+
'accessToken': json['accessToken'],
|
|
79
|
+
'refreshToken': json['refreshToken'],
|
|
80
|
+
'isNewUser': json['isNewUser'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSON(json: any): ApiAuthGoogleCallbackPost200ResponseResponseObject {
|
|
85
|
+
return ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApiAuthGoogleCallbackPost200ResponseResponseObjectToJSONTyped(value?: ApiAuthGoogleCallbackPost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'user': ApiAuthLoginPost200ResponseResponseObjectUserToJSON(value['user']),
|
|
96
|
+
'accessToken': value['accessToken'],
|
|
97
|
+
'refreshToken': value['refreshToken'],
|
|
98
|
+
'isNewUser': value['isNewUser'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ApiAuthGoogleCallbackPostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiAuthGoogleCallbackPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiAuthGoogleCallbackPostRequest
|
|
26
|
+
*/
|
|
27
|
+
code: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiAuthGoogleCallbackPostRequest
|
|
32
|
+
*/
|
|
33
|
+
redirectUri: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiAuthGoogleCallbackPostRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiAuthGoogleCallbackPostRequest(value: object): value is ApiAuthGoogleCallbackPostRequest {
|
|
40
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
41
|
+
if (!('redirectUri' in value) || value['redirectUri'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApiAuthGoogleCallbackPostRequestFromJSON(json: any): ApiAuthGoogleCallbackPostRequest {
|
|
46
|
+
return ApiAuthGoogleCallbackPostRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiAuthGoogleCallbackPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthGoogleCallbackPostRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'code': json['code'],
|
|
56
|
+
'redirectUri': json['redirectUri'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiAuthGoogleCallbackPostRequestToJSON(json: any): ApiAuthGoogleCallbackPostRequest {
|
|
61
|
+
return ApiAuthGoogleCallbackPostRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiAuthGoogleCallbackPostRequestToJSONTyped(value?: ApiAuthGoogleCallbackPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'code': value['code'],
|
|
72
|
+
'redirectUri': value['redirectUri'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ApiAuthGoogleMobilePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiAuthGoogleMobilePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiAuthGoogleMobilePostRequest
|
|
26
|
+
*/
|
|
27
|
+
idToken: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiAuthGoogleMobilePostRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiAuthGoogleMobilePostRequest(value: object): value is ApiAuthGoogleMobilePostRequest {
|
|
34
|
+
if (!('idToken' in value) || value['idToken'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiAuthGoogleMobilePostRequestFromJSON(json: any): ApiAuthGoogleMobilePostRequest {
|
|
39
|
+
return ApiAuthGoogleMobilePostRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiAuthGoogleMobilePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthGoogleMobilePostRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'idToken': json['idToken'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiAuthGoogleMobilePostRequestToJSON(json: any): ApiAuthGoogleMobilePostRequest {
|
|
53
|
+
return ApiAuthGoogleMobilePostRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiAuthGoogleMobilePostRequestToJSONTyped(value?: ApiAuthGoogleMobilePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'idToken': value['idToken'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ApiAuthGoogleCallbackPost200Response';
|
|
4
|
+
export * from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
5
|
+
export * from './ApiAuthGoogleCallbackPostRequest';
|
|
6
|
+
export * from './ApiAuthGoogleMobilePostRequest';
|
|
3
7
|
export * from './ApiAuthLoginPost200Response';
|
|
4
8
|
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
5
9
|
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|