@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.
Files changed (126) hide show
  1. package/.openapi-generator/FILES +34 -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 +41 -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 +15 -262
  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 +9 -4
  19. package/dist/apis/TennisApi.js +32 -10
  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/ApiTennisEventTypesGet200Response.d.ts +51 -0
  35. package/dist/models/ApiTennisEventTypesGet200Response.js +54 -0
  36. package/dist/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.d.ts +38 -0
  37. package/dist/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.js +47 -0
  38. package/dist/models/ApiTournamentGetFilterParameter.d.ts +0 -6
  39. package/dist/models/ApiTournamentGetFilterParameter.js +0 -2
  40. package/dist/models/ApiUserAffiliateGet200Response.d.ts +51 -0
  41. package/dist/models/ApiUserAffiliateGet200Response.js +54 -0
  42. package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.d.ts +63 -0
  43. package/dist/models/ApiUserAffiliateGet200ResponseResponseObject.js +64 -0
  44. package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.d.ts +50 -0
  45. package/dist/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.js +55 -0
  46. package/dist/models/ApiUserApplyAffiliateCodePost200Response.d.ts +51 -0
  47. package/dist/models/ApiUserApplyAffiliateCodePost200Response.js +54 -0
  48. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.d.ts +51 -0
  49. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.js +54 -0
  50. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.d.ts +38 -0
  51. package/dist/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.js +47 -0
  52. package/dist/models/ApiUserApplyAffiliateCodePostRequest.d.ts +32 -0
  53. package/dist/models/ApiUserApplyAffiliateCodePostRequest.js +43 -0
  54. package/dist/models/ApiUserPointRewardsGet200Response.d.ts +51 -0
  55. package/dist/models/ApiUserPointRewardsGet200Response.js +54 -0
  56. package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.d.ts +68 -0
  57. package/dist/models/ApiUserPointRewardsGet200ResponseResponseObject.js +67 -0
  58. package/dist/models/ApiUserPointRewardsPut200Response.d.ts +51 -0
  59. package/dist/models/ApiUserPointRewardsPut200Response.js +54 -0
  60. package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.d.ts +50 -0
  61. package/dist/models/ApiUserPointRewardsPut200ResponseResponseObject.js +55 -0
  62. package/dist/models/ApiUserPointRewardsPutRequest.d.ts +51 -0
  63. package/dist/models/ApiUserPointRewardsPutRequest.js +59 -0
  64. package/dist/models/ApiUserPointsGet200Response.d.ts +51 -0
  65. package/dist/models/ApiUserPointsGet200Response.js +54 -0
  66. package/dist/models/ApiUserPointsGet200ResponseResponseObject.d.ts +56 -0
  67. package/dist/models/ApiUserPointsGet200ResponseResponseObject.js +59 -0
  68. package/dist/models/ApiUserPointsHistoryGet200Response.d.ts +51 -0
  69. package/dist/models/ApiUserPointsHistoryGet200Response.js +54 -0
  70. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.d.ts +57 -0
  71. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObject.js +60 -0
  72. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.d.ts +103 -0
  73. package/dist/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.js +96 -0
  74. package/dist/models/ApiUserPointsHistoryGetFilterParameter.d.ts +52 -0
  75. package/dist/models/ApiUserPointsHistoryGetFilterParameter.js +49 -0
  76. package/dist/models/ApiUserRecentReferralsGet200Response.d.ts +51 -0
  77. package/dist/models/ApiUserRecentReferralsGet200Response.js +54 -0
  78. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.d.ts +57 -0
  79. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObject.js +60 -0
  80. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.d.ts +56 -0
  81. package/dist/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.js +59 -0
  82. package/dist/models/ApiUserRecentReferralsGetFilterParameter.d.ts +46 -0
  83. package/dist/models/ApiUserRecentReferralsGetFilterParameter.js +47 -0
  84. package/dist/models/LoginRequest.d.ts +38 -0
  85. package/dist/models/LoginRequest.js +47 -0
  86. package/dist/models/LoginResponse.d.ts +45 -0
  87. package/dist/models/LoginResponse.js +52 -0
  88. package/dist/models/LoginResponseUser.d.ts +56 -0
  89. package/dist/models/LoginResponseUser.js +59 -0
  90. package/dist/models/RefreshTokenResponse.d.ts +38 -0
  91. package/dist/models/RefreshTokenResponse.js +47 -0
  92. package/dist/models/index.d.ts +30 -0
  93. package/dist/models/index.js +30 -0
  94. package/models/ApiAuthLoginPost200Response.ts +100 -0
  95. package/models/ApiAuthRefreshPost200Response.ts +100 -0
  96. package/models/ApiTennisEventTypesGet200Response.ts +100 -0
  97. package/models/ApiTennisEventTypesGet200ResponseResponseObjectInner.ts +75 -0
  98. package/models/ApiTournamentGetFilterParameter.ts +0 -8
  99. package/models/ApiUserAffiliateGet200Response.ts +100 -0
  100. package/models/ApiUserAffiliateGet200ResponseResponseObject.ts +119 -0
  101. package/models/ApiUserAffiliateGet200ResponseResponseObjectStatistics.ts +93 -0
  102. package/models/ApiUserApplyAffiliateCodePost200Response.ts +100 -0
  103. package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObject.ts +100 -0
  104. package/models/ApiUserApplyAffiliateCodePost200ResponseResponseObjectReferrer.ts +75 -0
  105. package/models/ApiUserApplyAffiliateCodePostRequest.ts +66 -0
  106. package/models/ApiUserPointRewardsGet200Response.ts +100 -0
  107. package/models/ApiUserPointRewardsGet200ResponseResponseObject.ts +120 -0
  108. package/models/ApiUserPointRewardsPut200Response.ts +100 -0
  109. package/models/ApiUserPointRewardsPut200ResponseResponseObject.ts +93 -0
  110. package/models/ApiUserPointRewardsPutRequest.ts +91 -0
  111. package/models/ApiUserPointsGet200Response.ts +100 -0
  112. package/models/ApiUserPointsGet200ResponseResponseObject.ts +102 -0
  113. package/models/ApiUserPointsHistoryGet200Response.ts +100 -0
  114. package/models/ApiUserPointsHistoryGet200ResponseResponseObject.ts +110 -0
  115. package/models/ApiUserPointsHistoryGet200ResponseResponseObjectItemsInner.ts +160 -0
  116. package/models/ApiUserPointsHistoryGetFilterParameter.ts +104 -0
  117. package/models/ApiUserRecentReferralsGet200Response.ts +100 -0
  118. package/models/ApiUserRecentReferralsGet200ResponseResponseObject.ts +110 -0
  119. package/models/ApiUserRecentReferralsGet200ResponseResponseObjectItemsInner.ts +102 -0
  120. package/models/ApiUserRecentReferralsGetFilterParameter.ts +96 -0
  121. package/models/LoginRequest.ts +75 -0
  122. package/models/LoginResponse.ts +92 -0
  123. package/models/LoginResponseUser.ts +102 -0
  124. package/models/RefreshTokenResponse.ts +75 -0
  125. package/models/index.ts +30 -0
  126. package/package.json +1 -1
