@drxsuperapp/sdk 1.1.106 → 1.1.108

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.
@@ -2,6 +2,7 @@ apis/HealthCheckApi.ts
2
2
  apis/NewsApi.ts
3
3
  apis/PadelApi.ts
4
4
  apis/TournamentApi.ts
5
+ apis/UserApi.ts
5
6
  apis/YoutubeApi.ts
6
7
  apis/index.ts
7
8
  index.ts
@@ -67,9 +68,12 @@ models/ApiTournamentPadelPostRequest.ts
67
68
  models/ApiTournamentPadelPostRequestBody.ts
68
69
  models/ApiTournamentPadelPostRequestBodyPlayersInner.ts
69
70
  models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
71
+ models/ApiUserGet200Response.ts
72
+ models/ApiUserGetFilterParameter.ts
70
73
  models/ApiYoutubeDrxContentGet200Response.ts
71
74
  models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
72
75
  models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
73
76
  models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts
77
+ models/ApiYoutubeRefreshPost200Response.ts
74
78
  models/index.ts
75
79
  runtime.ts
@@ -0,0 +1,99 @@
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
+ ApiUserGet200Response,
19
+ ApiUserGetFilterParameter,
20
+ } from '../models/index';
21
+ import {
22
+ ApiUserGet200ResponseFromJSON,
23
+ ApiUserGet200ResponseToJSON,
24
+ ApiUserGetFilterParameterFromJSON,
25
+ ApiUserGetFilterParameterToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface ApiUserGetRequest {
29
+ page?: number;
30
+ pageSize?: number;
31
+ userId?: number | null;
32
+ sort?: string;
33
+ filter?: ApiUserGetFilterParameter;
34
+ }
35
+
36
+ /**
37
+ *
38
+ */
39
+ export class UserApi extends runtime.BaseAPI {
40
+
41
+ /**
42
+ * Get User List
43
+ */
44
+ async apiUserGetRaw(requestParameters: ApiUserGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>> {
45
+ const queryParameters: any = {};
46
+
47
+ if (requestParameters['page'] != null) {
48
+ queryParameters['page'] = requestParameters['page'];
49
+ }
50
+
51
+ if (requestParameters['pageSize'] != null) {
52
+ queryParameters['pageSize'] = requestParameters['pageSize'];
53
+ }
54
+
55
+ if (requestParameters['userId'] != null) {
56
+ queryParameters['user_id'] = requestParameters['userId'];
57
+ }
58
+
59
+ if (requestParameters['sort'] != null) {
60
+ queryParameters['sort'] = requestParameters['sort'];
61
+ }
62
+
63
+ if (requestParameters['filter'] != null) {
64
+ queryParameters['filter'] = requestParameters['filter'];
65
+ }
66
+
67
+ const headerParameters: runtime.HTTPHeaders = {};
68
+
69
+ if (this.configuration && this.configuration.apiKey) {
70
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
71
+ }
72
+
73
+ if (this.configuration && this.configuration.accessToken) {
74
+ const token = this.configuration.accessToken;
75
+ const tokenString = await token("BearerAuth", []);
76
+
77
+ if (tokenString) {
78
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
+ }
80
+ }
81
+ const response = await this.request({
82
+ path: `/api/user`,
83
+ method: 'GET',
84
+ headers: headerParameters,
85
+ query: queryParameters,
86
+ }, initOverrides);
87
+
88
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
89
+ }
90
+
91
+ /**
92
+ * Get User List
93
+ */
94
+ async apiUserGet(requestParameters: ApiUserGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response> {
95
+ const response = await this.apiUserGetRaw(requestParameters, initOverrides);
96
+ return await response.value();
97
+ }
98
+
99
+ }
@@ -16,10 +16,13 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ApiYoutubeDrxContentGet200Response,
19
+ ApiYoutubeRefreshPost200Response,
19
20
  } from '../models/index';
20
21
  import {
21
22
  ApiYoutubeDrxContentGet200ResponseFromJSON,
22
23
  ApiYoutubeDrxContentGet200ResponseToJSON,
24
+ ApiYoutubeRefreshPost200ResponseFromJSON,
25
+ ApiYoutubeRefreshPost200ResponseToJSON,
23
26
  } from '../models/index';
24
27
 
25
28
  /**
@@ -67,4 +70,44 @@ export class YoutubeApi extends runtime.BaseAPI {
67
70
  return await response.value();
68
71
  }
69
72
 
73
+ /**
74
+ * Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
75
+ * Refresh DRX Sportnet Content
76
+ */
77
+ async apiYoutubeRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiYoutubeRefreshPost200Response>> {
78
+ const queryParameters: any = {};
79
+
80
+ const headerParameters: runtime.HTTPHeaders = {};
81
+
82
+ if (this.configuration && this.configuration.apiKey) {
83
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
84
+ }
85
+
86
+ if (this.configuration && this.configuration.accessToken) {
87
+ const token = this.configuration.accessToken;
88
+ const tokenString = await token("BearerAuth", []);
89
+
90
+ if (tokenString) {
91
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
92
+ }
93
+ }
94
+ const response = await this.request({
95
+ path: `/api/youtube/refresh`,
96
+ method: 'POST',
97
+ headers: headerParameters,
98
+ query: queryParameters,
99
+ }, initOverrides);
100
+
101
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiYoutubeRefreshPost200ResponseFromJSON(jsonValue));
102
+ }
103
+
104
+ /**
105
+ * Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
106
+ * Refresh DRX Sportnet Content
107
+ */
108
+ async apiYoutubeRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiYoutubeRefreshPost200Response> {
109
+ const response = await this.apiYoutubeRefreshPostRaw(initOverrides);
110
+ return await response.value();
111
+ }
112
+
70
113
  }
