@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
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import * as runtime from '../runtime';
15
+ import { ApiUserPointRewardsGet200ResponseFromJSON, ApiUserPointRewardsPut200ResponseFromJSON, ApiUserPointRewardsPutRequestToJSON, } from '../models/index';
16
+ /**
17
+ *
18
+ */
19
+ export class AppConfigApi extends runtime.BaseAPI {
20
+ /**
21
+ * Get Point Rewards Configuration
22
+ */
23
+ async apiUserPointRewardsGetRaw(initOverrides) {
24
+ const queryParameters = {};
25
+ const headerParameters = {};
26
+ if (this.configuration && this.configuration.apiKey) {
27
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
28
+ }
29
+ if (this.configuration && this.configuration.accessToken) {
30
+ const token = this.configuration.accessToken;
31
+ const tokenString = await token("BearerAuth", []);
32
+ if (tokenString) {
33
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
34
+ }
35
+ }
36
+ const response = await this.request({
37
+ path: `/api/user/point-rewards`,
38
+ method: 'GET',
39
+ headers: headerParameters,
40
+ query: queryParameters,
41
+ }, initOverrides);
42
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserPointRewardsGet200ResponseFromJSON(jsonValue));
43
+ }
44
+ /**
45
+ * Get Point Rewards Configuration
46
+ */
47
+ async apiUserPointRewardsGet(initOverrides) {
48
+ const response = await this.apiUserPointRewardsGetRaw(initOverrides);
49
+ return await response.value();
50
+ }
51
+ /**
52
+ * Update Point Reward Configuration
53
+ */
54
+ async apiUserPointRewardsPutRaw(requestParameters, initOverrides) {
55
+ const queryParameters = {};
56
+ const headerParameters = {};
57
+ headerParameters['Content-Type'] = 'application/json';
58
+ if (this.configuration && this.configuration.apiKey) {
59
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
60
+ }
61
+ if (this.configuration && this.configuration.accessToken) {
62
+ const token = this.configuration.accessToken;
63
+ const tokenString = await token("BearerAuth", []);
64
+ if (tokenString) {
65
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
66
+ }
67
+ }
68
+ const response = await this.request({
69
+ path: `/api/user/point-rewards`,
70
+ method: 'PUT',
71
+ headers: headerParameters,
72
+ query: queryParameters,
73
+ body: ApiUserPointRewardsPutRequestToJSON(requestParameters['apiUserPointRewardsPutRequest']),
74
+ }, initOverrides);
75
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserPointRewardsPut200ResponseFromJSON(jsonValue));
76
+ }
77
+ /**
78
+ * Update Point Reward Configuration
79
+ */
80
+ async apiUserPointRewardsPut(requestParameters = {}, initOverrides) {
81
+ const response = await this.apiUserPointRewardsPutRaw(requestParameters, initOverrides);
82
+ return await response.value();
83
+ }
84
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { ApiAuthLoginPost200Response, ApiAuthRefreshPost200Response, ApiUserGet200Response, LoginRequest } from '../models/index';
14
+ export interface ApiAuthLoginPostRequest {
15
+ loginRequest?: LoginRequest;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class AuthenticationApi extends runtime.BaseAPI {
21
+ /**
22
+ * Authenticate user with email and password
23
+ * User Login
24
+ */
25
+ apiAuthLoginPostRaw(requestParameters: ApiAuthLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthLoginPost200Response>>;
26
+ /**
27
+ * Authenticate user with email and password
28
+ * User Login
29
+ */
30
+ apiAuthLoginPost(requestParameters?: ApiAuthLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response>;
31
+ /**
32
+ * Generate new access and refresh tokens using Authorization header
33
+ * Refresh Access Token
34
+ */
35
+ apiAuthRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRefreshPost200Response>>;
36
+ /**
37
+ * Generate new access and refresh tokens using Authorization header
38
+ * Refresh Access Token
39
+ */
40
+ apiAuthRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRefreshPost200Response>;
41
+ /**
42
+ * Validate the current access token and return user information
43
+ * Validate Token
44
+ */
45
+ apiAuthValidateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>>;
46
+ /**
47
+ * Validate the current access token and return user information
48
+ * Validate Token
49
+ */
50
+ apiAuthValidateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response>;
51
+ }
@@ -0,0 +1,121 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import * as runtime from '../runtime';
15
+ import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiUserGet200ResponseFromJSON, LoginRequestToJSON, } from '../models/index';
16
+ /**
17
+ *
18
+ */
19
+ export class AuthenticationApi extends runtime.BaseAPI {
20
+ /**
21
+ * Authenticate user with email and password
22
+ * User Login
23
+ */
24
+ async apiAuthLoginPostRaw(requestParameters, initOverrides) {
25
+ const queryParameters = {};
26
+ const headerParameters = {};
27
+ headerParameters['Content-Type'] = 'application/json';
28
+ if (this.configuration && this.configuration.apiKey) {
29
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
30
+ }
31
+ if (this.configuration && this.configuration.accessToken) {
32
+ const token = this.configuration.accessToken;
33
+ const tokenString = await token("BearerAuth", []);
34
+ if (tokenString) {
35
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
36
+ }
37
+ }
38
+ const response = await this.request({
39
+ path: `/api/auth/login`,
40
+ method: 'POST',
41
+ headers: headerParameters,
42
+ query: queryParameters,
43
+ body: LoginRequestToJSON(requestParameters['loginRequest']),
44
+ }, initOverrides);
45
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
46
+ }
47
+ /**
48
+ * Authenticate user with email and password
49
+ * User Login
50
+ */
51
+ async apiAuthLoginPost(requestParameters = {}, initOverrides) {
52
+ const response = await this.apiAuthLoginPostRaw(requestParameters, initOverrides);
53
+ return await response.value();
54
+ }
55
+ /**
56
+ * Generate new access and refresh tokens using Authorization header
57
+ * Refresh Access Token
58
+ */
59
+ async apiAuthRefreshPostRaw(initOverrides) {
60
+ const queryParameters = {};
61
+ const headerParameters = {};
62
+ if (this.configuration && this.configuration.apiKey) {
63
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
64
+ }
65
+ if (this.configuration && this.configuration.accessToken) {
66
+ const token = this.configuration.accessToken;
67
+ const tokenString = await token("BearerAuth", []);
68
+ if (tokenString) {
69
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
70
+ }
71
+ }
72
+ const response = await this.request({
73
+ path: `/api/auth/refresh`,
74
+ method: 'POST',
75
+ headers: headerParameters,
76
+ query: queryParameters,
77
+ }, initOverrides);
78
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRefreshPost200ResponseFromJSON(jsonValue));
79
+ }
80
+ /**
81
+ * Generate new access and refresh tokens using Authorization header
82
+ * Refresh Access Token
83
+ */
84
+ async apiAuthRefreshPost(initOverrides) {
85
+ const response = await this.apiAuthRefreshPostRaw(initOverrides);
86
+ return await response.value();
87
+ }
88
+ /**
89
+ * Validate the current access token and return user information
90
+ * Validate Token
91
+ */
92
+ async apiAuthValidateGetRaw(initOverrides) {
93
+ const queryParameters = {};
94
+ const headerParameters = {};
95
+ if (this.configuration && this.configuration.apiKey) {
96
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
97
+ }
98
+ if (this.configuration && this.configuration.accessToken) {
99
+ const token = this.configuration.accessToken;
100
+ const tokenString = await token("BearerAuth", []);
101
+ if (tokenString) {
102
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
103
+ }
104
+ }
105
+ const response = await this.request({
106
+ path: `/api/auth/validate`,
107
+ method: 'GET',
108
+ headers: headerParameters,
109
+ query: queryParameters,
110
+ }, initOverrides);
111
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
112
+ }
113
+ /**
114
+ * Validate the current access token and return user information
115
+ * Validate Token
116
+ */
117
+ async apiAuthValidateGet(initOverrides) {
118
+ const response = await this.apiAuthValidateGetRaw(initOverrides);
119
+ return await response.value();
120
+ }
121
+ }
@@ -14,7 +14,6 @@ import type { ApiPadelMatchesGet200Response, ApiPadelMatchesGetFilterParameter,
14
14
  export interface ApiPadelMatchesGetRequest {
15
15
  page?: number;
16
16
  pageSize?: number;
17
- userId?: number | null;
18
17
  sort?: string;
19
18
  filter?: ApiPadelMatchesGetFilterParameter;
20
19
  }
@@ -28,9 +28,6 @@ export class PadelApi extends runtime.BaseAPI {
28
28
  if (requestParameters['pageSize'] != null) {
29
29
  queryParameters['pageSize'] = requestParameters['pageSize'];
30
30
  }
31
- if (requestParameters['userId'] != null) {
32
- queryParameters['user_id'] = requestParameters['userId'];
33
- }
34
31
  if (requestParameters['sort'] != null) {
35
32
  queryParameters['sort'] = requestParameters['sort'];
36
33
  }
@@ -14,7 +14,6 @@ import type { ApiPadelSeedGet200Response, ApiTennisEventTypesGet200Response, Api
14
14
  export interface ApiTennisMatchesGetRequest {
15
15
  page?: number;
16
16
  pageSize?: number;
17
- userId?: number | null;
18
17
  sort?: string;
19
18
  filter?: ApiTennisMatchesGetFilterParameter;
20
19
  }
@@ -24,7 +23,6 @@ export interface ApiTennisMatchesIdGetRequest {
24
23
  export interface ApiTennisPlayersGetRequest {
25
24
  page?: number;
26
25
  pageSize?: number;
27
- userId?: number | null;
28
26
  sort?: string;
29
27
  filter?: ApiTennisPlayersGetFilterParameter;
30
28
  }
@@ -34,7 +32,6 @@ export interface ApiTennisPlayersIdGetRequest {
34
32
  export interface ApiTennisTournamentsGetRequest {
35
33
  page?: number;
36
34
  pageSize?: number;
37
- userId?: number | null;
38
35
  sort?: string;
39
36
  filter?: ApiTennisTournamentsGetFilterParameter;
40
37
  }
@@ -59,9 +59,6 @@ export class TennisApi extends runtime.BaseAPI {
59
59
  if (requestParameters['pageSize'] != null) {
60
60
  queryParameters['pageSize'] = requestParameters['pageSize'];
61
61
  }
62
- if (requestParameters['userId'] != null) {
63
- queryParameters['user_id'] = requestParameters['userId'];
64
- }
65
62
  if (requestParameters['sort'] != null) {
66
63
  queryParameters['sort'] = requestParameters['sort'];
67
64
  }
@@ -139,9 +136,6 @@ export class TennisApi extends runtime.BaseAPI {
139
136
  if (requestParameters['pageSize'] != null) {
140
137
  queryParameters['pageSize'] = requestParameters['pageSize'];
141
138
  }
142
- if (requestParameters['userId'] != null) {
143
- queryParameters['user_id'] = requestParameters['userId'];
144
- }
145
139
  if (requestParameters['sort'] != null) {
146
140
  queryParameters['sort'] = requestParameters['sort'];
147
141
  }
@@ -281,9 +275,6 @@ export class TennisApi extends runtime.BaseAPI {
281
275
  if (requestParameters['pageSize'] != null) {
282
276
  queryParameters['pageSize'] = requestParameters['pageSize'];
283
277
  }
284
- if (requestParameters['userId'] != null) {
285
- queryParameters['user_id'] = requestParameters['userId'];
286
- }
287
278
  if (requestParameters['sort'] != null) {
288
279
  queryParameters['sort'] = requestParameters['sort'];
289
280
  }
@@ -14,7 +14,6 @@ import type { ApiTournamentGameTypesGet200Response, ApiTournamentGet200Response,
14
14
  export interface ApiTournamentGetRequest {
15
15
  page?: number;
16
16
  pageSize?: number;
17
- userId?: number | null;
18
17
  sort?: string;
19
18
  filter?: ApiTournamentGetFilterParameter;
20
19
  }
@@ -59,9 +59,6 @@ export class TournamentApi extends runtime.BaseAPI {
59
59
  if (requestParameters['pageSize'] != null) {
60
60
  queryParameters['pageSize'] = requestParameters['pageSize'];
61
61
  }
62
- if (requestParameters['userId'] != null) {
63
- queryParameters['user_id'] = requestParameters['userId'];
64
- }
65
62
  if (requestParameters['sort'] != null) {
66
63
  queryParameters['sort'] = requestParameters['sort'];
67
64
  }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { ApiUserAffiliateGet200Response, ApiUserApplyAffiliateCodePost200Response, ApiUserApplyAffiliateCodePostRequest, ApiUserRecentReferralsGet200Response, ApiUserRecentReferralsGetFilterParameter } from '../models/index';
14
+ export interface ApiUserApplyAffiliateCodePostOperationRequest {
15
+ apiUserApplyAffiliateCodePostRequest?: ApiUserApplyAffiliateCodePostRequest;
16
+ }
17
+ export interface ApiUserRecentReferralsGetRequest {
18
+ page?: number;
19
+ pageSize?: number;
20
+ sort?: string;
21
+ filter?: ApiUserRecentReferralsGetFilterParameter;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class UserAffiliateApi extends runtime.BaseAPI {
27
+ /**
28
+ * Get Self Affiliate Code and Stats
29
+ */
30
+ apiUserAffiliateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserAffiliateGet200Response>>;
31
+ /**
32
+ * Get Self Affiliate Code and Stats
33
+ */
34
+ apiUserAffiliateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserAffiliateGet200Response>;
35
+ /**
36
+ * Apply Affiliate Code
37
+ */
38
+ apiUserApplyAffiliateCodePostRaw(requestParameters: ApiUserApplyAffiliateCodePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserApplyAffiliateCodePost200Response>>;
39
+ /**
40
+ * Apply Affiliate Code
41
+ */
42
+ apiUserApplyAffiliateCodePost(requestParameters?: ApiUserApplyAffiliateCodePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserApplyAffiliateCodePost200Response>;
43
+ /**
44
+ * Get Self Recent Referrals
45
+ */
46
+ apiUserRecentReferralsGetRaw(requestParameters: ApiUserRecentReferralsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserRecentReferralsGet200Response>>;
47
+ /**
48
+ * Get Self Recent Referrals
49
+ */
50
+ apiUserRecentReferralsGet(requestParameters?: ApiUserRecentReferralsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserRecentReferralsGet200Response>;
51
+ }
@@ -0,0 +1,127 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import * as runtime from '../runtime';
15
+ import { ApiUserAffiliateGet200ResponseFromJSON, ApiUserApplyAffiliateCodePost200ResponseFromJSON, ApiUserApplyAffiliateCodePostRequestToJSON, ApiUserRecentReferralsGet200ResponseFromJSON, } from '../models/index';
16
+ /**
17
+ *
18
+ */
19
+ export class UserAffiliateApi extends runtime.BaseAPI {
20
+ /**
21
+ * Get Self Affiliate Code and Stats
22
+ */
23
+ async apiUserAffiliateGetRaw(initOverrides) {
24
+ const queryParameters = {};
25
+ const headerParameters = {};
26
+ if (this.configuration && this.configuration.apiKey) {
27
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
28
+ }
29
+ if (this.configuration && this.configuration.accessToken) {
30
+ const token = this.configuration.accessToken;
31
+ const tokenString = await token("BearerAuth", []);
32
+ if (tokenString) {
33
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
34
+ }
35
+ }
36
+ const response = await this.request({
37
+ path: `/api/user/affiliate`,
38
+ method: 'GET',
39
+ headers: headerParameters,
40
+ query: queryParameters,
41
+ }, initOverrides);
42
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserAffiliateGet200ResponseFromJSON(jsonValue));
43
+ }
44
+ /**
45
+ * Get Self Affiliate Code and Stats
46
+ */
47
+ async apiUserAffiliateGet(initOverrides) {
48
+ const response = await this.apiUserAffiliateGetRaw(initOverrides);
49
+ return await response.value();
50
+ }
51
+ /**
52
+ * Apply Affiliate Code
53
+ */
54
+ async apiUserApplyAffiliateCodePostRaw(requestParameters, initOverrides) {
55
+ const queryParameters = {};
56
+ const headerParameters = {};
57
+ headerParameters['Content-Type'] = 'application/json';
58
+ if (this.configuration && this.configuration.apiKey) {
59
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
60
+ }
61
+ if (this.configuration && this.configuration.accessToken) {
62
+ const token = this.configuration.accessToken;
63
+ const tokenString = await token("BearerAuth", []);
64
+ if (tokenString) {
65
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
66
+ }
67
+ }
68
+ const response = await this.request({
69
+ path: `/api/user/apply-affiliate-code`,
70
+ method: 'POST',
71
+ headers: headerParameters,
72
+ query: queryParameters,
73
+ body: ApiUserApplyAffiliateCodePostRequestToJSON(requestParameters['apiUserApplyAffiliateCodePostRequest']),
74
+ }, initOverrides);
75
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserApplyAffiliateCodePost200ResponseFromJSON(jsonValue));
76
+ }
77
+ /**
78
+ * Apply Affiliate Code
79
+ */
80
+ async apiUserApplyAffiliateCodePost(requestParameters = {}, initOverrides) {
81
+ const response = await this.apiUserApplyAffiliateCodePostRaw(requestParameters, initOverrides);
82
+ return await response.value();
83
+ }
84
+ /**
85
+ * Get Self Recent Referrals
86
+ */
87
+ async apiUserRecentReferralsGetRaw(requestParameters, initOverrides) {
88
+ const queryParameters = {};
89
+ if (requestParameters['page'] != null) {
90
+ queryParameters['page'] = requestParameters['page'];
91
+ }
92
+ if (requestParameters['pageSize'] != null) {
93
+ queryParameters['pageSize'] = requestParameters['pageSize'];
94
+ }
95
+ if (requestParameters['sort'] != null) {
96
+ queryParameters['sort'] = requestParameters['sort'];
97
+ }
98
+ if (requestParameters['filter'] != null) {
99
+ queryParameters['filter'] = requestParameters['filter'];
100
+ }
101
+ const headerParameters = {};
102
+ if (this.configuration && this.configuration.apiKey) {
103
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
104
+ }
105
+ if (this.configuration && this.configuration.accessToken) {
106
+ const token = this.configuration.accessToken;
107
+ const tokenString = await token("BearerAuth", []);
108
+ if (tokenString) {
109
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
110
+ }
111
+ }
112
+ const response = await this.request({
113
+ path: `/api/user/recent-referrals`,
114
+ method: 'GET',
115
+ headers: headerParameters,
116
+ query: queryParameters,
117
+ }, initOverrides);
118
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserRecentReferralsGet200ResponseFromJSON(jsonValue));
119
+ }
120
+ /**
121
+ * Get Self Recent Referrals
122
+ */
123
+ async apiUserRecentReferralsGet(requestParameters = {}, initOverrides) {
124
+ const response = await this.apiUserRecentReferralsGetRaw(requestParameters, initOverrides);
125
+ return await response.value();
126
+ }
127
+ }
@@ -10,11 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiUserGet200Response, ApiUserGetFilterParameter, ApiUserLeaderboardGet200Response } from '../models/index';
13
+ import type { ApiUserGet200Response, ApiUserGetFilterParameter } from '../models/index';
14
14
  export interface ApiUserGetRequest {
15
15
  page?: number;
16
16
  pageSize?: number;
17
- userId?: number | null;
18
17
  sort?: string;
19
18
  filter?: ApiUserGetFilterParameter;
20
19
  }
@@ -30,12 +29,4 @@ export declare class UserApi extends runtime.BaseAPI {
30
29
  * Get User List
31
30
  */
32
31
  apiUserGet(requestParameters?: ApiUserGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response>;
33
- /**
34
- * Get User Leaderboard
35
- */
36
- apiUserLeaderboardGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserLeaderboardGet200Response>>;
37
- /**
38
- * Get User Leaderboard
39
- */
40
- apiUserLeaderboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserLeaderboardGet200Response>;
41
32
  }
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiUserGet200ResponseFromJSON, ApiUserLeaderboardGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiUserGet200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
@@ -28,9 +28,6 @@ export class UserApi extends runtime.BaseAPI {
28
28
  if (requestParameters['pageSize'] != null) {
29
29
  queryParameters['pageSize'] = requestParameters['pageSize'];
30
30
  }
31
- if (requestParameters['userId'] != null) {
32
- queryParameters['user_id'] = requestParameters['userId'];
33
- }
34
31
  if (requestParameters['sort'] != null) {
35
32
  queryParameters['sort'] = requestParameters['sort'];
36
33
  }
@@ -63,35 +60,4 @@ export class UserApi extends runtime.BaseAPI {
63
60
  const response = await this.apiUserGetRaw(requestParameters, initOverrides);
64
61
  return await response.value();
65
62
  }
66
- /**
67
- * Get User Leaderboard
68
- */
69
- async apiUserLeaderboardGetRaw(initOverrides) {
70
- const queryParameters = {};
71
- const headerParameters = {};
72
- if (this.configuration && this.configuration.apiKey) {
73
- headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
74
- }
75
- if (this.configuration && this.configuration.accessToken) {
76
- const token = this.configuration.accessToken;
77
- const tokenString = await token("BearerAuth", []);
78
- if (tokenString) {
79
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
80
- }
81
- }
82
- const response = await this.request({
83
- path: `/api/user/leaderboard`,
84
- method: 'GET',
85
- headers: headerParameters,
86
- query: queryParameters,
87
- }, initOverrides);
88
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserLeaderboardGet200ResponseFromJSON(jsonValue));
89
- }
90
- /**
91
- * Get User Leaderboard
92
- */
93
- async apiUserLeaderboardGet(initOverrides) {
94
- const response = await this.apiUserLeaderboardGetRaw(initOverrides);
95
- return await response.value();
96
- }
97
63
  }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { ApiUserLeaderboardGet200Response, ApiUserPointsGet200Response, ApiUserPointsHistoryGet200Response, ApiUserPointsHistoryGetFilterParameter } from '../models/index';
14
+ export interface ApiUserPointsHistoryGetRequest {
15
+ page?: number;
16
+ pageSize?: number;
17
+ sort?: string;
18
+ filter?: ApiUserPointsHistoryGetFilterParameter;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class UserPointsApi extends runtime.BaseAPI {
24
+ /**
25
+ * Get User Leaderboard
26
+ */
27
+ apiUserLeaderboardGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserLeaderboardGet200Response>>;
28
+ /**
29
+ * Get User Leaderboard
30
+ */
31
+ apiUserLeaderboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserLeaderboardGet200Response>;
32
+ /**
33
+ * Get Self Points
34
+ */
35
+ apiUserPointsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserPointsGet200Response>>;
36
+ /**
37
+ * Get Self Points
38
+ */
39
+ apiUserPointsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointsGet200Response>;
40
+ /**
41
+ * Get Self Point History
42
+ */
43
+ apiUserPointsHistoryGetRaw(requestParameters: ApiUserPointsHistoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserPointsHistoryGet200Response>>;
44
+ /**
45
+ * Get Self Point History
46
+ */
47
+ apiUserPointsHistoryGet(requestParameters?: ApiUserPointsHistoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserPointsHistoryGet200Response>;
48
+ }