@drxsuperapp/sdk 1.1.163 → 1.1.170

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.
Files changed (121) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/apis/AppConfigApi.ts +119 -0
  3. package/apis/AuthenticationApi.ts +166 -0
  4. package/apis/PadelApi.ts +0 -5
  5. package/apis/TennisApi.ts +0 -15
  6. package/apis/TournamentApi.ts +0 -5
  7. package/apis/UserAffiliateApi.ts +186 -0
  8. package/apis/UserApi.ts +0 -46
  9. package/apis/UserPointsApi.ts +176 -0
  10. package/apis/index.ts +4 -0
  11. package/deploy.log +216 -7
  12. package/dist/apis/AppConfigApi.d.ts +37 -0
  13. package/dist/apis/AppConfigApi.js +84 -0
  14. package/dist/apis/AuthenticationApi.d.ts +51 -0
  15. package/dist/apis/AuthenticationApi.js +121 -0
  16. package/dist/apis/PadelApi.d.ts +0 -1
  17. package/dist/apis/PadelApi.js +0 -3
  18. package/dist/apis/TennisApi.d.ts +0 -3
  19. package/dist/apis/TennisApi.js +0 -9
  20. package/dist/apis/TournamentApi.d.ts +0 -1
  21. package/dist/apis/TournamentApi.js +0 -3
  22. package/dist/apis/UserAffiliateApi.d.ts +51 -0
  23. package/dist/apis/UserAffiliateApi.js +127 -0
  24. package/dist/apis/UserApi.d.ts +1 -10
  25. package/dist/apis/UserApi.js +1 -35
  26. package/dist/apis/UserPointsApi.d.ts +48 -0
  27. package/dist/apis/UserPointsApi.js +125 -0
  28. package/dist/apis/index.d.ts +4 -0
  29. package/dist/apis/index.js +4 -0
  30. package/dist/models/ApiAuthLoginPost200Response.d.ts +51 -0
  31. package/dist/models/ApiAuthLoginPost200Response.js +54 -0
  32. package/dist/models/ApiAuthRefreshPost200Response.d.ts +51 -0
  33. package/dist/models/ApiAuthRefreshPost200Response.js +54 -0
  34. package/dist/models/ApiTournamentGetFilterParameter.d.ts +0 -6
  35. package/dist/models/ApiTournamentGetFilterParameter.js +0 -2
  36. package/dist/models/ApiUserAffiliateGet200Response.d.ts +51 -0
  37. package/dist/models/ApiUserAffiliateGet200Response.js +54 -0
  38. package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.d.ts +63 -0
  39. package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.js +64 -0
  40. package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.d.ts +50 -0
  41. package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.js +55 -0
  42. package/dist/models/ApiUserApplyAffiliateCodePost200Response.d.ts +51 -0
  43. package/dist/models/ApiUserApplyAffiliateCodePost200Response.js +54 -0
  44. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.d.ts +51 -0
  45. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.js +54 -0
  46. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.d.ts +38 -0
  47. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.js +47 -0
  48. package/dist/models/ApiUserApplyAffiliateCodePostRequest.d.ts +32 -0
  49. package/dist/models/ApiUserApplyAffiliateCodePostRequest.js +43 -0
  50. package/dist/models/ApiUserPointRewardsGet200Response.d.ts +51 -0
  51. package/dist/models/ApiUserPointRewardsGet200Response.js +54 -0
  52. package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.d.ts +68 -0
  53. package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.js +67 -0
  54. package/dist/models/ApiUserPointRewardsPut200Response.d.ts +51 -0
  55. package/dist/models/ApiUserPointRewardsPut200Response.js +54 -0
  56. package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.d.ts +50 -0
  57. package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.js +55 -0
  58. package/dist/models/ApiUserPointRewardsPutRequest.d.ts +51 -0
  59. package/dist/models/ApiUserPointRewardsPutRequest.js +59 -0
  60. package/dist/models/ApiUserPointsGet200Response.d.ts +51 -0
  61. package/dist/models/ApiUserPointsGet200Response.js +54 -0
  62. package/dist/models/ApiUserPointsGet200ResponseResponseObject.d.ts +56 -0
  63. package/dist/models/ApiUserPointsGet200ResponseResponseObject.js +59 -0
  64. package/dist/models/ApiUserPointsHistoryGet200Response.d.ts +51 -0
  65. package/dist/models/ApiUserPointsHistoryGet200Response.js +54 -0
  66. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.d.ts +57 -0
  67. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.js +60 -0
  68. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.d.ts +103 -0
  69. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.js +96 -0
  70. package/dist/models/ApiUserPointsHistoryGetFilterParameter.d.ts +52 -0
  71. package/dist/models/ApiUserPointsHistoryGetFilterParameter.js +49 -0
  72. package/dist/models/ApiUserRecentReferralsGet200Response.d.ts +51 -0
  73. package/dist/models/ApiUserRecentReferralsGet200Response.js +54 -0
  74. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.d.ts +57 -0
  75. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.js +60 -0
  76. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.d.ts +56 -0
  77. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.js +59 -0
  78. package/dist/models/ApiUserRecentReferralsGetFilterParameter.d.ts +46 -0
  79. package/dist/models/ApiUserRecentReferralsGetFilterParameter.js +47 -0
  80. package/dist/models/LoginRequest.d.ts +38 -0
  81. package/dist/models/LoginRequest.js +47 -0
  82. package/dist/models/LoginResponse.d.ts +45 -0
  83. package/dist/models/LoginResponse.js +52 -0
  84. package/dist/models/LoginResponseUser.d.ts +56 -0
  85. package/dist/models/LoginResponseUser.js +59 -0
  86. package/dist/models/RefreshTokenResponse.d.ts +38 -0
  87. package/dist/models/RefreshTokenResponse.js +47 -0
  88. package/dist/models/index.d.ts +28 -0
  89. package/dist/models/index.js +28 -0
  90. package/models/ApiAuthLoginPost200Response.ts +100 -0
  91. package/models/ApiAuthRefreshPost200Response.ts +100 -0
  92. package/models/ApiTournamentGetFilterParameter.ts +0 -8
  93. package/models/ApiUserAffiliateGet200Response.ts +100 -0
  94. package/models/ApiUserAffiliateGet200ResponseResponseObject.ts +119 -0
  95. package/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts +93 -0
  96. package/models/ApiUserApplyAffiliateCodePost200Response.ts +100 -0
  97. package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.ts +100 -0
  98. package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.ts +75 -0
  99. package/models/ApiUserApplyAffiliateCodePostRequest.ts +66 -0
  100. package/models/ApiUserPointRewardsGet200Response.ts +100 -0
  101. package/models/ApiUserPointRewardsGet200ResponseResponseObject.ts +120 -0
  102. package/models/ApiUserPointRewardsPut200Response.ts +100 -0
  103. package/models/ApiUserPointRewardsPut200ResponseResponseObject.ts +93 -0
  104. package/models/ApiUserPointRewardsPutRequest.ts +91 -0
  105. package/models/ApiUserPointsGet200Response.ts +100 -0
  106. package/models/ApiUserPointsGet200ResponseResponseObject.ts +102 -0
  107. package/models/ApiUserPointsHistoryGet200Response.ts +100 -0
  108. package/models/ApiUserPointsHistoryGet200ResponseResponseObject.ts +110 -0
  109. package/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.ts +160 -0
  110. package/models/ApiUserPointsHistoryGetFilterParameter.ts +104 -0
  111. package/models/ApiUserRecentReferralsGet200Response.ts +100 -0
  112. package/models/ApiUserRecentReferralsGet200ResponseResponseObject.ts +110 -0
  113. package/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts +102 -0
  114. package/models/ApiUserRecentReferralsGetFilterParameter.ts +96 -0
  115. package/models/LoginRequest.ts +75 -0
  116. package/models/LoginResponse.ts +92 -0
  117. package/models/LoginResponseUser.ts +102 -0
  118. package/models/RefreshTokenResponse.ts +75 -0
  119. package/models/index.ts +28 -0
  120. package/package.json +1 -1
  121. package/workflow.sh +2 -2