@@ -0,0 +1,186 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ApiUserAffiliateGet200Response,
19
+ ApiUserApplyAffiliateCodePost200Response,
20
+ ApiUserApplyAffiliateCodePostRequest,
21
+ ApiUserRecentReferralsGet200Response,
22
+ ApiUserRecentReferralsGetFilterParameter,
23
+ } from '../models/index';
24
+ import {
25
+ ApiUserAffiliateGet200ResponseFromJSON,
26
+ ApiUserAffiliateGet200ResponseToJSON,
27
+ ApiUserApplyAffiliateCodePost200ResponseFromJSON,
28
+ ApiUserApplyAffiliateCodePost200ResponseToJSON,
29
+ ApiUserApplyAffiliateCodePostRequestFromJSON,
30
+ ApiUserApplyAffiliateCodePostRequestToJSON,
31
+ ApiUserRecentReferralsGet200ResponseFromJSON,
32
+ ApiUserRecentReferralsGet200ResponseToJSON,
33
+ ApiUserRecentReferralsGetFilterParameterFromJSON,
34
+ ApiUserRecentReferralsGetFilterParameterToJSON,
35
+ } from '../models/index';
36
+
37
+ export interface ApiUserApplyAffiliateCodePostOperationRequest {
38
+ apiUserApplyAffiliateCodePostRequest?: ApiUserApplyAffiliateCodePostRequest;
39
+ }
40
+
41
+ export interface ApiUserRecentReferralsGetRequest {
42
+ page?: number;
43
+ pageSize?: number;
44
+ sort?: string;
45
+ filter?: ApiUserRecentReferralsGetFilterParameter;
46
+ }
47
+
48
+ /**
49
+ *
50
+ */
51
+ export class UserAffiliateApi extends runtime.BaseAPI {
52
+
53
+ /**
54
+ * Get Self Affiliate Code and Stats
55
+ */
56
+ async apiUserAffiliateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAffiliateGet200Response>> {
57
+ const queryParameters: any = {};
58
+
59
+ const headerParameters: runtime.HTTPHeaders = {};
60
+
61
+ if (this.configuration && this.configuration.apiKey) {
62
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
63
+ }
64
+
65
+ if (this.configuration && this.configuration.accessToken) {
66
+ const token = this.configuration.accessToken;
67
+ const tokenString = await token("BearerAuth", []);
68
+
69
+ if (tokenString) {
70
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
+ }
72
+ }
73
+ const response = await this.request({
74
+ path: `/api/user/affiliate`,
75
+ method: 'GET',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ }, initOverrides);
79
+
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAffiliateGet200ResponseFromJSON(jsonValue));
81
+ }
82
+
83
+ /**
84
+ * Get Self Affiliate Code and Stats
85
+ */
86
+ async apiUserAffiliateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAffiliateGet200Response> {
87
+ const response = await this.apiUserAffiliateGetRaw(initOverrides);
88
+ return await response.value();
89
+ }
90
+
91
+ /**
92
+ * Apply Affiliate Code
93
+ */
94
+ async apiUserApplyAffiliateCodePostRaw(requestParameters: ApiUserApplyAffiliateCodePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserApplyAffiliateCodePost200Response>> {
95
+ const queryParameters: any = {};
96
+
97
+ const headerParameters: runtime.HTTPHeaders = {};
98
+
99
+ headerParameters['Content-Type'] = 'application/json';
100
+
101
+ if (this.configuration && this.configuration.apiKey) {
102
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
103
+ }
104
+
105
+ if (this.configuration && this.configuration.accessToken) {
106
+ const token = this.configuration.accessToken;
107
+ const tokenString = await token("BearerAuth", []);
108
+
109
+ if (tokenString) {
110
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
111
+ }
112
+ }
113
+ const response = await this.request({
114
+ path: `/api/user/apply-affiliate-code`,
115
+ method: 'POST',
116
+ headers: headerParameters,
117
+ query: queryParameters,
118
+ body: ApiUserApplyAffiliateCodePostRequestToJSON(requestParameters['apiUserApplyAffiliateCodePostRequest']),
119
+ }, initOverrides);
120
+
121
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserApplyAffiliateCodePost200ResponseFromJSON(jsonValue));
122
+ }
123
+
124
+ /**
125
+ * Apply Affiliate Code
126
+ */
127
+ async apiUserApplyAffiliateCodePost(requestParameters: ApiUserApplyAffiliateCodePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserApplyAffiliateCodePost200Response> {
128
+ const response = await this.apiUserApplyAffiliateCodePostRaw(requestParameters, initOverrides);
129
+ return await response.value();
130
+ }
131
+
132
+ /**
133
+ * Get Self Recent Referrals
134
+ */
135
+ async apiUserRecentReferralsGetRaw(requestParameters: ApiUserRecentReferralsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserRecentReferralsGet200Response>> {
136
+ const queryParameters: any = {};
137
+
138
+ if (requestParameters['page'] != null) {
139
+ queryParameters['page'] = requestParameters['page'];
140
+ }
141
+
142
+ if (requestParameters['pageSize'] != null) {
143
+ queryParameters['pageSize'] = requestParameters['pageSize'];
144
+ }
145
+
146
+ if (requestParameters['sort'] != null) {
147
+ queryParameters['sort'] = requestParameters['sort'];
148
+ }
149
+
150
+ if (requestParameters['filter'] != null) {
151
+ queryParameters['filter'] = requestParameters['filter'];
152
+ }
153
+
154
+ const headerParameters: runtime.HTTPHeaders = {};
155
+
156
+ if (this.configuration && this.configuration.apiKey) {
157
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
158
+ }
159
+
160
+ if (this.configuration && this.configuration.accessToken) {
161
+ const token = this.configuration.accessToken;
162
+ const tokenString = await token("BearerAuth", []);
163
+
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
166
+ }
167
+ }
168
+ const response = await this.request({
169
+ path: `/api/user/recent-referrals`,
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ }, initOverrides);
174
+
175
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserRecentReferralsGet200ResponseFromJSON(jsonValue));
176
+ }
177
+
178
+ /**
179
+ * Get Self Recent Referrals
180
+ */
181
+ async apiUserRecentReferralsGet(requestParameters: ApiUserRecentReferralsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserRecentReferralsGet200Response> {
182
+ const response = await this.apiUserRecentReferralsGetRaw(requestParameters, initOverrides);
183
+ return await response.value();
184
+ }
185
+
186
+ }
package/apis/UserApi.ts CHANGED
@@ -17,21 +17,17 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiUserGet200Response,
19
19
  ApiUserGetFilterParameter,
