@drxsuperapp/sdk 1.1.205 → 1.1.207
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 +21 -19
- 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
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ApiAuthSocialMobilePost200ResponseResponseObjectFromJSON, ApiAuthSocialMobilePost200ResponseResponseObjectToJSON, } from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the ApiAuthSocialMobilePost200Response interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfApiAuthSocialMobilePost200Response(value) {
|
|
19
19
|
if (!('success' in value) || value['success'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('message' in value) || value['message'] === undefined)
|
|
@@ -24,31 +24,31 @@ export function instanceOfApiAuthGoogleCallbackPost200Response(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
28
|
-
return
|
|
27
|
+
export function ApiAuthSocialMobilePost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiAuthSocialMobilePost200ResponseFromJSONTyped(json, false);
|
|
29
29
|
}
|
|
30
|
-
export function
|
|
30
|
+
export function ApiAuthSocialMobilePost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'success': json['success'],
|
|
36
36
|
'message': json['message'],
|
|
37
|
-
'responseObject': json['responseObject'] == null ? undefined :
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiAuthSocialMobilePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
38
|
'statusCode': json['statusCode'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export function
|
|
42
|
-
return
|
|
41
|
+
export function ApiAuthSocialMobilePost200ResponseToJSON(json) {
|
|
42
|
+
return ApiAuthSocialMobilePost200ResponseToJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
export function
|
|
44
|
+
export function ApiAuthSocialMobilePost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
45
|
if (value == null) {
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'success': value['success'],
|
|
50
50
|
'message': value['message'],
|
|
51
|
-
'responseObject':
|
|
51
|
+
'responseObject': ApiAuthSocialMobilePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
52
|
'statusCode': value['statusCode'],
|
|
53
53
|
};
|
|
54
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 ApiAuthSocialMobilePost200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiAuthSocialMobilePost200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ApiAuthLoginPost200ResponseResponseObjectUser}
|
|
22
|
+
* @memberof ApiAuthSocialMobilePost200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
user: ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiAuthSocialMobilePost200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
accessToken: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiAuthSocialMobilePost200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
refreshToken: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof ApiAuthSocialMobilePost200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
isNewUser: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAuthSocialMobilePost200ResponseResponseObject interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiAuthSocialMobilePost200ResponseResponseObject(value: object): value is ApiAuthSocialMobilePost200ResponseResponseObject;
|
|
48
|
+
export declare function ApiAuthSocialMobilePost200ResponseResponseObjectFromJSON(json: any): ApiAuthSocialMobilePost200ResponseResponseObject;
|
|
49
|
+
export declare function ApiAuthSocialMobilePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthSocialMobilePost200ResponseResponseObject;
|
|
50
|
+
export declare function ApiAuthSocialMobilePost200ResponseResponseObjectToJSON(json: any): ApiAuthSocialMobilePost200ResponseResponseObject;
|
|
51
|
+
export declare function ApiAuthSocialMobilePost200ResponseResponseObjectToJSONTyped(value?: ApiAuthSocialMobilePost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { ApiAuthLoginPost200ResponseResponseObjectUserFromJSON, ApiAuthLoginPost200ResponseResponseObjectUserToJSON, } from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the ApiAuthSocialMobilePost200ResponseResponseObject interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfApiAuthSocialMobilePost200ResponseResponseObject(value) {
|
|
19
19
|
if (!('user' in value) || value['user'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('accessToken' in value) || value['accessToken'] === undefined)
|
|
@@ -26,10 +26,10 @@ export function instanceOfApiAuthGoogleCallbackPost200ResponseResponseObject(val
|
|
|
26
26
|
return false;
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
29
|
-
export function
|
|
30
|
-
return
|
|
29
|
+
export function ApiAuthSocialMobilePost200ResponseResponseObjectFromJSON(json) {
|
|
30
|
+
return ApiAuthSocialMobilePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
31
31
|
}
|
|
32
|
-
export function
|
|
32
|
+
export function ApiAuthSocialMobilePost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
33
|
if (json == null) {
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
@@ -40,10 +40,10 @@ export function ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSONTyped(
|
|
|
40
40
|
'isNewUser': json['isNewUser'],
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
export function
|
|
44
|
-
return
|
|
43
|
+
export function ApiAuthSocialMobilePost200ResponseResponseObjectToJSON(json) {
|
|
44
|
+
return ApiAuthSocialMobilePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
45
45
|
}
|
|
46
|
-
export function
|
|
46
|
+
export function ApiAuthSocialMobilePost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
47
|
if (value == null) {
|
|
48
48
|
return value;
|
|
49
49
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 ApiAuthSocialMobilePostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiAuthSocialMobilePostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiAuthSocialMobilePostRequest
|
|
22
|
+
*/
|
|
23
|
+
type: ApiAuthSocialMobilePostRequestTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiAuthSocialMobilePostRequest
|
|
28
|
+
*/
|
|
29
|
+
idToken?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiAuthSocialMobilePostRequest
|
|
34
|
+
*/
|
|
35
|
+
authorizationCode?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ApiAuthSocialMobilePostRequestTypeEnum: {
|
|
41
|
+
readonly Google: "google";
|
|
42
|
+
readonly Apple: "apple";
|
|
43
|
+
};
|
|
44
|
+
export type ApiAuthSocialMobilePostRequestTypeEnum = typeof ApiAuthSocialMobilePostRequestTypeEnum[keyof typeof ApiAuthSocialMobilePostRequestTypeEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ApiAuthSocialMobilePostRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfApiAuthSocialMobilePostRequest(value: object): value is ApiAuthSocialMobilePostRequest;
|
|
49
|
+
export declare function ApiAuthSocialMobilePostRequestFromJSON(json: any): ApiAuthSocialMobilePostRequest;
|
|
50
|
+
export declare function ApiAuthSocialMobilePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthSocialMobilePostRequest;
|
|
51
|
+
export declare function ApiAuthSocialMobilePostRequestToJSON(json: any): ApiAuthSocialMobilePostRequest;
|
|
52
|
+
export declare function ApiAuthSocialMobilePostRequestToJSONTyped(value?: ApiAuthSocialMobilePostRequest | 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
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ApiAuthSocialMobilePostRequestTypeEnum = {
|
|
18
|
+
Google: 'google',
|
|
19
|
+
Apple: 'apple'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiAuthSocialMobilePostRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfApiAuthSocialMobilePostRequest(value) {
|
|
25
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function ApiAuthSocialMobilePostRequestFromJSON(json) {
|
|
30
|
+
return ApiAuthSocialMobilePostRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function ApiAuthSocialMobilePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'type': json['type'],
|
|
38
|
+
'idToken': json['idToken'] == null ? undefined : json['idToken'],
|
|
39
|
+
'authorizationCode': json['authorizationCode'] == null ? undefined : json['authorizationCode'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ApiAuthSocialMobilePostRequestToJSON(json) {
|
|
43
|
+
return ApiAuthSocialMobilePostRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ApiAuthSocialMobilePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'type': value['type'],
|
|
51
|
+
'idToken': value['idToken'],
|
|
52
|
+
'authorizationCode': value['authorizationCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
export * from './ApiAuthGoogleCallbackPost200Response';
|
|
2
|
-
export * from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
3
|
-
export * from './ApiAuthGoogleCallbackPostRequest';
|
|
4
|
-
export * from './ApiAuthGoogleMobilePostRequest';
|
|
5
1
|
export * from './ApiAuthLoginPost200Response';
|
|
6
2
|
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
7
3
|
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
8
4
|
export * from './ApiAuthLoginPostRequest';
|
|
9
5
|
export * from './ApiAuthRefreshPost200Response';
|
|
10
6
|
export * from './ApiAuthRefreshPost200ResponseResponseObject';
|
|
7
|
+
export * from './ApiAuthSocialMobilePost200Response';
|
|
8
|
+
export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
9
|
+
export * from './ApiAuthSocialMobilePostRequest';
|
|
11
10
|
export * from './ApiEsportIdMatchesGet200Response';
|
|
12
11
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObject';
|
|
13
12
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
package/dist/models/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './ApiAuthGoogleCallbackPost200Response';
|
|
4
|
-
export * from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
5
|
-
export * from './ApiAuthGoogleCallbackPostRequest';
|
|
6
|
-
export * from './ApiAuthGoogleMobilePostRequest';
|
|
7
3
|
export * from './ApiAuthLoginPost200Response';
|
|
8
4
|
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
9
5
|
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
10
6
|
export * from './ApiAuthLoginPostRequest';
|
|
11
7
|
export * from './ApiAuthRefreshPost200Response';
|
|
12
8
|
export * from './ApiAuthRefreshPost200ResponseResponseObject';
|
|
9
|
+
export * from './ApiAuthSocialMobilePost200Response';
|
|
10
|
+
export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
11
|
+
export * from './ApiAuthSocialMobilePostRequest';
|
|
13
12
|
export * from './ApiEsportIdMatchesGet200Response';
|
|
14
13
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObject';
|
|
15
14
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
@@ -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 { ApiAuthSocialMobilePost200ResponseResponseObject } from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiAuthSocialMobilePost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiAuthSocialMobilePost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiAuthSocialMobilePost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiAuthSocialMobilePost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAuthSocialMobilePost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAuthSocialMobilePost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiAuthSocialMobilePost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAuthSocialMobilePost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiAuthSocialMobilePost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiAuthSocialMobilePost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiAuthSocialMobilePost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiAuthSocialMobilePost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiAuthSocialMobilePost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiAuthSocialMobilePost200Response(value: object): value is ApiAuthSocialMobilePost200Response {
|
|
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 ApiAuthSocialMobilePost200ResponseFromJSON(json: any): ApiAuthSocialMobilePost200Response {
|
|
67
|
+
return ApiAuthSocialMobilePost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiAuthSocialMobilePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthSocialMobilePost200Response {
|
|
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 : ApiAuthSocialMobilePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiAuthSocialMobilePost200ResponseToJSON(json: any): ApiAuthSocialMobilePost200Response {
|
|
84
|
+
return ApiAuthSocialMobilePost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiAuthSocialMobilePost200ResponseToJSONTyped(value?: ApiAuthSocialMobilePost200Response | 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': ApiAuthSocialMobilePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -24,39 +24,39 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface ApiAuthSocialMobilePost200ResponseResponseObject
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface ApiAuthSocialMobilePost200ResponseResponseObject {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {ApiAuthLoginPost200ResponseResponseObjectUser}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof ApiAuthSocialMobilePost200ResponseResponseObject
|
|
34
34
|
*/
|
|
35
35
|
user: ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof ApiAuthSocialMobilePost200ResponseResponseObject
|
|
40
40
|
*/
|
|
41
41
|
accessToken: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof ApiAuthSocialMobilePost200ResponseResponseObject
|
|
46
46
|
*/
|
|
47
47
|
refreshToken: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof ApiAuthSocialMobilePost200ResponseResponseObject
|
|
52
52
|
*/
|
|
53
53
|
isNewUser: boolean;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Check if a given object implements the
|
|
57
|
+
* Check if a given object implements the ApiAuthSocialMobilePost200ResponseResponseObject interface.
|
|
58
58
|
*/
|
|
59
|
-
export function
|
|
59
|
+
export function instanceOfApiAuthSocialMobilePost200ResponseResponseObject(value: object): value is ApiAuthSocialMobilePost200ResponseResponseObject {
|
|
60
60
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
61
61
|
if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
|
|
62
62
|
if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false;
|
|
@@ -64,11 +64,11 @@ export function instanceOfApiAuthGoogleCallbackPost200ResponseResponseObject(val
|
|
|
64
64
|
return true;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export function
|
|
68
|
-
return
|
|
67
|
+
export function ApiAuthSocialMobilePost200ResponseResponseObjectFromJSON(json: any): ApiAuthSocialMobilePost200ResponseResponseObject {
|
|
68
|
+
return ApiAuthSocialMobilePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export function
|
|
71
|
+
export function ApiAuthSocialMobilePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthSocialMobilePost200ResponseResponseObject {
|
|
72
72
|
if (json == null) {
|
|
73
73
|
return json;
|
|
74
74
|
}
|
|
@@ -81,11 +81,11 @@ export function ApiAuthGoogleCallbackPost200ResponseResponseObjectFromJSONTyped(
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
export function
|
|
85
|
-
return
|
|
84
|
+
export function ApiAuthSocialMobilePost200ResponseResponseObjectToJSON(json: any): ApiAuthSocialMobilePost200ResponseResponseObject {
|
|
85
|
+
return ApiAuthSocialMobilePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export function
|
|
88
|
+
export function ApiAuthSocialMobilePost200ResponseResponseObjectToJSONTyped(value?: ApiAuthSocialMobilePost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
89
89
|
if (value == null) {
|
|
90
90
|
return value;
|
|
91
91
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 ApiAuthSocialMobilePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiAuthSocialMobilePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiAuthSocialMobilePostRequest
|
|
26
|
+
*/
|
|
27
|
+
type: ApiAuthSocialMobilePostRequestTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiAuthSocialMobilePostRequest
|
|
32
|
+
*/
|
|
33
|
+
idToken?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiAuthSocialMobilePostRequest
|
|
38
|
+
*/
|
|
39
|
+
authorizationCode?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ApiAuthSocialMobilePostRequestTypeEnum = {
|
|
47
|
+
Google: 'google',
|
|
48
|
+
Apple: 'apple'
|
|
49
|
+
} as const;
|
|
50
|
+
export type ApiAuthSocialMobilePostRequestTypeEnum = typeof ApiAuthSocialMobilePostRequestTypeEnum[keyof typeof ApiAuthSocialMobilePostRequestTypeEnum];
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ApiAuthSocialMobilePostRequest interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfApiAuthSocialMobilePostRequest(value: object): value is ApiAuthSocialMobilePostRequest {
|
|
57
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ApiAuthSocialMobilePostRequestFromJSON(json: any): ApiAuthSocialMobilePostRequest {
|
|
62
|
+
return ApiAuthSocialMobilePostRequestFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ApiAuthSocialMobilePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthSocialMobilePostRequest {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'type': json['type'],
|
|
72
|
+
'idToken': json['idToken'] == null ? undefined : json['idToken'],
|
|
73
|
+
'authorizationCode': json['authorizationCode'] == null ? undefined : json['authorizationCode'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ApiAuthSocialMobilePostRequestToJSON(json: any): ApiAuthSocialMobilePostRequest {
|
|
78
|
+
return ApiAuthSocialMobilePostRequestToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ApiAuthSocialMobilePostRequestToJSONTyped(value?: ApiAuthSocialMobilePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'type': value['type'],
|
|
89
|
+
'idToken': value['idToken'],
|
|
90
|
+
'authorizationCode': value['authorizationCode'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export * from './ApiAuthGoogleCallbackPost200Response';
|
|
4
|
-
export * from './ApiAuthGoogleCallbackPost200ResponseResponseObject';
|
|
5
|
-
export * from './ApiAuthGoogleCallbackPostRequest';
|
|
6
|
-
export * from './ApiAuthGoogleMobilePostRequest';
|
|
7
3
|
export * from './ApiAuthLoginPost200Response';
|
|
8
4
|
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
9
5
|
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
10
6
|
export * from './ApiAuthLoginPostRequest';
|
|
11
7
|
export * from './ApiAuthRefreshPost200Response';
|
|
12
8
|
export * from './ApiAuthRefreshPost200ResponseResponseObject';
|
|
9
|
+
export * from './ApiAuthSocialMobilePost200Response';
|
|
10
|
+
export * from './ApiAuthSocialMobilePost200ResponseResponseObject';
|
|
11
|
+
export * from './ApiAuthSocialMobilePostRequest';
|
|
13
12
|
export * from './ApiEsportIdMatchesGet200Response';
|
|
14
13
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObject';
|
|
15
14
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
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;
|