@@ -1,3 +1,5 @@
1
+ export * from './ApiAuthLoginPost200Response';
2
+ export * from './ApiAuthRefreshPost200Response';
1
3
  export * from './ApiHealthCheckGet200Response';
2
4
  export * from './ApiNewsCategoriesListGet200Response';
3
5
  export * from './ApiNewsCategoriesListGet200ResponseResponseObject';
@@ -87,13 +89,39 @@ export * from './ApiTournamentPadelPostRequestBody';
87
89
  export * from './ApiTournamentPadelPostRequestBodyPlayersInner';
88
90
  export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
89
91
  export * from './ApiTournamentSeedGameTypesGet200Response';
92
+ export * from './ApiUserAffiliateGet200Response';
93
+ export * from './ApiUserAffiliateGet200ResponseResponseObject';
94
+ export * from './ApiUserAffiliateGet200ResponseResponseObjectStatistics';
95
+ export * from './ApiUserApplyAffiliateCodePost200Response';
96
+ export * from './ApiUserApplyAffiliateCodePost200ResponseResponseObject';
97
+ export * from './ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer';
98
+ export * from './ApiUserApplyAffiliateCodePostRequest';
90
99
  export * from './ApiUserGet200Response';
91
100
  export * from './ApiUserGetFilterParameter';