20
- ApiUserLeaderboardGet200Response,
21
20
  } from '../models/index';
22
21
  import {
23
22
  ApiUserGet200ResponseFromJSON,
24
23
  ApiUserGet200ResponseToJSON,
25
24
  ApiUserGetFilterParameterFromJSON,
26
25
  ApiUserGetFilterParameterToJSON,
27
- ApiUserLeaderboardGet200ResponseFromJSON,
28
- ApiUserLeaderboardGet200ResponseToJSON,
29
26
  } from '../models/index';
30
27
 
31
28
  export interface ApiUserGetRequest {
32
29
  page?: number;
33
30
  pageSize?: number;
34
- userId?: number | null;
35
31
  sort?: string;
36
32
  filter?: ApiUserGetFilterParameter;
37
33
  }
@@ -55,10 +51,6 @@ export class UserApi extends runtime.BaseAPI {
55
51
  queryParameters['pageSize'] = requestParameters['pageSize'];
56
52
  }
57
53
 
58
- if (requestParameters['userId'] != null) {
59
- queryParameters['user_id'] = requestParameters['userId'];
60
- }
61
-
62
54
  if (requestParameters['sort'] != null) {
63
55
  queryParameters['sort'] = requestParameters['sort'];
64
56
  }
@@ -99,42 +91,4 @@ export class UserApi extends runtime.BaseAPI {
99
91
  return await response.value();
100
92
  }
