@drxsuperapp/sdk 1.1.162 → 1.1.168
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 +34 -0
- package/apis/AppConfigApi.ts +119 -0
- package/apis/AuthenticationApi.ts +166 -0
- package/apis/PadelApi.ts +0 -5
- package/apis/TennisApi.ts +41 -15
- package/apis/TournamentApi.ts +0 -5
- package/apis/UserAffiliateApi.ts +186 -0
- package/apis/UserApi.ts +0 -46
- package/apis/UserPointsApi.ts +176 -0
- package/apis/index.ts +4 -0
- package/deploy.log +15 -262
- package/dist/apis/AppConfigApi.d.ts +37 -0
- package/dist/apis/AppConfigApi.js +84 -0
- package/dist/apis/AuthenticationApi.d.ts +51 -0
- package/dist/apis/AuthenticationApi.js +121 -0
- package/dist/apis/PadelApi.d.ts +0 -1
- package/dist/apis/PadelApi.js +0 -3
- package/dist/apis/TennisApi.d.ts +9 -4
- package/dist/apis/TennisApi.js +32 -10
- package/dist/apis/TournamentApi.d.ts +0 -1
- package/dist/apis/TournamentApi.js +0 -3
- package/dist/apis/UserAffiliateApi.d.ts +51 -0
- package/dist/apis/UserAffiliateApi.js +127 -0
- package/dist/apis/UserApi.d.ts +1 -10
- package/dist/apis/UserApi.js +1 -35
- package/dist/apis/UserPointsApi.d.ts +48 -0
- package/dist/apis/UserPointsApi.js +125 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/models/ApiAuthLoginPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthLoginPost200Response.js +54 -0
- package/dist/models/ApiAuthRefreshPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthRefreshPost200Response.js +54 -0
- package/dist/models/ApiTennisEventTypesGet200Response.d.ts +51 -0
- package/dist/models/ApiTennisEventTypesGet200Response.js +54 -0
- package/dist/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.d.ts +38 -0
- package/dist/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.js +47 -0
- package/dist/models/ApiTournamentGetFilterParameter.d.ts +0 -6
- package/dist/models/ApiTournamentGetFilterParameter.js +0 -2
- package/dist/models/ApiUserAffiliateGet200Response.d.ts +51 -0
- package/dist/models/ApiUserAffiliateGet200Response.js +54 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.d.ts +63 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.js +64 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.d.ts +50 -0
- package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.js +55 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200Response.d.ts +51 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200Response.js +54 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.js +54 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.d.ts +38 -0
- package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.js +47 -0
- package/dist/models/ApiUserApplyAffiliateCodePostRequest.d.ts +32 -0
- package/dist/models/ApiUserApplyAffiliateCodePostRequest.js +43 -0
- package/dist/models/ApiUserPointRewardsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsGet200Response.js +54 -0
- package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.d.ts +68 -0
- package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.js +67 -0
- package/dist/models/ApiUserPointRewardsPut200Response.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsPut200Response.js +54 -0
- package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.d.ts +50 -0
- package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.js +55 -0
- package/dist/models/ApiUserPointRewardsPutRequest.d.ts +51 -0
- package/dist/models/ApiUserPointRewardsPutRequest.js +59 -0
- package/dist/models/ApiUserPointsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointsGet200Response.js +54 -0
- package/dist/models/ApiUserPointsGet200ResponseResponseObject.d.ts +56 -0
- package/dist/models/ApiUserPointsGet200ResponseResponseObject.js +59 -0
- package/dist/models/ApiUserPointsHistoryGet200Response.d.ts +51 -0
- package/dist/models/ApiUserPointsHistoryGet200Response.js +54 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.d.ts +103 -0
- package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.js +96 -0
- package/dist/models/ApiUserPointsHistoryGetFilterParameter.d.ts +52 -0
- package/dist/models/ApiUserPointsHistoryGetFilterParameter.js +49 -0
- package/dist/models/ApiUserRecentReferralsGet200Response.d.ts +51 -0
- package/dist/models/ApiUserRecentReferralsGet200Response.js +54 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.d.ts +56 -0
- package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.js +59 -0
- package/dist/models/ApiUserRecentReferralsGetFilterParameter.d.ts +46 -0
- package/dist/models/ApiUserRecentReferralsGetFilterParameter.js +47 -0
- package/dist/models/LoginRequest.d.ts +38 -0
- package/dist/models/LoginRequest.js +47 -0
- package/dist/models/LoginResponse.d.ts +45 -0
- package/dist/models/LoginResponse.js +52 -0
- package/dist/models/LoginResponseUser.d.ts +56 -0
- package/dist/models/LoginResponseUser.js +59 -0
- package/dist/models/RefreshTokenResponse.d.ts +38 -0
- package/dist/models/RefreshTokenResponse.js +47 -0
- package/dist/models/index.d.ts +30 -0
- package/dist/models/index.js +30 -0
- package/models/ApiAuthLoginPost200Response.ts +100 -0
- package/models/ApiAuthRefreshPost200Response.ts +100 -0
- package/models/ApiTennisEventTypesGet200Response.ts +100 -0
- package/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.ts +75 -0
- package/models/ApiTournamentGetFilterParameter.ts +0 -8
- package/models/ApiUserAffiliateGet200Response.ts +100 -0
- package/models/ApiUserAffiliateGet200ResponseResponseObject.ts +119 -0
- package/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts +93 -0
- package/models/ApiUserApplyAffiliateCodePost200Response.ts +100 -0
- package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.ts +100 -0
- package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.ts +75 -0
- package/models/ApiUserApplyAffiliateCodePostRequest.ts +66 -0
- package/models/ApiUserPointRewardsGet200Response.ts +100 -0
- package/models/ApiUserPointRewardsGet200ResponseResponseObject.ts +120 -0
- package/models/ApiUserPointRewardsPut200Response.ts +100 -0
- package/models/ApiUserPointRewardsPut200ResponseResponseObject.ts +93 -0
- package/models/ApiUserPointRewardsPutRequest.ts +91 -0
- package/models/ApiUserPointsGet200Response.ts +100 -0
- package/models/ApiUserPointsGet200ResponseResponseObject.ts +102 -0
- package/models/ApiUserPointsHistoryGet200Response.ts +100 -0
- package/models/ApiUserPointsHistoryGet200ResponseResponseObject.ts +110 -0
- package/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.ts +160 -0
- package/models/ApiUserPointsHistoryGetFilterParameter.ts +104 -0
- package/models/ApiUserRecentReferralsGet200Response.ts +100 -0
- package/models/ApiUserRecentReferralsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts +102 -0
- package/models/ApiUserRecentReferralsGetFilterParameter.ts +96 -0
- package/models/LoginRequest.ts +75 -0
- package/models/LoginResponse.ts +92 -0
- package/models/LoginResponseUser.ts +102 -0
- package/models/RefreshTokenResponse.ts +75 -0
- package/models/index.ts +30 -0
- package/package.json +1 -1
|
@@ -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 { ApiUserAffiliateGet200ResponseResponseObject } from './ApiUserAffiliateGet200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiUserAffiliateGet200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiUserAffiliateGet200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiUserAffiliateGet200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiUserAffiliateGet200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiUserAffiliateGet200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUserAffiliateGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUserAffiliateGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiUserAffiliateGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiUserAffiliateGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiUserAffiliateGet200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiUserAffiliateGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiUserAffiliateGet200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiUserAffiliateGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiUserAffiliateGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiUserAffiliateGet200Response(value: object): value is ApiUserAffiliateGet200Response {
|
|
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 ApiUserAffiliateGet200ResponseFromJSON(json: any): ApiUserAffiliateGet200Response {
|
|
67
|
+
return ApiUserAffiliateGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiUserAffiliateGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserAffiliateGet200Response {
|
|
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 : ApiUserAffiliateGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiUserAffiliateGet200ResponseToJSON(json: any): ApiUserAffiliateGet200Response {
|
|
84
|
+
return ApiUserAffiliateGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiUserAffiliateGet200ResponseToJSONTyped(value?: ApiUserAffiliateGet200Response | 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': ApiUserAffiliateGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
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 { ApiUserAffiliateGet200ResponseResponseObjectStatistics } from './ApiUserAffiliateGet200ResponseResponseObjectStatistics';
|
|
17
|
+
import {
|
|
18
|
+
ApiUserAffiliateGet200ResponseResponseObjectStatisticsFromJSON,
|
|
19
|
+
ApiUserAffiliateGet200ResponseResponseObjectStatisticsFromJSONTyped,
|
|
20
|
+
ApiUserAffiliateGet200ResponseResponseObjectStatisticsToJSON,
|
|
21
|
+
ApiUserAffiliateGet200ResponseResponseObjectStatisticsToJSONTyped,
|
|
22
|
+
} from './ApiUserAffiliateGet200ResponseResponseObjectStatistics';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUserAffiliateGet200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUserAffiliateGet200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
affiliateCode: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
isActive: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
totalReferrals: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
totalPoints: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObject
|
|
58
|
+
*/
|
|
59
|
+
createdAt: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {ApiUserAffiliateGet200ResponseResponseObjectStatistics}
|
|
63
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObject
|
|
64
|
+
*/
|
|
65
|
+
statistics: ApiUserAffiliateGet200ResponseResponseObjectStatistics;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the ApiUserAffiliateGet200ResponseResponseObject interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfApiUserAffiliateGet200ResponseResponseObject(value: object): value is ApiUserAffiliateGet200ResponseResponseObject {
|
|
72
|
+
if (!('affiliateCode' in value) || value['affiliateCode'] === undefined) return false;
|
|
73
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
74
|
+
if (!('totalReferrals' in value) || value['totalReferrals'] === undefined) return false;
|
|
75
|
+
if (!('totalPoints' in value) || value['totalPoints'] === undefined) return false;
|
|
76
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
77
|
+
if (!('statistics' in value) || value['statistics'] === undefined) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ApiUserAffiliateGet200ResponseResponseObjectFromJSON(json: any): ApiUserAffiliateGet200ResponseResponseObject {
|
|
82
|
+
return ApiUserAffiliateGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function ApiUserAffiliateGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserAffiliateGet200ResponseResponseObject {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'affiliateCode': json['affiliateCode'],
|
|
92
|
+
'isActive': json['isActive'],
|
|
93
|
+
'totalReferrals': json['totalReferrals'],
|
|
94
|
+
'totalPoints': json['totalPoints'],
|
|
95
|
+
'createdAt': json['createdAt'],
|
|
96
|
+
'statistics': ApiUserAffiliateGet200ResponseResponseObjectStatisticsFromJSON(json['statistics']),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ApiUserAffiliateGet200ResponseResponseObjectToJSON(json: any): ApiUserAffiliateGet200ResponseResponseObject {
|
|
101
|
+
return ApiUserAffiliateGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ApiUserAffiliateGet200ResponseResponseObjectToJSONTyped(value?: ApiUserAffiliateGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'affiliateCode': value['affiliateCode'],
|
|
112
|
+
'isActive': value['isActive'],
|
|
113
|
+
'totalReferrals': value['totalReferrals'],
|
|
114
|
+
'totalPoints': value['totalPoints'],
|
|
115
|
+
'createdAt': value['createdAt'],
|
|
116
|
+
'statistics': ApiUserAffiliateGet200ResponseResponseObjectStatisticsToJSON(value['statistics']),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -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 ApiUserAffiliateGet200ResponseResponseObjectStatistics
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiUserAffiliateGet200ResponseResponseObjectStatistics {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObjectStatistics
|
|
26
|
+
*/
|
|
27
|
+
thisMonthReferrals: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObjectStatistics
|
|
32
|
+
*/
|
|
33
|
+
thisWeekReferrals: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObjectStatistics
|
|
38
|
+
*/
|
|
39
|
+
totalPointsEarned: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ApiUserAffiliateGet200ResponseResponseObjectStatistics
|
|
44
|
+
*/
|
|
45
|
+
averagePointsPerReferral: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ApiUserAffiliateGet200ResponseResponseObjectStatistics interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfApiUserAffiliateGet200ResponseResponseObjectStatistics(value: object): value is ApiUserAffiliateGet200ResponseResponseObjectStatistics {
|
|
52
|
+
if (!('thisMonthReferrals' in value) || value['thisMonthReferrals'] === undefined) return false;
|
|
53
|
+
if (!('thisWeekReferrals' in value) || value['thisWeekReferrals'] === undefined) return false;
|
|
54
|
+
if (!('totalPointsEarned' in value) || value['totalPointsEarned'] === undefined) return false;
|
|
55
|
+
if (!('averagePointsPerReferral' in value) || value['averagePointsPerReferral'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApiUserAffiliateGet200ResponseResponseObjectStatisticsFromJSON(json: any): ApiUserAffiliateGet200ResponseResponseObjectStatistics {
|
|
60
|
+
return ApiUserAffiliateGet200ResponseResponseObjectStatisticsFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ApiUserAffiliateGet200ResponseResponseObjectStatisticsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserAffiliateGet200ResponseResponseObjectStatistics {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'thisMonthReferrals': json['thisMonthReferrals'],
|
|
70
|
+
'thisWeekReferrals': json['thisWeekReferrals'],
|
|
71
|
+
'totalPointsEarned': json['totalPointsEarned'],
|
|
72
|
+
'averagePointsPerReferral': json['averagePointsPerReferral'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ApiUserAffiliateGet200ResponseResponseObjectStatisticsToJSON(json: any): ApiUserAffiliateGet200ResponseResponseObjectStatistics {
|
|
77
|
+
return ApiUserAffiliateGet200ResponseResponseObjectStatisticsToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ApiUserAffiliateGet200ResponseResponseObjectStatisticsToJSONTyped(value?: ApiUserAffiliateGet200ResponseResponseObjectStatistics | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'thisMonthReferrals': value['thisMonthReferrals'],
|
|
88
|
+
'thisWeekReferrals': value['thisWeekReferrals'],
|
|
89
|
+
'totalPointsEarned': value['totalPointsEarned'],
|
|
90
|
+
'averagePointsPerReferral': value['averagePointsPerReferral'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -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 { ApiUserApplyAffiliateCodePost200ResponseResponseObject } from './ApiUserApplyAffiliateCodePost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiUserApplyAffiliateCodePost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUserApplyAffiliateCodePost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUserApplyAffiliateCodePost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiUserApplyAffiliateCodePost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiUserApplyAffiliateCodePost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiUserApplyAffiliateCodePost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiUserApplyAffiliateCodePost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiUserApplyAffiliateCodePost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiUserApplyAffiliateCodePost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiUserApplyAffiliateCodePost200Response(value: object): value is ApiUserApplyAffiliateCodePost200Response {
|
|
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 ApiUserApplyAffiliateCodePost200ResponseFromJSON(json: any): ApiUserApplyAffiliateCodePost200Response {
|
|
67
|
+
return ApiUserApplyAffiliateCodePost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiUserApplyAffiliateCodePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePost200Response {
|
|
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 : ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiUserApplyAffiliateCodePost200ResponseToJSON(json: any): ApiUserApplyAffiliateCodePost200Response {
|
|
84
|
+
return ApiUserApplyAffiliateCodePost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiUserApplyAffiliateCodePost200ResponseToJSONTyped(value?: ApiUserApplyAffiliateCodePost200Response | 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': ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -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 { ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer } from './ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer';
|
|
17
|
+
import {
|
|
18
|
+
ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON,
|
|
19
|
+
ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped,
|
|
20
|
+
ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON,
|
|
21
|
+
ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped,
|
|
22
|
+
} from './ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiUserApplyAffiliateCodePost200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
pointsAwarded: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer}
|
|
51
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
referrer?: ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePost200ResponseResponseObject interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiUserApplyAffiliateCodePost200ResponseResponseObject(value: object): value is ApiUserApplyAffiliateCodePost200ResponseResponseObject {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('pointsAwarded' in value) || value['pointsAwarded'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObject {
|
|
67
|
+
return ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePost200ResponseResponseObject {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'pointsAwarded': json['pointsAwarded'],
|
|
79
|
+
'referrer': json['referrer'] == null ? undefined : ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON(json['referrer']),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObject {
|
|
84
|
+
return ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectToJSONTyped(value?: ApiUserApplyAffiliateCodePost200ResponseResponseObject | 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
|
+
'pointsAwarded': value['pointsAwarded'],
|
|
97
|
+
'referrer': ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON(value['referrer']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -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 ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer
|
|
32
|
+
*/
|
|
33
|
+
name: string | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer(value: object): value is ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
|
|
46
|
+
return ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSON(json: any): ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer {
|
|
61
|
+
return ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrerToJSONTyped(value?: ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
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 ApiUserApplyAffiliateCodePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiUserApplyAffiliateCodePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiUserApplyAffiliateCodePostRequest
|
|
26
|
+
*/
|
|
27
|
+
affiliateCode: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiUserApplyAffiliateCodePostRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiUserApplyAffiliateCodePostRequest(value: object): value is ApiUserApplyAffiliateCodePostRequest {
|
|
34
|
+
if (!('affiliateCode' in value) || value['affiliateCode'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiUserApplyAffiliateCodePostRequestFromJSON(json: any): ApiUserApplyAffiliateCodePostRequest {
|
|
39
|
+
return ApiUserApplyAffiliateCodePostRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiUserApplyAffiliateCodePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserApplyAffiliateCodePostRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'affiliateCode': json['affiliate_code'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiUserApplyAffiliateCodePostRequestToJSON(json: any): ApiUserApplyAffiliateCodePostRequest {
|
|
53
|
+
return ApiUserApplyAffiliateCodePostRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiUserApplyAffiliateCodePostRequestToJSONTyped(value?: ApiUserApplyAffiliateCodePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'affiliate_code': value['affiliateCode'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|