92
101
  export * from './ApiUserLeaderboardGet200Response';
93
102
  export * from './ApiUserLeaderboardGet200ResponseResponseObject';
94
103
  export * from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
104
+ export * from './ApiUserPointRewardsGet200Response';
105
+ export * from './ApiUserPointRewardsGet200ResponseResponseObject';
106
+ export * from './ApiUserPointRewardsPut200Response';
107
+ export * from './ApiUserPointRewardsPut200ResponseResponseObject';
108
+ export * from './ApiUserPointRewardsPutRequest';
109
+ export * from './ApiUserPointsGet200Response';
110
+ export * from './ApiUserPointsGet200ResponseResponseObject';
111
+ export * from './ApiUserPointsHistoryGet200Response';
112
+ export * from './ApiUserPointsHistoryGet200ResponseResponseObject';
113
+ export * from './ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner';
114
+ export * from './ApiUserPointsHistoryGetFilterParameter';
115
+ export * from './ApiUserRecentReferralsGet200Response';
116
+ export * from './ApiUserRecentReferralsGet200ResponseResponseObject';
117
+ export * from './ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner';
118
+ export * from './ApiUserRecentReferralsGetFilterParameter';
95
119
  export * from './ApiYoutubeDrxContentGet200Response';
96
120
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
97
121
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
98
122
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
99
123
  export * from './ApiYoutubeRefreshPost200Response';
124
+ export * from './LoginRequest';
125
+ export * from './LoginResponse';
126
+ export * from './LoginResponseUser';
127
+ export * from './RefreshTokenResponse';
@@ -1,5 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ApiAuthLoginPost200Response';
4
+ export * from './ApiAuthRefreshPost200Response';
3
5
  export * from './ApiHealthCheckGet200Response';
4
6
  export * from './ApiNewsCategoriesListGet200Response';
5
7
  export * from './ApiNewsCategoriesListGet200ResponseResponseObject';
@@ -89,13 +91,39 @@ export * from './ApiTournamentPadelPostRequestBody';
89
91
  export * from './ApiTournamentPadelPostRequestBodyPlayersInner';
90
92
  export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
91
93
  export * from './ApiTournamentSeedGameTypesGet200Response';
94
+ export * from './ApiUserAffiliateGet200Response';
95
+ export * from './ApiUserAffiliateGet200ResponseResponseObject';
96
+ export * from './ApiUserAffiliateGet200ResponseResponseObjectStatistics';
97
+ export * from './ApiUserApplyAffiliateCodePost200Response';
98
+ export * from './ApiUserApplyAffiliateCodePost200ResponseResponseObject';
99
+ export * from './ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer';
100
+ export * from './ApiUserApplyAffiliateCodePostRequest';
92
101
  export * from './ApiUserGet200Response';
93
102
  export * from './ApiUserGetFilterParameter';
94
103
  export * from './ApiUserLeaderboardGet200Response';
95
104
  export * from './ApiUserLeaderboardGet200ResponseResponseObject';
96
105
  export * from './ApiUserLeaderboardGet200ResponseResponseObjectLeaderboardInner';
106
+ export * from './ApiUserPointRewardsGet200Response';
107
+ export * from './ApiUserPointRewardsGet200ResponseResponseObject';
108
+ export * from './ApiUserPointRewardsPut200Response';
109
+ export * from './ApiUserPointRewardsPut200ResponseResponseObject';
110
+ export * from './ApiUserPointRewardsPutRequest';
111
+ export * from './ApiUserPointsGet200Response';
112
+ export * from './ApiUserPointsGet200ResponseResponseObject';
113
+ export * from './ApiUserPointsHistoryGet200Response';
114
+ export * from './ApiUserPointsHistoryGet200ResponseResponseObject';
115
+ export * from './ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner';
116
+ export * from './ApiUserPointsHistoryGetFilterParameter';
117
+ export * from './ApiUserRecentReferralsGet200Response';
118
+ export * from './ApiUserRecentReferralsGet200ResponseResponseObject';
119
+ export * from './ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner';
120
+ export * from './ApiUserRecentReferralsGetFilterParameter';
97
121
  export * from './ApiYoutubeDrxContentGet200Response';