101
93
 
102
- /**
103
- * Get User Leaderboard
104
- */
105
- async apiUserLeaderboardGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserLeaderboardGet200Response>> {
106
- const queryParameters: any = {};
107
-
108
- const headerParameters: runtime.HTTPHeaders = {};
109
-
110
- if (this.configuration && this.configuration.apiKey) {
111
- headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
112
- }
113
-
114
- if (this.configuration && this.configuration.accessToken) {
115
- const token = this.configuration.accessToken;
116
- const tokenString = await token("BearerAuth", []);
117
-
118
- if (tokenString) {
119
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
120
- }
121
- }
122
- const response = await this.request({
123
- path: `/api/user/leaderboard`,
124
- method: 'GET',
125
- headers: headerParameters,
126
- query: queryParameters,
127
- }, initOverrides);
128
-
129
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserLeaderboardGet200ResponseFromJSON(jsonValue));
130
- }
131
-
132
- /**
133
- * Get User Leaderboard
134
- */
135
- async apiUserLeaderboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserLeaderboardGet200Response> {
136
- const response = await this.apiUserLeaderboardGetRaw(initOverrides);
137
- return await response.value();
138
- }
139
-
140
94
  }
@@ -0,0 +1,176 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ApiUserLeaderboardGet200Response,
19
+ ApiUserPointsGet200Response,
20
+ ApiUserPointsHistoryGet200Response,
21
+ ApiUserPointsHistoryGetFilterParameter,
22
+ } from '../models/index';
23
+ import {
24
+ ApiUserLeaderboardGet200ResponseFromJSON,
25
+ ApiUserLeaderboardGet200ResponseToJSON,
26
+ ApiUserPointsGet200ResponseFromJSON,
27
+ ApiUserPointsGet200ResponseToJSON,
28
+ ApiUserPointsHistoryGet200ResponseFromJSON,
29
+ ApiUserPointsHistoryGet200ResponseToJSON,
30
+ ApiUserPointsHistoryGetFilterParameterFromJSON,
31
+ ApiUserPointsHistoryGetFilterParameterToJSON,
32
+ } from '../models/index';
33
+
34
+ export interface ApiUserPointsHistoryGetRequest {
35
+ page?: number;
36
+ pageSize?: number;
37
+ sort?: string;
38
+ filter?: ApiUserPointsHistoryGetFilterParameter;
39
+ }
40
+
41
+ /**
42
+ *
43
+ */
44
+ export class UserPointsApi extends runtime.BaseAPI {
45
+
46
+ /**
47
+ * Get User Leaderboard
48
+ */
49
+ async apiUserLeaderboardGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserLeaderboardGet200Response>> {
50
+ const queryParameters: any = {};
51
+
52
+ const headerParameters: runtime.HTTPHeaders = {};
53
+
54
+ if (this.configuration && this.configuration.apiKey) {
55
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
56
+ }
57
+
58
+ if (this.configuration && this.configuration.accessToken) {
59
+ const token = this.configuration.accessToken;
60
+ const tokenString = await token("BearerAuth", []);
61
+
62
+ if (tokenString) {
63
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
64
+ }
65
+ }
66
+ const response = await this.request({
67
+ path: `/api/user/leaderboard`,
68
+ method: 'GET',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+
73
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserLeaderboardGet200ResponseFromJSON(jsonValue));
74
+ }
75
+
76
+ /**
77
+ * Get User Leaderboard
78
+ */
79
+ async apiUserLeaderboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserLeaderboardGet200Response> {
80
+ const response = await this.apiUserLeaderboardGetRaw(initOverrides);
81
+ return await response.value();
82
+ }
83
+
84
+ /**
85
+ * Get Self Points
86
+ */
87
+ async apiUserPointsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserPointsGet200Response>> {
88
+ const queryParameters: any = {};
89
+
90
+ const headerParameters: runtime.HTTPHeaders = {};
91
+
92
+ if (this.configuration && this.configuration.apiKey) {
93
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
94
+ }
95
+
96
+ if (this.configuration && this.configuration.accessToken) {
97
+ const token = this.configuration.accessToken;
98
+ const tokenString = await token("BearerAuth", []);
99
+
100
+ if (tokenString) {
101
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
102
+ }
103
+ }
104
+ const response = await this.request({
105
+ path: `/api/user/points`,
106
+ method: 'GET',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ }, initOverrides);
110
+
111
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserPointsGet200ResponseFromJSON(jsonValue));
112
+ }
113
+
114
+ /**
115
+ * Get Self Points
116
+ */
117
+ async apiUserPointsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointsGet200Response> {
118
+ const response = await this.apiUserPointsGetRaw(initOverrides);
119
+ return await response.value();
120
+ }
121
+
122
+ /**
123
+ * Get Self Point History
124
+ */
125
+ async apiUserPointsHistoryGetRaw(requestParameters: ApiUserPointsHistoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserPointsHistoryGet200Response>> {
126
+ const queryParameters: any = {};
127
+
128
+ if (requestParameters['page'] != null) {
129
+ queryParameters['page'] = requestParameters['page'];
130
+ }
131
+
132
+ if (requestParameters['pageSize'] != null) {
133
+ queryParameters['pageSize'] = requestParameters['pageSize'];
134
+ }
135
+
136
+ if (requestParameters['sort'] != null) {
137
+ queryParameters['sort'] = requestParameters['sort'];
138
+ }
139
+
140
+ if (requestParameters['filter'] != null) {
141
+ queryParameters['filter'] = requestParameters['filter'];
142
+ }
143
+
144
+ const headerParameters: runtime.HTTPHeaders = {};
145
+
146
+ if (this.configuration && this.configuration.apiKey) {
147
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
148
+ }
149
+
150
+ if (this.configuration && this.configuration.accessToken) {
151
+ const token = this.configuration.accessToken;
152
+ const tokenString = await token("BearerAuth", []);
153
+
154
+ if (tokenString) {
155
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
156
+ }
157
+ }
158
+ const response = await this.request({
159
+ path: `/api/user/points/history`,
160
+ method: 'GET',
161
+ headers: headerParameters,
162
+ query: queryParameters,
163
+ }, initOverrides);
164
+
165
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserPointsHistoryGet200ResponseFromJSON(jsonValue));
166
+ }
167
+
168
+ /**
169
+ * Get Self Point History
170
+ */
171
+ async apiUserPointsHistoryGet(requestParameters: ApiUserPointsHistoryGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointsHistoryGet200Response> {
172
+ const response = await this.apiUserPointsHistoryGetRaw(requestParameters, initOverrides);
173
+ return await response.value();
174
+ }
175
+
176
+ }
package/apis/index.ts CHANGED
@@ -1,9 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './AppConfigApi';
4
+ export * from './AuthenticationApi';
3
5
  export * from './HealthCheckApi';
4
6
  export * from './NewsApi';
5
7
  export * from './PadelApi';
6
8
  export * from './TennisApi';
7
9
  export * from './TournamentApi';
8
10
  export * from './UserApi';
11
+ export * from './UserAffiliateApi';
12
+ export * from './UserPointsApi';
9
13
  export * from './YoutubeApi';