@drxsuperapp/sdk 1.1.181 → 1.1.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -4
- package/apis/AuthenticationApi.ts +8 -8
- package/apis/UserPointsApi.ts +51 -0
- package/deploy.log +35 -14
- package/dist/apis/AuthenticationApi.d.ts +5 -5
- package/dist/apis/AuthenticationApi.js +2 -2
- package/dist/apis/UserPointsApi.d.ts +12 -1
- package/dist/apis/UserPointsApi.js +34 -1
- package/dist/models/ApiAuthLoginPost200Response.d.ts +3 -3
- package/dist/models/ApiAuthLoginPost200Response.js +3 -3
- package/dist/models/ApiAuthLoginPost200ResponseResponseObject.d.ts +45 -0
- package/dist/models/ApiAuthLoginPost200ResponseResponseObject.js +52 -0
- package/dist/models/ApiAuthLoginPost200ResponseResponseObjectUser.d.ts +56 -0
- package/dist/models/{LoginResponseUser.js → ApiAuthLoginPost200ResponseResponseObjectUser.js} +8 -8
- package/dist/models/ApiAuthLoginPostRequest.d.ts +38 -0
- package/dist/models/{LoginRequest.js → ApiAuthLoginPostRequest.js} +8 -8
- package/dist/models/ApiAuthRefreshPost200Response.d.ts +3 -3
- package/dist/models/ApiAuthRefreshPost200Response.js +3 -3
- package/dist/models/ApiAuthRefreshPost200ResponseResponseObject.d.ts +38 -0
- package/dist/models/{RefreshTokenResponse.js → ApiAuthRefreshPost200ResponseResponseObject.js} +8 -8
- package/dist/models/ApiUserRewardPointsPost200Response.d.ts +51 -0
- package/dist/models/ApiUserRewardPointsPost200Response.js +54 -0
- package/dist/models/ApiUserRewardPointsPost200ResponseResponseObject.d.ts +44 -0
- package/dist/models/ApiUserRewardPointsPost200ResponseResponseObject.js +51 -0
- package/dist/models/ApiUserRewardPointsPostRequest.d.ts +47 -0
- package/dist/models/ApiUserRewardPointsPostRequest.js +53 -0
- package/dist/models/ApiUserRewardPointsPostRequestMetadata.d.ts +44 -0
- package/dist/models/ApiUserRewardPointsPostRequestMetadata.js +45 -0
- package/dist/models/index.d.ts +8 -4
- package/dist/models/index.js +8 -4
- package/models/ApiAuthLoginPost200Response.ts +10 -10
- package/models/ApiAuthLoginPost200ResponseResponseObject.ts +92 -0
- package/models/{LoginResponseUser.ts → ApiAuthLoginPost200ResponseResponseObjectUser.ts} +15 -15
- package/models/{LoginRequest.ts → ApiAuthLoginPostRequest.ts} +12 -12
- package/models/ApiAuthRefreshPost200Response.ts +10 -10
- package/models/ApiAuthRefreshPost200ResponseResponseObject.ts +75 -0
- package/models/ApiUserRewardPointsPost200Response.ts +100 -0
- package/models/ApiUserRewardPointsPost200ResponseResponseObject.ts +84 -0
- package/models/ApiUserRewardPointsPostRequest.ts +93 -0
- package/models/ApiUserRewardPointsPostRequestMetadata.ts +81 -0
- package/models/index.ts +8 -4
- package/package.json +1 -1
- package/dist/models/LoginRequest.d.ts +0 -38
- package/dist/models/LoginResponse.d.ts +0 -45
- package/dist/models/LoginResponse.js +0 -52
- package/dist/models/LoginResponseUser.d.ts +0 -56
- package/dist/models/RefreshTokenResponse.d.ts +0 -38
- package/models/LoginResponse.ts +0 -92
- package/models/RefreshTokenResponse.ts +0 -75
package/dist/models/{LoginResponseUser.js → ApiAuthLoginPost200ResponseResponseObjectUser.js}
RENAMED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the ApiAuthLoginPost200ResponseResponseObjectUser interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfApiAuthLoginPost200ResponseResponseObjectUser(value) {
|
|
18
18
|
if (!('id' in value) || value['id'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
if (!('fullname' in value) || value['fullname'] === undefined)
|
|
@@ -27,10 +27,10 @@ export function instanceOfLoginResponseUser(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
return true;
|
|
29
29
|
}
|
|
30
|
-
export function
|
|
31
|
-
return
|
|
30
|
+
export function ApiAuthLoginPost200ResponseResponseObjectUserFromJSON(json) {
|
|
31
|
+
return ApiAuthLoginPost200ResponseResponseObjectUserFromJSONTyped(json, false);
|
|
32
32
|
}
|
|
33
|
-
export function
|
|
33
|
+
export function ApiAuthLoginPost200ResponseResponseObjectUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
34
|
if (json == null) {
|
|
35
35
|
return json;
|
|
36
36
|
}
|
|
@@ -42,10 +42,10 @@ export function LoginResponseUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'status': json['status'],
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
export function
|
|
46
|
-
return
|
|
45
|
+
export function ApiAuthLoginPost200ResponseResponseObjectUserToJSON(json) {
|
|
46
|
+
return ApiAuthLoginPost200ResponseResponseObjectUserToJSONTyped(json, false);
|
|
47
47
|
}
|
|
48
|
-
export function
|
|
48
|
+
export function ApiAuthLoginPost200ResponseResponseObjectUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
49
|
if (value == null) {
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
@@ -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 ApiAuthLoginPostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiAuthLoginPostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiAuthLoginPostRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiAuthLoginPostRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiAuthLoginPostRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiAuthLoginPostRequest(value: object): value is ApiAuthLoginPostRequest;
|
|
35
|
+
export declare function ApiAuthLoginPostRequestFromJSON(json: any): ApiAuthLoginPostRequest;
|
|
36
|
+
export declare function ApiAuthLoginPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthLoginPostRequest;
|
|
37
|
+
export declare function ApiAuthLoginPostRequestToJSON(json: any): ApiAuthLoginPostRequest;
|
|
38
|
+
export declare function ApiAuthLoginPostRequestToJSONTyped(value?: ApiAuthLoginPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the ApiAuthLoginPostRequest interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfApiAuthLoginPostRequest(value) {
|
|
18
18
|
if (!('email' in value) || value['email'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
if (!('password' in value) || value['password'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
25
|
-
return
|
|
24
|
+
export function ApiAuthLoginPostRequestFromJSON(json) {
|
|
25
|
+
return ApiAuthLoginPostRequestFromJSONTyped(json, false);
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
27
|
+
export function ApiAuthLoginPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
28
|
if (json == null) {
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
@@ -33,10 +33,10 @@ export function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'password': json['password'],
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
export function
|
|
37
|
-
return
|
|
36
|
+
export function ApiAuthLoginPostRequestToJSON(json) {
|
|
37
|
+
return ApiAuthLoginPostRequestToJSONTyped(json, false);
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
39
|
+
export function ApiAuthLoginPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ApiAuthRefreshPost200ResponseResponseObject } from './ApiAuthRefreshPost200ResponseResponseObject';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -30,10 +30,10 @@ export interface ApiAuthRefreshPost200Response {
|
|
|
30
30
|
message: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {ApiAuthRefreshPost200ResponseResponseObject}
|
|
34
34
|
* @memberof ApiAuthRefreshPost200Response
|
|
35
35
|
*/
|
|
36
|
-
responseObject?:
|
|
36
|
+
responseObject?: ApiAuthRefreshPost200ResponseResponseObject;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {number}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ApiAuthRefreshPost200ResponseResponseObjectFromJSON, ApiAuthRefreshPost200ResponseResponseObjectToJSON, } from './ApiAuthRefreshPost200ResponseResponseObject';
|
|
15
15
|
/**
|
|
16
16
|
* Check if a given object implements the ApiAuthRefreshPost200Response interface.
|
|
17
17
|
*/
|
|
@@ -34,7 +34,7 @@ export function ApiAuthRefreshPost200ResponseFromJSONTyped(json, ignoreDiscrimin
|
|
|
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 : ApiAuthRefreshPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
38
|
'statusCode': json['statusCode'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -48,7 +48,7 @@ export function ApiAuthRefreshPost200ResponseToJSONTyped(value, ignoreDiscrimina
|
|
|
48
48
|
return {
|
|
49
49
|
'success': value['success'],
|
|
50
50
|
'message': value['message'],
|
|
51
|
-
'responseObject':
|
|
51
|
+
'responseObject': ApiAuthRefreshPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
52
|
'statusCode': value['statusCode'],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -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 ApiAuthRefreshPost200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiAuthRefreshPost200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiAuthRefreshPost200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
accessToken: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiAuthRefreshPost200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
refreshToken: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiAuthRefreshPost200ResponseResponseObject interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiAuthRefreshPost200ResponseResponseObject(value: object): value is ApiAuthRefreshPost200ResponseResponseObject;
|
|
35
|
+
export declare function ApiAuthRefreshPost200ResponseResponseObjectFromJSON(json: any): ApiAuthRefreshPost200ResponseResponseObject;
|
|
36
|
+
export declare function ApiAuthRefreshPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRefreshPost200ResponseResponseObject;
|
|
37
|
+
export declare function ApiAuthRefreshPost200ResponseResponseObjectToJSON(json: any): ApiAuthRefreshPost200ResponseResponseObject;
|
|
38
|
+
export declare function ApiAuthRefreshPost200ResponseResponseObjectToJSONTyped(value?: ApiAuthRefreshPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/{RefreshTokenResponse.js → ApiAuthRefreshPost200ResponseResponseObject.js}
RENAMED
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
* Check if a given object implements the
|
|
15
|
+
* Check if a given object implements the ApiAuthRefreshPost200ResponseResponseObject interface.
|
|
16
16
|
*/
|
|
17
|
-
export function
|
|
17
|
+
export function instanceOfApiAuthRefreshPost200ResponseResponseObject(value) {
|
|
18
18
|
if (!('accessToken' in value) || value['accessToken'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
if (!('refreshToken' in value) || value['refreshToken'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
24
|
-
export function
|
|
25
|
-
return
|
|
24
|
+
export function ApiAuthRefreshPost200ResponseResponseObjectFromJSON(json) {
|
|
25
|
+
return ApiAuthRefreshPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
27
|
+
export function ApiAuthRefreshPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
28
|
if (json == null) {
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
@@ -33,10 +33,10 @@ export function RefreshTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'refreshToken': json['refreshToken'],
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
export function
|
|
37
|
-
return
|
|
36
|
+
export function ApiAuthRefreshPost200ResponseResponseObjectToJSON(json) {
|
|
37
|
+
return ApiAuthRefreshPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
38
38
|
}
|
|
39
|
-
export function
|
|
39
|
+
export function ApiAuthRefreshPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
40
|
if (value == null) {
|
|
41
41
|
return value;
|
|
42
42
|
}
|
|
@@ -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 { ApiUserRewardPointsPost200ResponseResponseObject } from './ApiUserRewardPointsPost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserRewardPointsPost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserRewardPointsPost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiUserRewardPointsPost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiUserRewardPointsPost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiUserRewardPointsPost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiUserRewardPointsPost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiUserRewardPointsPost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiUserRewardPointsPost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiUserRewardPointsPost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiUserRewardPointsPost200Response(value: object): value is ApiUserRewardPointsPost200Response;
|
|
48
|
+
export declare function ApiUserRewardPointsPost200ResponseFromJSON(json: any): ApiUserRewardPointsPost200Response;
|
|
49
|
+
export declare function ApiUserRewardPointsPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserRewardPointsPost200Response;
|
|
50
|
+
export declare function ApiUserRewardPointsPost200ResponseToJSON(json: any): ApiUserRewardPointsPost200Response;
|
|
51
|
+
export declare function ApiUserRewardPointsPost200ResponseToJSONTyped(value?: ApiUserRewardPointsPost200Response | 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 { ApiUserRewardPointsPost200ResponseResponseObjectFromJSON, ApiUserRewardPointsPost200ResponseResponseObjectToJSON, } from './ApiUserRewardPointsPost200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiUserRewardPointsPost200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiUserRewardPointsPost200Response(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 ApiUserRewardPointsPost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiUserRewardPointsPost200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserRewardPointsPost200ResponseFromJSONTyped(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 : ApiUserRewardPointsPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiUserRewardPointsPost200ResponseToJSON(json) {
|
|
42
|
+
return ApiUserRewardPointsPost200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiUserRewardPointsPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiUserRewardPointsPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiUserRewardPointsPost200ResponseResponseObject
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiUserRewardPointsPost200ResponseResponseObject {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ApiUserRewardPointsPost200ResponseResponseObject
|
|
22
|
+
*/
|
|
23
|
+
pointsAwarded: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiUserRewardPointsPost200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
userPointId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiUserRewardPointsPost200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApiUserRewardPointsPost200ResponseResponseObject interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApiUserRewardPointsPost200ResponseResponseObject(value: object): value is ApiUserRewardPointsPost200ResponseResponseObject;
|
|
41
|
+
export declare function ApiUserRewardPointsPost200ResponseResponseObjectFromJSON(json: any): ApiUserRewardPointsPost200ResponseResponseObject;
|
|
42
|
+
export declare function ApiUserRewardPointsPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserRewardPointsPost200ResponseResponseObject;
|
|
43
|
+
export declare function ApiUserRewardPointsPost200ResponseResponseObjectToJSON(json: any): ApiUserRewardPointsPost200ResponseResponseObject;
|
|
44
|
+
export declare function ApiUserRewardPointsPost200ResponseResponseObjectToJSONTyped(value?: ApiUserRewardPointsPost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ApiUserRewardPointsPost200ResponseResponseObject interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiUserRewardPointsPost200ResponseResponseObject(value) {
|
|
18
|
+
if (!('pointsAwarded' in value) || value['pointsAwarded'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('userPointId' in value) || value['userPointId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ApiUserRewardPointsPost200ResponseResponseObjectFromJSON(json) {
|
|
27
|
+
return ApiUserRewardPointsPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ApiUserRewardPointsPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'pointsAwarded': json['pointsAwarded'],
|
|
35
|
+
'userPointId': json['userPointId'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ApiUserRewardPointsPost200ResponseResponseObjectToJSON(json) {
|
|
40
|
+
return ApiUserRewardPointsPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ApiUserRewardPointsPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'pointsAwarded': value['pointsAwarded'],
|
|
48
|
+
'userPointId': value['userPointId'],
|
|
49
|
+
'message': value['message'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { ApiUserRewardPointsPostRequestMetadata } from './ApiUserRewardPointsPostRequestMetadata';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiUserRewardPointsPostRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiUserRewardPointsPostRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiUserRewardPointsPostRequest
|
|
23
|
+
*/
|
|
24
|
+
rewardType: ApiUserRewardPointsPostRequestRewardTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ApiUserRewardPointsPostRequestMetadata}
|
|
28
|
+
* @memberof ApiUserRewardPointsPostRequest
|
|
29
|
+
*/
|
|
30
|
+
metadata?: ApiUserRewardPointsPostRequestMetadata;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const ApiUserRewardPointsPostRequestRewardTypeEnum: {
|
|
36
|
+
readonly NfcScan: "NFC_SCAN";
|
|
37
|
+
readonly FirstGame: "FIRST_GAME";
|
|
38
|
+
};
|
|
39
|
+
export type ApiUserRewardPointsPostRequestRewardTypeEnum = typeof ApiUserRewardPointsPostRequestRewardTypeEnum[keyof typeof ApiUserRewardPointsPostRequestRewardTypeEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ApiUserRewardPointsPostRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfApiUserRewardPointsPostRequest(value: object): value is ApiUserRewardPointsPostRequest;
|
|
44
|
+
export declare function ApiUserRewardPointsPostRequestFromJSON(json: any): ApiUserRewardPointsPostRequest;
|
|
45
|
+
export declare function ApiUserRewardPointsPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserRewardPointsPostRequest;
|
|
46
|
+
export declare function ApiUserRewardPointsPostRequestToJSON(json: any): ApiUserRewardPointsPostRequest;
|
|
47
|
+
export declare function ApiUserRewardPointsPostRequestToJSONTyped(value?: ApiUserRewardPointsPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { ApiUserRewardPointsPostRequestMetadataFromJSON, ApiUserRewardPointsPostRequestMetadataToJSON, } from './ApiUserRewardPointsPostRequestMetadata';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ApiUserRewardPointsPostRequestRewardTypeEnum = {
|
|
19
|
+
NfcScan: 'NFC_SCAN',
|
|
20
|
+
FirstGame: 'FIRST_GAME'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiUserRewardPointsPostRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfApiUserRewardPointsPostRequest(value) {
|
|
26
|
+
if (!('rewardType' in value) || value['rewardType'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function ApiUserRewardPointsPostRequestFromJSON(json) {
|
|
31
|
+
return ApiUserRewardPointsPostRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function ApiUserRewardPointsPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'rewardType': json['rewardType'],
|
|
39
|
+
'metadata': json['metadata'] == null ? undefined : ApiUserRewardPointsPostRequestMetadataFromJSON(json['metadata']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function ApiUserRewardPointsPostRequestToJSON(json) {
|
|
43
|
+
return ApiUserRewardPointsPostRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function ApiUserRewardPointsPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'rewardType': value['rewardType'],
|
|
51
|
+
'metadata': ApiUserRewardPointsPostRequestMetadataToJSON(value['metadata']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiUserRewardPointsPostRequestMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiUserRewardPointsPostRequestMetadata {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiUserRewardPointsPostRequestMetadata
|
|
22
|
+
*/
|
|
23
|
+
nfcCode?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiUserRewardPointsPostRequestMetadata
|
|
28
|
+
*/
|
|
29
|
+
itemName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiUserRewardPointsPostRequestMetadata
|
|
34
|
+
*/
|
|
35
|
+
gameReference?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ApiUserRewardPointsPostRequestMetadata interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfApiUserRewardPointsPostRequestMetadata(value: object): value is ApiUserRewardPointsPostRequestMetadata;
|
|
41
|
+
export declare function ApiUserRewardPointsPostRequestMetadataFromJSON(json: any): ApiUserRewardPointsPostRequestMetadata;
|
|
42
|
+
export declare function ApiUserRewardPointsPostRequestMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserRewardPointsPostRequestMetadata;
|
|
43
|
+
export declare function ApiUserRewardPointsPostRequestMetadataToJSON(json: any): ApiUserRewardPointsPostRequestMetadata;
|
|
44
|
+
export declare function ApiUserRewardPointsPostRequestMetadataToJSONTyped(value?: ApiUserRewardPointsPostRequestMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 ApiUserRewardPointsPostRequestMetadata interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiUserRewardPointsPostRequestMetadata(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ApiUserRewardPointsPostRequestMetadataFromJSON(json) {
|
|
21
|
+
return ApiUserRewardPointsPostRequestMetadataFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ApiUserRewardPointsPostRequestMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'nfcCode': json['nfcCode'] == null ? undefined : json['nfcCode'],
|
|
29
|
+
'itemName': json['itemName'] == null ? undefined : json['itemName'],
|
|
30
|
+
'gameReference': json['gameReference'] == null ? undefined : json['gameReference'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ApiUserRewardPointsPostRequestMetadataToJSON(json) {
|
|
34
|
+
return ApiUserRewardPointsPostRequestMetadataToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ApiUserRewardPointsPostRequestMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'nfcCode': value['nfcCode'],
|
|
42
|
+
'itemName': value['itemName'],
|
|
43
|
+
'gameReference': value['gameReference'],
|
|
44
|
+
};
|
|
45
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from './ApiAuthLoginPost200Response';
|
|
2
|
+
export * from './ApiAuthLoginPost200ResponseResponseObject';
|
|
3
|
+
export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
4
|
+
export * from './ApiAuthLoginPostRequest';
|
|
2
5
|
export * from './ApiAuthRefreshPost200Response';
|
|
6
|
+
export * from './ApiAuthRefreshPost200ResponseResponseObject';
|
|
3
7
|
export * from './ApiHealthCheckGet200Response';
|
|
4
8
|
export * from './ApiNewsCategoriesListGet200Response';
|
|
5
9
|
export * from './ApiNewsCategoriesListGet200ResponseResponseObject';
|
|
@@ -117,12 +121,12 @@ export * from './ApiUserRecentReferralsGet200Response';
|
|
|
117
121
|
export * from './ApiUserRecentReferralsGet200ResponseResponseObject';
|
|
118
122
|
export * from './ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner';
|
|
119
123
|
export * from './ApiUserRecentReferralsGetFilterParameter';
|
|
124
|
+
export * from './ApiUserRewardPointsPost200Response';
|
|
125
|
+
export * from './ApiUserRewardPointsPost200ResponseResponseObject';
|
|
126
|
+
export * from './ApiUserRewardPointsPostRequest';
|
|
127
|
+
export * from './ApiUserRewardPointsPostRequestMetadata';
|
|
120
128
|
export * from './ApiYoutubeDrxContentGet200Response';
|
|
121
129
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
|
|
122
130
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
|
|
123
131
|
export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
|
|
124
132
|
export * from './ApiYoutubeRefreshPost200Response';
|
|
125
|
-
export * from './LoginRequest';
|
|
126
|
-
export * from './LoginResponse';
|
|
127
|
-
export * from './LoginResponseUser';
|
|
128
|
-
export * from './RefreshTokenResponse';
|