package/apis/index.ts CHANGED
@@ -4,4 +4,5 @@ export * from './HealthCheckApi';
4
4
  export * from './NewsApi';
5
5
  export * from './PadelApi';
6
6
  export * from './TournamentApi';
7
+ export * from './UserApi';
7
8
  export * from './YoutubeApi';
package/deploy.log CHANGED
@@ -39,6 +39,7 @@
39
39
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_youtube_drx_content_get_200_response_responseObject_previousContent_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_youtube_drx_content_get_200_response_responseObject_previousContent_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_youtube_drx_content_get_200_response_responseObject_previousContent_inner=NewModel,ModelA=NewModelA in CLI).
40
40
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_youtube_drx_content_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_youtube_drx_content_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_youtube_drx_content_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
41
41
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_youtube_drx_content_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_youtube_drx_content_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_youtube_drx_content_get_200_response=NewModel,ModelA=NewModelA in CLI).
42
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_youtube_refresh_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_youtube_refresh_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_youtube_refresh_post_200_response=NewModel,ModelA=NewModelA in CLI).
42
43
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tournament_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
43
44
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_get_200_response_responseObject_items_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tournament_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
44
45
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tournament_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
@@ -70,6 +71,8 @@
70
71
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_padel_leaderboard__id__get_200_response_responseObject_inner_final_scores. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tournament_padel_leaderboard__id__get_200_response_responseObject_inner_final_scores=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_padel_leaderboard__id__get_200_response_responseObject_inner_final_scores=NewModel,ModelA=NewModelA in CLI).
71
72
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_padel_leaderboard__id__get_200_response_responseObject_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tournament_padel_leaderboard__id__get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_padel_leaderboard__id__get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI).
72
73
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_tournament_padel_leaderboard__id__get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_tournament_padel_leaderboard__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_tournament_padel_leaderboard__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
74
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
75
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_user_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_user_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_user_get_200_response=NewModel,ModelA=NewModelA in CLI).
73
76
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
74
77
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
75
78
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
@@ -134,10 +137,13 @@
134
137
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentPadelPostRequestBody.ts
135
138
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentPadelPostRequestBodyPlayersInner.ts
136
139
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiTournamentPadelPostRequestBodyTeamsInner.ts
140
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserGet200Response.ts
141
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiUserGetFilterParameter.ts
137
142
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200Response.ts
138
143
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObject.ts
139
144
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive.ts
140
145
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner.ts
146
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiYoutubeRefreshPost200Response.ts
141
147
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/healthCheck. Renamed to auto-generated operationId: apiHealthCheckGet
142
148
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news. Renamed to auto-generated operationId: apiNewsGet
143
149
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/{id}. Renamed to auto-generated operationId: apiNewsIdGet
@@ -147,6 +153,7 @@
147
153
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/seed. Renamed to auto-generated operationId: apiPadelSeedGet
148
154
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/sync. Renamed to auto-generated operationId: apiPadelSyncGet
149
155
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/youtube/drx-content. Renamed to auto-generated operationId: apiYoutubeDrxContentGet
156
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/youtube/refresh. Renamed to auto-generated operationId: apiYoutubeRefreshPost
150
157
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tournament. Renamed to auto-generated operationId: apiTournamentGet
151
158
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/tournament/padel. Renamed to auto-generated operationId: apiTournamentPadelPost
152
159
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tournament/padel/{id}. Renamed to auto-generated operationId: apiTournamentPadelIdGet
@@ -156,6 +163,7 @@
156
163
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tournament/game-types. Renamed to auto-generated operationId: apiTournamentGameTypesGet
157
164
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/tournament/padel/match-solo. Renamed to auto-generated operationId: apiTournamentPadelMatchSoloPut
158
165
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/tournament/padel/leaderboard/{id}. Renamed to auto-generated operationId: apiTournamentPadelLeaderboardIdGet
166
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/user. Renamed to auto-generated operationId: apiUserGet
159
167
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
160
168
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/HealthCheckApi.ts
161
169
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
@@ -165,6 +173,8 @@
165
173
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
166
174
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/TournamentApi.ts
167
175
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
176
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/UserApi.ts
177
+ [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
168
178
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/YoutubeApi.ts
169
179
  [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
170
180
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./index.ts
@@ -180,21 +190,21 @@
180
190
  # https://opencollective.com/openapi_generator/donate #
181
191
  ################################################################################
182
192
  ✅ SDK generated
183
- On branch master
184
- Your branch is up to date with 'origin/master'.
185
-
186
- nothing to commit, working tree clean
187
- Everything up-to-date
193
+ [master dcbab86] VPS: Generated API SDK
194
+ 4 files changed, 118 insertions(+)
195
+ create mode 100644 models/ApiYoutubeRefreshPost200Response.ts
196
+ To https://gitlab.com/drx-super/drx-sdk.git
197
+ 87b05e4..dcbab86 master -> master
188
198
  ✅ Changes committed and pushed
189
- v1.1.106
199
+ v1.1.108
190
200
  To https://gitlab.com/drx-super/drx-sdk.git
191
- d38d0bd..ed142ca master -> master
201
+ dcbab86..3ba32d6 master -> master
192
202
  ✅ Version bumped
193
203
 
194
- > @drxsuperapp/sdk@1.1.106 prepublishOnly
204
+ > @drxsuperapp/sdk@1.1.108 prepublishOnly
195
205
  > npm run build
196
206
 
197
207
 
198
- > @drxsuperapp/sdk@1.1.106 build
208
+ > @drxsuperapp/sdk@1.1.108 build
199
209
  > tsc
200
210
 
@@ -0,0 +1,33 @@
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 { ApiUserGet200Response, ApiUserGetFilterParameter } from '../models/index';
14
+ export interface ApiUserGetRequest {
15
+ page?: number;
16
+ pageSize?: number;
17
+ userId?: number | null;
18
+ sort?: string;
19
+ filter?: ApiUserGetFilterParameter;
20
+ }
21
+ /**
22
+ *
23
+ */
24
+ export declare class UserApi extends runtime.BaseAPI {
25
+ /**
26
+ * Get User List
27
+ */
28
+ apiUserGetRaw(requestParameters: ApiUserGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>>;
29
+ /**
30
+ * Get User List
31
+ */
32
+ apiUserGet(requestParameters?: ApiUserGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response>;
33
+ }
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import * as runtime from '../runtime';
15
+ import { ApiUserGet200ResponseFromJSON, } from '../models/index';
16
+ /**
17
+ *
18
+ */
19
+ export class UserApi extends runtime.BaseAPI {
20
+ /**
21
+ * Get User List
22
+ */
23
+ async apiUserGetRaw(requestParameters, initOverrides) {
24
+ const queryParameters = {};
25
+ if (requestParameters['page'] != null) {
26
+ queryParameters['page'] = requestParameters['page'];
27
+ }
28
+ if (requestParameters['pageSize'] != null) {
29
+ queryParameters['pageSize'] = requestParameters['pageSize'];
30
+ }
31
+ if (requestParameters['userId'] != null) {
32
+ queryParameters['user_id'] = requestParameters['userId'];
33
+ }
34
+ if (requestParameters['sort'] != null) {
35
+ queryParameters['sort'] = requestParameters['sort'];
36
+ }
37
+ if (requestParameters['filter'] != null) {
38
+ queryParameters['filter'] = requestParameters['filter'];
39
+ }
40
+ const headerParameters = {};
41
+ if (this.configuration && this.configuration.apiKey) {
42
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
43
+ }
44
+ if (this.configuration && this.configuration.accessToken) {
45
+ const token = this.configuration.accessToken;
46
+ const tokenString = await token("BearerAuth", []);
47
+ if (tokenString) {
48
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
49
+ }
50
+ }
51
+ const response = await this.request({
52
+ path: `/api/user`,
53
+ method: 'GET',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ }, initOverrides);
57
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
58
+ }
59
+ /**
60
+ * Get User List
61
+ */
62
+ async apiUserGet(requestParameters = {}, initOverrides) {
63
+ const response = await this.apiUserGetRaw(requestParameters, initOverrides);
64
+ return await response.value();
65
+ }
66
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiYoutubeDrxContentGet200Response } from '../models/index';
13
+ import type { ApiYoutubeDrxContentGet200Response, ApiYoutubeRefreshPost200Response } from '../models/index';
14
14
  /**
15
15
  *
16
16
  */
@@ -25,4 +25,14 @@ export declare class YoutubeApi extends runtime.BaseAPI {
25
25
  * Get DRX Sportnet Content
26
26
  */
27
27
  apiYoutubeDrxContentGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiYoutubeDrxContentGet200Response>;
28
+ /**
29
+ * Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
30
+ * Refresh DRX Sportnet Content
31
+ */
32
+ apiYoutubeRefreshPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiYoutubeRefreshPost200Response>>;
33
+ /**
34
+ * Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
35
+ * Refresh DRX Sportnet Content
36
+ */
37
+ apiYoutubeRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiYoutubeRefreshPost200Response>;
28
38
  }
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiYoutubeDrxContentGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiYoutubeDrxContentGet200ResponseFromJSON, ApiYoutubeRefreshPost200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
@@ -50,4 +50,37 @@ export class YoutubeApi extends runtime.BaseAPI {
50
50
  const response = await this.apiYoutubeDrxContentGetRaw(initOverrides);
51
51
  return await response.value();
52
52
  }
53
+ /**
54
+ * Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
55
+ * Refresh DRX Sportnet Content
56
+ */
57
+ async apiYoutubeRefreshPostRaw(initOverrides) {
58
+ const queryParameters = {};
59
+ const headerParameters = {};
60
+ if (this.configuration && this.configuration.apiKey) {
61
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
62
+ }
63
+ if (this.configuration && this.configuration.accessToken) {
64
+ const token = this.configuration.accessToken;
65
+ const tokenString = await token("BearerAuth", []);
66
+ if (tokenString) {
67
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
68
+ }
69
+ }
70
+ const response = await this.request({
71
+ path: `/api/youtube/refresh`,
72
+ method: 'POST',
73
+ headers: headerParameters,
74
+ query: queryParameters,
75
+ }, initOverrides);
76
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiYoutubeRefreshPost200ResponseFromJSON(jsonValue));
77
+ }
78
+ /**
79
+ * Manually trigger fetch and store of live stream and previous videos from DRX Sportnet YouTube channel
80
+ * Refresh DRX Sportnet Content
81
+ */
82
+ async apiYoutubeRefreshPost(initOverrides) {
83
+ const response = await this.apiYoutubeRefreshPostRaw(initOverrides);
84
+ return await response.value();
85
+ }
53
86
  }
@@ -2,4 +2,5 @@ export * from './HealthCheckApi';
2
2
  export * from './NewsApi';
3
3
  export * from './PadelApi';
4
4
  export * from './TournamentApi';
5
+ export * from './UserApi';
5
6
  export * from './YoutubeApi';
@@ -4,4 +4,5 @@ export * from './HealthCheckApi';
4
4
  export * from './NewsApi';
5
5
  export * from './PadelApi';
6
6
  export * from './TournamentApi';
7
+ export * from './UserApi';
7
8
  export * from './YoutubeApi';
@@ -0,0 +1,50 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiUserGet200Response
16
+ */
17
+ export interface ApiUserGet200Response {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof ApiUserGet200Response
22
+ */
23
+ success: boolean;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiUserGet200Response
28
+ */
29
+ message: string;
30
+ /**
31
+ *
32
+ * @type {object}
33
+ * @memberof ApiUserGet200Response
34
+ */
35
+ responseObject?: object;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ApiUserGet200Response
40
+ */
41
+ statusCode: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the ApiUserGet200Response interface.
45
+ */
46
+ export declare function instanceOfApiUserGet200Response(value: object): value is ApiUserGet200Response;
47
+ export declare function ApiUserGet200ResponseFromJSON(json: any): ApiUserGet200Response;
48
+ export declare function ApiUserGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserGet200Response;
49
+ export declare function ApiUserGet200ResponseToJSON(json: any): ApiUserGet200Response;
50
+ export declare function ApiUserGet200ResponseToJSONTyped(value?: ApiUserGet200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ApiUserGet200Response interface.
16
+ */
17
+ export function instanceOfApiUserGet200Response(value) {
18
+ if (!('success' in value) || value['success'] === undefined)
19
+ return false;
20
+ if (!('message' in value) || value['message'] === undefined)
21
+ return false;
22
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ApiUserGet200ResponseFromJSON(json) {
27
+ return ApiUserGet200ResponseFromJSONTyped(json, false);
28
+ }
29
+ export function ApiUserGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'success': json['success'],
35
+ 'message': json['message'],
36
+ 'responseObject': json['responseObject'] == null ? undefined : json['responseObject'],
37
+ 'statusCode': json['statusCode'],
38
+ };
39
+ }
40
+ export function ApiUserGet200ResponseToJSON(json) {
41
+ return ApiUserGet200ResponseToJSONTyped(json, false);
42
+ }
43
+ export function ApiUserGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'success': value['success'],
49
+ 'message': value['message'],
50
+ 'responseObject': value['responseObject'],
51
+ 'statusCode': value['statusCode'],
52
+ };
53
+ }
@@ -0,0 +1,77 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiPadelMatchesGetFilterParameterName } from './ApiPadelMatchesGetFilterParameterName';
13
+ import type { ApiPadelMatchesGetFilterParameterId } from './ApiPadelMatchesGetFilterParameterId';
14
+ import type { ApiPadelMatchesGetFilterParameterPlayedAt } from './ApiPadelMatchesGetFilterParameterPlayedAt';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ApiUserGetFilterParameter
19
+ */
20
+ export interface ApiUserGetFilterParameter {
21
+ /**
22
+ *
23
+ * @type {ApiPadelMatchesGetFilterParameterId}
24
+ * @memberof ApiUserGetFilterParameter
25
+ */
26
+ id?: ApiPadelMatchesGetFilterParameterId;
27
+ /**
28
+ *
29
+ * @type {ApiPadelMatchesGetFilterParameterName}
30
+ * @memberof ApiUserGetFilterParameter
31
+ */
32
+ fullname?: ApiPadelMatchesGetFilterParameterName;
33
+ /**
34
+ *
35
+ * @type {ApiPadelMatchesGetFilterParameterName}
36
+ * @memberof ApiUserGetFilterParameter
37
+ */
38
+ email?: ApiPadelMatchesGetFilterParameterName;
39
+ /**
40
+ *
41
+ * @type {ApiPadelMatchesGetFilterParameterName}
42
+ * @memberof ApiUserGetFilterParameter
43
+ */
44
+ phoneNumber?: ApiPadelMatchesGetFilterParameterName;
45
+ /**
46
+ *
47
+ * @type {ApiPadelMatchesGetFilterParameterName}
48
+ * @memberof ApiUserGetFilterParameter
49
+ */
50
+ role?: ApiPadelMatchesGetFilterParameterName;
51
+ /**
52
+ *
53
+ * @type {ApiPadelMatchesGetFilterParameterId}
54
+ * @memberof ApiUserGetFilterParameter
55
+ */
56
+ status?: ApiPadelMatchesGetFilterParameterId;
57
+ /**
58
+ *
59
+ * @type {ApiPadelMatchesGetFilterParameterName}
60
+ * @memberof ApiUserGetFilterParameter
61
+ */
62
+ gender?: ApiPadelMatchesGetFilterParameterName;
63
+ /**
64
+ *
65
+ * @type {ApiPadelMatchesGetFilterParameterPlayedAt}
66
+ * @memberof ApiUserGetFilterParameter
67
+ */
68
+ createdAt?: ApiPadelMatchesGetFilterParameterPlayedAt;
69
+ }
70
+ /**
71
+ * Check if a given object implements the ApiUserGetFilterParameter interface.
72
+ */
73
+ export declare function instanceOfApiUserGetFilterParameter(value: object): value is ApiUserGetFilterParameter;
74
+ export declare function ApiUserGetFilterParameterFromJSON(json: any): ApiUserGetFilterParameter;
75
+ export declare function ApiUserGetFilterParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserGetFilterParameter;
76
+ export declare function ApiUserGetFilterParameterToJSON(json: any): ApiUserGetFilterParameter;
77
+ export declare function ApiUserGetFilterParameterToJSONTyped(value?: ApiUserGetFilterParameter | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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 { ApiPadelMatchesGetFilterParameterNameFromJSON, ApiPadelMatchesGetFilterParameterNameToJSON, } from './ApiPadelMatchesGetFilterParameterName';
15
+ import { ApiPadelMatchesGetFilterParameterIdFromJSON, ApiPadelMatchesGetFilterParameterIdToJSON, } from './ApiPadelMatchesGetFilterParameterId';
16
+ import { ApiPadelMatchesGetFilterParameterPlayedAtFromJSON, ApiPadelMatchesGetFilterParameterPlayedAtToJSON, } from './ApiPadelMatchesGetFilterParameterPlayedAt';
17
+ /**
18
+ * Check if a given object implements the ApiUserGetFilterParameter interface.
19
+ */
20
+ export function instanceOfApiUserGetFilterParameter(value) {
21
+ return true;
22
+ }
23
+ export function ApiUserGetFilterParameterFromJSON(json) {
24
+ return ApiUserGetFilterParameterFromJSONTyped(json, false);
25
+ }
26
+ export function ApiUserGetFilterParameterFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'id': json['id'] == null ? undefined : ApiPadelMatchesGetFilterParameterIdFromJSON(json['id']),
32
+ 'fullname': json['fullname'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['fullname']),
33
+ 'email': json['email'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['email']),
34
+ 'phoneNumber': json['phone_number'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['phone_number']),
35
+ 'role': json['role'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['role']),
36
+ 'status': json['status'] == null ? undefined : ApiPadelMatchesGetFilterParameterIdFromJSON(json['status']),
37
+ 'gender': json['gender'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['gender']),
38
+ 'createdAt': json['created_at'] == null ? undefined : ApiPadelMatchesGetFilterParameterPlayedAtFromJSON(json['created_at']),
39
+ };
40
+ }
41
+ export function ApiUserGetFilterParameterToJSON(json) {
42
+ return ApiUserGetFilterParameterToJSONTyped(json, false);
43
+ }
44
+ export function ApiUserGetFilterParameterToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'id': ApiPadelMatchesGetFilterParameterIdToJSON(value['id']),
50
+ 'fullname': ApiPadelMatchesGetFilterParameterNameToJSON(value['fullname']),
51
+ 'email': ApiPadelMatchesGetFilterParameterNameToJSON(value['email']),
52
+ 'phone_number': ApiPadelMatchesGetFilterParameterNameToJSON(value['phoneNumber']),
53
+ 'role': ApiPadelMatchesGetFilterParameterNameToJSON(value['role']),
54
+ 'status': ApiPadelMatchesGetFilterParameterIdToJSON(value['status']),
55
+ 'gender': ApiPadelMatchesGetFilterParameterNameToJSON(value['gender']),
56
+ 'created_at': ApiPadelMatchesGetFilterParameterPlayedAtToJSON(value['createdAt']),
57
+ };
58
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiYoutubeRefreshPost200Response
16
+ */
17
+ export interface ApiYoutubeRefreshPost200Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiYoutubeRefreshPost200Response
22
+ */
23
+ message?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiYoutubeRefreshPost200Response
28
+ */
29
+ timestamp?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ApiYoutubeRefreshPost200Response interface.
33
+ */
34
+ export declare function instanceOfApiYoutubeRefreshPost200Response(value: object): value is ApiYoutubeRefreshPost200Response;
35
+ export declare function ApiYoutubeRefreshPost200ResponseFromJSON(json: any): ApiYoutubeRefreshPost200Response;
36
+ export declare function ApiYoutubeRefreshPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiYoutubeRefreshPost200Response;
37
+ export declare function ApiYoutubeRefreshPost200ResponseToJSON(json: any): ApiYoutubeRefreshPost200Response;
38
+ export declare function ApiYoutubeRefreshPost200ResponseToJSONTyped(value?: ApiYoutubeRefreshPost200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ApiYoutubeRefreshPost200Response interface.
16
+ */
17
+ export function instanceOfApiYoutubeRefreshPost200Response(value) {
18
+ return true;
19
+ }
20
+ export function ApiYoutubeRefreshPost200ResponseFromJSON(json) {
21
+ return ApiYoutubeRefreshPost200ResponseFromJSONTyped(json, false);
22
+ }
23
+ export function ApiYoutubeRefreshPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'message': json['message'] == null ? undefined : json['message'],
29
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
30
+ };
31
+ }
32
+ export function ApiYoutubeRefreshPost200ResponseToJSON(json) {
33
+ return ApiYoutubeRefreshPost200ResponseToJSONTyped(json, false);
34
+ }
35
+ export function ApiYoutubeRefreshPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'message': value['message'],
41
+ 'timestamp': value['timestamp'],
42
+ };
43
+ }
@@ -60,7 +60,10 @@ export * from './ApiTournamentPadelPostRequest';
60
60
  export * from './ApiTournamentPadelPostRequestBody';