98
122
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
99
123
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
100
124
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
101
125
  export * from './ApiYoutubeRefreshPost200Response';
126
+ export * from './LoginRequest';
127
+ export * from './LoginResponse';
128
+ export * from './LoginResponseUser';
129
+ export * from './RefreshTokenResponse';
@@ -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 { LoginResponse } from './LoginResponse';
17
+ import {
18
+ LoginResponseFromJSON,
19
+ LoginResponseFromJSONTyped,
20
+ LoginResponseToJSON,
21
+ LoginResponseToJSONTyped,
22
+ } from './LoginResponse';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiAuthLoginPost200Response
28
+ */
29
+ export interface ApiAuthLoginPost200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiAuthLoginPost200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiAuthLoginPost200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {LoginResponse}
45
+ * @memberof ApiAuthLoginPost200Response
46
+ */
47
+ responseObject?: LoginResponse;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiAuthLoginPost200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiAuthLoginPost200Response interface.
58
+ */
59
+ export function instanceOfApiAuthLoginPost200Response(value: object): value is ApiAuthLoginPost200Response {
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 ApiAuthLoginPost200ResponseFromJSON(json: any): ApiAuthLoginPost200Response {
67
+ return ApiAuthLoginPost200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiAuthLoginPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthLoginPost200Response {
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 : LoginResponseFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiAuthLoginPost200ResponseToJSON(json: any): ApiAuthLoginPost200Response {
84
+ return ApiAuthLoginPost200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiAuthLoginPost200ResponseToJSONTyped(value?: ApiAuthLoginPost200Response | 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': LoginResponseToJSON(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 { RefreshTokenResponse } from './RefreshTokenResponse';
17
+ import {
18
+ RefreshTokenResponseFromJSON,
19
+ RefreshTokenResponseFromJSONTyped,
20
+ RefreshTokenResponseToJSON,
21
+ RefreshTokenResponseToJSONTyped,
22
+ } from './RefreshTokenResponse';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiAuthRefreshPost200Response
28
+ */
29
+ export interface ApiAuthRefreshPost200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiAuthRefreshPost200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiAuthRefreshPost200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {RefreshTokenResponse}
45
+ * @memberof ApiAuthRefreshPost200Response
46
+ */
47
+ responseObject?: RefreshTokenResponse;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiAuthRefreshPost200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiAuthRefreshPost200Response interface.
58
+ */
59
+ export function instanceOfApiAuthRefreshPost200Response(value: object): value is ApiAuthRefreshPost200Response {
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 ApiAuthRefreshPost200ResponseFromJSON(json: any): ApiAuthRefreshPost200Response {
67
+ return ApiAuthRefreshPost200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiAuthRefreshPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRefreshPost200Response {
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 : RefreshTokenResponseFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiAuthRefreshPost200ResponseToJSON(json: any): ApiAuthRefreshPost200Response {
84
+ return ApiAuthRefreshPost200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiAuthRefreshPost200ResponseToJSONTyped(value?: ApiAuthRefreshPost200Response | 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': RefreshTokenResponseToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -39,12 +39,6 @@ export interface ApiTournamentGetFilterParameter {
39
39
  * @memberof ApiTournamentGetFilterParameter
40
40
  */
41
41
  gameType?: ApiPadelMatchesGetFilterParameterName;
42
- /**
43
- *
44
- * @type {ApiPadelMatchesGetFilterParameterName}
45
- * @memberof ApiTournamentGetFilterParameter
46
- */
47
- userId?: ApiPadelMatchesGetFilterParameterName;
48
42
  }
49
43
 
50
44
  /**
@@ -66,7 +60,6 @@ export function ApiTournamentGetFilterParameterFromJSONTyped(json: any, ignoreDi
66
60
 
67
61
  'title': json['title'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['title']),
68
62
  'gameType': json['game_type'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['game_type']),
69
- 'userId': json['user_id'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['user_id']),
70
63
  };
71
64
  }
72
65
 
@@ -83,7 +76,6 @@ export function ApiTournamentGetFilterParameterToJSONTyped(value?: ApiTournament
83
76
 
84
77
  'title': ApiPadelMatchesGetFilterParameterNameToJSON(value['title']),
85
78
  'game_type': ApiPadelMatchesGetFilterParameterNameToJSON(value['gameType']),
86
- 'user_id': ApiPadelMatchesGetFilterParameterNameToJSON(value['userId']),
87
79
  };
88
80
  }
89
81
 
@@ -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
+