61
61
  export * from './ApiTournamentPadelPostRequestBodyPlayersInner';
62
62
  export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
63
+ export * from './ApiUserGet200Response';
64
+ export * from './ApiUserGetFilterParameter';
63
65
  export * from './ApiYoutubeDrxContentGet200Response';
64
66
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
65
67
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
66
68
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
69
+ export * from './ApiYoutubeRefreshPost200Response';
@@ -62,7 +62,10 @@ export * from './ApiTournamentPadelPostRequest';
62
62
  export * from './ApiTournamentPadelPostRequestBody';
63
63
  export * from './ApiTournamentPadelPostRequestBodyPlayersInner';
64
64
  export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
65
+ export * from './ApiUserGet200Response';
66
+ export * from './ApiUserGetFilterParameter';
65
67
  export * from './ApiYoutubeDrxContentGet200Response';
66
68
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
67
69
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
68
70
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
71
+ export * from './ApiYoutubeRefreshPost200Response';
@@ -0,0 +1,92 @@
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 ApiUserGet200Response
20
+ */
21
+ export interface ApiUserGet200Response {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof ApiUserGet200Response
26
+ */
27
+ success: boolean;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiUserGet200Response
32
+ */
33
+ message: string;
34
+ /**
35
+ *
36
+ * @type {object}
37
+ * @memberof ApiUserGet200Response
38
+ */
39
+ responseObject?: object;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ApiUserGet200Response
44
+ */
45
+ statusCode: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ApiUserGet200Response interface.
50
+ */
51
+ export function instanceOfApiUserGet200Response(value: object): value is ApiUserGet200Response {
52
+ if (!('success' in value) || value['success'] === undefined) return false;
53
+ if (!('message' in value) || value['message'] === undefined) return false;
54
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function ApiUserGet200ResponseFromJSON(json: any): ApiUserGet200Response {
59
+ return ApiUserGet200ResponseFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function ApiUserGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserGet200Response {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'success': json['success'],
69
+ 'message': json['message'],
70
+ 'responseObject': json['responseObject'] == null ? undefined : json['responseObject'],
71
+ 'statusCode': json['statusCode'],
72
+ };
73
+ }
74
+
75
+ export function ApiUserGet200ResponseToJSON(json: any): ApiUserGet200Response {
76
+ return ApiUserGet200ResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function ApiUserGet200ResponseToJSONTyped(value?: ApiUserGet200Response | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'success': value['success'],
87
+ 'message': value['message'],
88
+ 'responseObject': value['responseObject'],
89
+ 'statusCode': value['statusCode'],
90
+ };
91
+ }
92
+
@@ -0,0 +1,143 @@
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 { ApiPadelMatchesGetFilterParameterName } from './ApiPadelMatchesGetFilterParameterName';
17
+ import {
18
+ ApiPadelMatchesGetFilterParameterNameFromJSON,
19
+ ApiPadelMatchesGetFilterParameterNameFromJSONTyped,
20
+ ApiPadelMatchesGetFilterParameterNameToJSON,
21
+ ApiPadelMatchesGetFilterParameterNameToJSONTyped,
22
+ } from './ApiPadelMatchesGetFilterParameterName';
23
+ import type { ApiPadelMatchesGetFilterParameterId } from './ApiPadelMatchesGetFilterParameterId';
24
+ import {
25
+ ApiPadelMatchesGetFilterParameterIdFromJSON,
26
+ ApiPadelMatchesGetFilterParameterIdFromJSONTyped,
27
+ ApiPadelMatchesGetFilterParameterIdToJSON,
28
+ ApiPadelMatchesGetFilterParameterIdToJSONTyped,
29
+ } from './ApiPadelMatchesGetFilterParameterId';
30
+ import type { ApiPadelMatchesGetFilterParameterPlayedAt } from './ApiPadelMatchesGetFilterParameterPlayedAt';
31
+ import {
32
+ ApiPadelMatchesGetFilterParameterPlayedAtFromJSON,
33
+ ApiPadelMatchesGetFilterParameterPlayedAtFromJSONTyped,
34
+ ApiPadelMatchesGetFilterParameterPlayedAtToJSON,
35
+ ApiPadelMatchesGetFilterParameterPlayedAtToJSONTyped,
36
+ } from './ApiPadelMatchesGetFilterParameterPlayedAt';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ApiUserGetFilterParameter
42
+ */
43
+ export interface ApiUserGetFilterParameter {
44
+ /**
45
+ *
46
+ * @type {ApiPadelMatchesGetFilterParameterId}
47
+ * @memberof ApiUserGetFilterParameter
48
+ */
49
+ id?: ApiPadelMatchesGetFilterParameterId;
50
+ /**
51
+ *
52
+ * @type {ApiPadelMatchesGetFilterParameterName}
53
+ * @memberof ApiUserGetFilterParameter
54
+ */
55
+ fullname?: ApiPadelMatchesGetFilterParameterName;
56
+ /**
57
+ *
58
+ * @type {ApiPadelMatchesGetFilterParameterName}
59
+ * @memberof ApiUserGetFilterParameter
60
+ */
61
+ email?: ApiPadelMatchesGetFilterParameterName;
62
+ /**
63
+ *
64
+ * @type {ApiPadelMatchesGetFilterParameterName}
65
+ * @memberof ApiUserGetFilterParameter
66
+ */
67
+ phoneNumber?: ApiPadelMatchesGetFilterParameterName;
68
+ /**
69
+ *
70
+ * @type {ApiPadelMatchesGetFilterParameterName}
71
+ * @memberof ApiUserGetFilterParameter
72
+ */
73
+ role?: ApiPadelMatchesGetFilterParameterName;
74
+ /**
75
+ *
76
+ * @type {ApiPadelMatchesGetFilterParameterId}
77
+ * @memberof ApiUserGetFilterParameter
78
+ */
79
+ status?: ApiPadelMatchesGetFilterParameterId;
80
+ /**
81
+ *
82
+ * @type {ApiPadelMatchesGetFilterParameterName}
83
+ * @memberof ApiUserGetFilterParameter
84
+ */
85
+ gender?: ApiPadelMatchesGetFilterParameterName;
86
+ /**
87
+ *
88
+ * @type {ApiPadelMatchesGetFilterParameterPlayedAt}
89
+ * @memberof ApiUserGetFilterParameter
90
+ */
91
+ createdAt?: ApiPadelMatchesGetFilterParameterPlayedAt;
92
+ }
93
+
94
+ /**
95
+ * Check if a given object implements the ApiUserGetFilterParameter interface.
96
+ */
97
+ export function instanceOfApiUserGetFilterParameter(value: object): value is ApiUserGetFilterParameter {
98
+ return true;
99
+ }
100
+
101
+ export function ApiUserGetFilterParameterFromJSON(json: any): ApiUserGetFilterParameter {
102
+ return ApiUserGetFilterParameterFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function ApiUserGetFilterParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUserGetFilterParameter {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'id': json['id'] == null ? undefined : ApiPadelMatchesGetFilterParameterIdFromJSON(json['id']),
112
+ 'fullname': json['fullname'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['fullname']),
113
+ 'email': json['email'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['email']),
114
+ 'phoneNumber': json['phone_number'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['phone_number']),
115
+ 'role': json['role'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['role']),
116
+ 'status': json['status'] == null ? undefined : ApiPadelMatchesGetFilterParameterIdFromJSON(json['status']),
117
+ 'gender': json['gender'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['gender']),
118
+ 'createdAt': json['created_at'] == null ? undefined : ApiPadelMatchesGetFilterParameterPlayedAtFromJSON(json['created_at']),
119
+ };
120
+ }
121
+
122
+ export function ApiUserGetFilterParameterToJSON(json: any): ApiUserGetFilterParameter {
123
+ return ApiUserGetFilterParameterToJSONTyped(json, false);
124
+ }
125
+
126
+ export function ApiUserGetFilterParameterToJSONTyped(value?: ApiUserGetFilterParameter | null, ignoreDiscriminator: boolean = false): any {
127
+ if (value == null) {
128
+ return value;
129
+ }
130
+
131
+ return {
132
+
133
+ 'id': ApiPadelMatchesGetFilterParameterIdToJSON(value['id']),
134
+ 'fullname': ApiPadelMatchesGetFilterParameterNameToJSON(value['fullname']),
135
+ 'email': ApiPadelMatchesGetFilterParameterNameToJSON(value['email']),
136
+ 'phone_number': ApiPadelMatchesGetFilterParameterNameToJSON(value['phoneNumber']),
137
+ 'role': ApiPadelMatchesGetFilterParameterNameToJSON(value['role']),
138
+ 'status': ApiPadelMatchesGetFilterParameterIdToJSON(value['status']),
139
+ 'gender': ApiPadelMatchesGetFilterParameterNameToJSON(value['gender']),
140
+ 'created_at': ApiPadelMatchesGetFilterParameterPlayedAtToJSON(value['createdAt']),
141
+ };
142
+ }
143
+
@@ -0,0 +1,73 @@
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 ApiYoutubeRefreshPost200Response
20
+ */
21
+ export interface ApiYoutubeRefreshPost200Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiYoutubeRefreshPost200Response
26
+ */
27
+ message?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiYoutubeRefreshPost200Response
32
+ */
33
+ timestamp?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiYoutubeRefreshPost200Response interface.
38
+ */
39
+ export function instanceOfApiYoutubeRefreshPost200Response(value: object): value is ApiYoutubeRefreshPost200Response {
40
+ return true;
41
+ }
42
+
43
+ export function ApiYoutubeRefreshPost200ResponseFromJSON(json: any): ApiYoutubeRefreshPost200Response {
44
+ return ApiYoutubeRefreshPost200ResponseFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ApiYoutubeRefreshPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiYoutubeRefreshPost200Response {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'message': json['message'] == null ? undefined : json['message'],
54
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
55
+ };
56
+ }
57
+
58
+ export function ApiYoutubeRefreshPost200ResponseToJSON(json: any): ApiYoutubeRefreshPost200Response {
59
+ return ApiYoutubeRefreshPost200ResponseToJSONTyped(json, false);
60
+ }
61
+
62
+ export function ApiYoutubeRefreshPost200ResponseToJSONTyped(value?: ApiYoutubeRefreshPost200Response | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'message': value['message'],
70
+ 'timestamp': value['timestamp'],
71
+ };
72
+ }
73
+
package/models/index.ts CHANGED
@@ -62,7 +62,10 @@ export * from './ApiTournamentPadelPostRequest';
62
62
  export * from './ApiTournamentPadelPostRequestBody';
63
63
  export * from './ApiTournamentPadelPostRequestBodyPlayersInner';
64
64
  export * from './ApiTournamentPadelPostRequestBodyTeamsInner';
65
+ export * from './ApiUserGet200Response';
66
+ export * from './ApiUserGetFilterParameter';
65
67
  export * from './ApiYoutubeDrxContentGet200Response';
66
68
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObject';
67
69
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectCurrentLive';
68
70
  export * from './ApiYoutubeDrxContentGet200ResponseResponseObjectPreviousContentInner';
71
+ export * from './ApiYoutubeRefreshPost200Response';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.106",
3
+ "version": "1.1.108",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {