@drxsuperapp/sdk 1.1.35 → 1.1.42

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 (117) hide show
  1. package/.idea/drx-sdk.iml +12 -0
  2. package/.idea/modules.xml +8 -0
  3. package/.idea/vcs.xml +6 -0
  4. package/.openapi-generator/FILES +39 -30
  5. package/.openapi-generator-ignore +23 -23
  6. package/api.ts +1491 -1491
  7. package/apis/ExampleApi.ts +60 -0
  8. package/apis/HealthCheckApi.ts +12 -0
  9. package/apis/NewsApi.ts +66 -3
  10. package/apis/PadelApi.ts +75 -140
  11. package/base.ts +86 -86
  12. package/common.ts +150 -150
  13. package/configuration.ts +115 -115
  14. package/dist/apis/ExampleApi.js +50 -0
  15. package/dist/apis/HealthCheckApi.js +10 -0
  16. package/dist/apis/NewsApi.d.ts +8 -2
  17. package/dist/apis/NewsApi.js +52 -3
  18. package/dist/apis/PadelApi.d.ts +13 -47
  19. package/dist/apis/PadelApi.js +49 -112
  20. package/dist/models/ApiNewsCategoriesListGet200Response.d.ts +51 -0
  21. package/dist/models/ApiNewsCategoriesListGet200Response.js +54 -0
  22. package/dist/models/ApiNewsCategoriesListGet200ResponseResponseObject.d.ts +39 -0
  23. package/dist/models/ApiNewsCategoriesListGet200ResponseResponseObject.js +48 -0
  24. package/dist/models/ApiNewsCategoriesListGet200ResponseResponseObjectCategoriesInner.d.ts +50 -0
  25. package/dist/models/ApiNewsCategoriesListGet200ResponseResponseObjectCategoriesInner.js +53 -0
  26. package/dist/models/ApiPadelCronPointByPointGet200Response.d.ts +32 -0
  27. package/dist/models/ApiPadelCronPointByPointGet200Response.js +41 -0
  28. package/dist/models/ApiPadelMatchesGet200Response.d.ts +51 -0
  29. package/dist/models/ApiPadelMatchesGet200Response.js +54 -0
  30. package/dist/models/ApiPadelMatchesGet200ResponseResponseObject.d.ts +57 -0
  31. package/dist/models/ApiPadelMatchesGet200ResponseResponseObject.js +60 -0
  32. package/dist/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInner.d.ts +118 -0
  33. package/dist/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInner.js +101 -0
  34. package/dist/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers.d.ts +39 -0
  35. package/dist/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers.js +48 -0
  36. package/dist/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersTeam1Inner.d.ts +62 -0
  37. package/dist/models/{ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.js → ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersTeam1Inner.js} +8 -8
  38. package/dist/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerScoreInner.d.ts +38 -0
  39. package/dist/models/{ApiPadelMatchesGet200ResponseInnerStatsMatchValue.js → ApiPadelMatchesGet200ResponseResponseObjectItemsInnerScoreInner.js} +8 -8
  40. package/dist/models/ApiPadelMatchesGetFilterParameter.d.ts +63 -0
  41. package/dist/models/ApiPadelMatchesGetFilterParameter.js +52 -0
  42. package/dist/models/ApiPadelMatchesGetFilterParameterId.d.ts +50 -0
  43. package/dist/models/ApiPadelMatchesGetFilterParameterId.js +47 -0
  44. package/dist/models/ApiPadelMatchesGetFilterParameterIdAnyOf.d.ts +50 -0
  45. package/dist/models/ApiPadelMatchesGetFilterParameterIdAnyOf.js +47 -0
  46. package/dist/models/ApiPadelMatchesIdGet200Response.d.ts +144 -0
  47. package/dist/models/{ApiPadelMatchesGet200ResponseInner.js → ApiPadelMatchesIdGet200Response.js} +20 -20
  48. package/dist/models/ApiPadelMatchesIdGet200ResponseSets.d.ts +52 -0
  49. package/dist/models/ApiPadelMatchesIdGet200ResponseSets.js +57 -0
  50. package/dist/models/ApiPadelMatchesIdGet200ResponseSetsSetsInner.d.ts +39 -0
  51. package/dist/models/ApiPadelMatchesIdGet200ResponseSetsSetsInner.js +48 -0
  52. package/dist/models/ApiPadelMatchesIdGet200ResponseSetsSetsInnerGamesInner.d.ts +44 -0
  53. package/dist/models/{ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner.js → ApiPadelMatchesIdGet200ResponseSetsSetsInnerGamesInner.js} +8 -8
  54. package/dist/models/ApiPadelMatchesIdGet200ResponseStats.d.ts +78 -0
  55. package/dist/models/ApiPadelMatchesIdGet200ResponseStats.js +68 -0
  56. package/dist/models/ApiPadelMatchesIdGet200ResponseStatsConnections.d.ts +32 -0
  57. package/dist/models/ApiPadelMatchesIdGet200ResponseStatsConnections.js +43 -0
  58. package/dist/models/ApiPadelMatchesIdGet200ResponseStatsMatchValue.d.ts +38 -0
  59. package/dist/models/{ApiPadelMatchesGet200ResponseInnerScoreInner.js → ApiPadelMatchesIdGet200ResponseStatsMatchValue.js} +8 -8
  60. package/dist/models/index.d.ts +20 -11
  61. package/dist/models/index.js +20 -11
  62. package/ecosystem.config.js +13 -13
  63. package/git_push.sh +57 -57
  64. package/hooks.json +31 -26
  65. package/models/ApiNewsCategoriesListGet200Response.ts +100 -0
  66. package/models/ApiNewsCategoriesListGet200ResponseResponseObject.ts +83 -0
  67. package/models/ApiNewsCategoriesListGet200ResponseResponseObjectCategoriesInner.ts +92 -0
  68. package/models/ApiPadelCronPointByPointGet200Response.ts +65 -0
  69. package/models/ApiPadelMatchesGet200Response.ts +100 -0
  70. package/models/ApiPadelMatchesGet200ResponseResponseObject.ts +110 -0
  71. package/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInner.ts +207 -0
  72. package/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers.ts +83 -0
  73. package/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersTeam1Inner.ts +111 -0
  74. package/models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerScoreInner.ts +75 -0
  75. package/models/ApiPadelMatchesGetFilterParameter.ts +113 -0
  76. package/models/ApiPadelMatchesGetFilterParameterId.ts +97 -0
  77. package/models/ApiPadelMatchesGetFilterParameterIdAnyOf.ts +89 -0
  78. package/models/{ApiPadelMatchesGet200ResponseInner.ts → ApiPadelMatchesIdGet200Response.ts} +69 -69
  79. package/models/ApiPadelMatchesIdGet200ResponseSets.ts +108 -0
  80. package/models/ApiPadelMatchesIdGet200ResponseSetsSetsInner.ts +83 -0
  81. package/models/ApiPadelMatchesIdGet200ResponseSetsSetsInnerGamesInner.ts +84 -0
  82. package/models/ApiPadelMatchesIdGet200ResponseStats.ts +134 -0
  83. package/models/ApiPadelMatchesIdGet200ResponseStatsConnections.ts +66 -0
  84. package/models/ApiPadelMatchesIdGet200ResponseStatsMatchValue.ts +75 -0
  85. package/models/index.ts +20 -11
  86. package/openapitools.json +7 -7
  87. package/package.json +30 -30
  88. package/tsconfig.json +17 -17
  89. package/workflow.sh +10 -3
  90. package/deploy.log +0 -116
  91. package/dist/models/ApiPadelCronSeasonsGet200Response.d.ts +0 -32
  92. package/dist/models/ApiPadelCronSeasonsGet200Response.js +0 -41
  93. package/dist/models/ApiPadelMatchesGet200ResponseInner.d.ts +0 -144
  94. package/dist/models/ApiPadelMatchesGet200ResponseInnerPlayers.d.ts +0 -39
  95. package/dist/models/ApiPadelMatchesGet200ResponseInnerPlayers.js +0 -48
  96. package/dist/models/ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.d.ts +0 -62
  97. package/dist/models/ApiPadelMatchesGet200ResponseInnerScoreInner.d.ts +0 -38
  98. package/dist/models/ApiPadelMatchesGet200ResponseInnerSets.d.ts +0 -52
  99. package/dist/models/ApiPadelMatchesGet200ResponseInnerSets.js +0 -57
  100. package/dist/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInner.d.ts +0 -39
  101. package/dist/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInner.js +0 -48
  102. package/dist/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner.d.ts +0 -44
  103. package/dist/models/ApiPadelMatchesGet200ResponseInnerStats.d.ts +0 -78
  104. package/dist/models/ApiPadelMatchesGet200ResponseInnerStats.js +0 -68
  105. package/dist/models/ApiPadelMatchesGet200ResponseInnerStatsConnections.d.ts +0 -32
  106. package/dist/models/ApiPadelMatchesGet200ResponseInnerStatsConnections.js +0 -43
  107. package/dist/models/ApiPadelMatchesGet200ResponseInnerStatsMatchValue.d.ts +0 -38
  108. package/models/ApiPadelCronSeasonsGet200Response.ts +0 -65
  109. package/models/ApiPadelMatchesGet200ResponseInnerPlayers.ts +0 -83
  110. package/models/ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.ts +0 -111
  111. package/models/ApiPadelMatchesGet200ResponseInnerScoreInner.ts +0 -75
  112. package/models/ApiPadelMatchesGet200ResponseInnerSets.ts +0 -108
  113. package/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInner.ts +0 -83
  114. package/models/ApiPadelMatchesGet200ResponseInnerSetsSetsInnerGamesInner.ts +0 -84
  115. package/models/ApiPadelMatchesGet200ResponseInnerStats.ts +0 -134
  116. package/models/ApiPadelMatchesGet200ResponseInnerStatsConnections.ts +0 -66
  117. package/models/ApiPadelMatchesGet200ResponseInnerStatsMatchValue.ts +0 -75
package/configuration.ts CHANGED
@@ -1,115 +1,115 @@
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
- export interface ConfigurationParameters {
17
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
- username?: string;
19
- password?: string;
20
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
- basePath?: string;
22
- serverIndex?: number;
23
- baseOptions?: any;
24
- formDataCtor?: new () => any;
25
- }
26
-
27
- export class Configuration {
28
- /**
29
- * parameter for apiKey security
30
- * @param name security name
31
- * @memberof Configuration
32
- */
33
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
34
- /**
35
- * parameter for basic security
36
- *
37
- * @type {string}
38
- * @memberof Configuration
39
- */
40
- username?: string;
41
- /**
42
- * parameter for basic security
43
- *
44
- * @type {string}
45
- * @memberof Configuration
46
- */
47
- password?: string;
48
- /**
49
- * parameter for oauth2 security
50
- * @param name security name
51
- * @param scopes oauth2 scope
52
- * @memberof Configuration
53
- */
54
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
55
- /**
56
- * override base path
57
- *
58
- * @type {string}
59
- * @memberof Configuration
60
- */
61
- basePath?: string;
62
- /**
63
- * override server index
64
- *
65
- * @type {number}
66
- * @memberof Configuration
67
- */
68
- serverIndex?: number;
69
- /**
70
- * base options for axios calls
71
- *
72
- * @type {any}
73
- * @memberof Configuration
74
- */
75
- baseOptions?: any;
76
- /**
77
- * The FormData constructor that will be used to create multipart form data
78
- * requests. You can inject this here so that execution environments that
79
- * do not support the FormData class can still run the generated client.
80
- *
81
- * @type {new () => FormData}
82
- */
83
- formDataCtor?: new () => any;
84
-
85
- constructor(param: ConfigurationParameters = {}) {
86
- this.apiKey = param.apiKey;
87
- this.username = param.username;
88
- this.password = param.password;
89
- this.accessToken = param.accessToken;
90
- this.basePath = param.basePath;
91
- this.serverIndex = param.serverIndex;
92
- this.baseOptions = {
93
- ...param.baseOptions,
94
- headers: {
95
- ...param.baseOptions?.headers,
96
- },
97
- };
98
- this.formDataCtor = param.formDataCtor;
99
- }
100
-
101
- /**
102
- * Check if the given MIME is a JSON MIME.
103
- * JSON MIME examples:
104
- * application/json
105
- * application/json; charset=UTF8
106
- * APPLICATION/JSON
107
- * application/vnd.company+json
108
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
109
- * @return True if the given MIME is JSON, false otherwise.
110
- */
111
- public isJsonMime(mime: string): boolean {
112
- const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
113
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
114
- }
115
- }
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
+ export interface ConfigurationParameters {
17
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
+ username?: string;
19
+ password?: string;
20
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
+ basePath?: string;
22
+ serverIndex?: number;
23
+ baseOptions?: any;
24
+ formDataCtor?: new () => any;
25
+ }
26
+
27
+ export class Configuration {
28
+ /**
29
+ * parameter for apiKey security
30
+ * @param name security name
31
+ * @memberof Configuration
32
+ */
33
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
34
+ /**
35
+ * parameter for basic security
36
+ *
37
+ * @type {string}
38
+ * @memberof Configuration
39
+ */
40
+ username?: string;
41
+ /**
42
+ * parameter for basic security
43
+ *
44
+ * @type {string}
45
+ * @memberof Configuration
46
+ */
47
+ password?: string;
48
+ /**
49
+ * parameter for oauth2 security
50
+ * @param name security name
51
+ * @param scopes oauth2 scope
52
+ * @memberof Configuration
53
+ */
54
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
55
+ /**
56
+ * override base path
57
+ *
58
+ * @type {string}
59
+ * @memberof Configuration
60
+ */
61
+ basePath?: string;
62
+ /**
63
+ * override server index
64
+ *
65
+ * @type {number}
66
+ * @memberof Configuration
67
+ */
68
+ serverIndex?: number;
69
+ /**
70
+ * base options for axios calls
71
+ *
72
+ * @type {any}
73
+ * @memberof Configuration
74
+ */
75
+ baseOptions?: any;
76
+ /**
77
+ * The FormData constructor that will be used to create multipart form data
78
+ * requests. You can inject this here so that execution environments that
79
+ * do not support the FormData class can still run the generated client.
80
+ *
81
+ * @type {new () => FormData}
82
+ */
83
+ formDataCtor?: new () => any;
84
+
85
+ constructor(param: ConfigurationParameters = {}) {
86
+ this.apiKey = param.apiKey;
87
+ this.username = param.username;
88
+ this.password = param.password;
89
+ this.accessToken = param.accessToken;
90
+ this.basePath = param.basePath;
91
+ this.serverIndex = param.serverIndex;
92
+ this.baseOptions = {
93
+ ...param.baseOptions,
94
+ headers: {
95
+ ...param.baseOptions?.headers,
96
+ },
97
+ };
98
+ this.formDataCtor = param.formDataCtor;
99
+ }
100
+
101
+ /**
102
+ * Check if the given MIME is a JSON MIME.
103
+ * JSON MIME examples:
104
+ * application/json
105
+ * application/json; charset=UTF8
106
+ * APPLICATION/JSON
107
+ * application/vnd.company+json
108
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
109
+ * @return True if the given MIME is JSON, false otherwise.
110
+ */
111
+ public isJsonMime(mime: string): boolean {
112
+ const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
113
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
114
+ }
115
+ }
@@ -28,6 +28,16 @@ export class ExampleApi extends runtime.BaseAPI {
28
28
  queryParameters['limit'] = requestParameters['limit'];
29
29
  }
30
30
  const headerParameters = {};
31
+ if (this.configuration && this.configuration.apiKey) {
32
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
33
+ }
34
+ if (this.configuration && this.configuration.accessToken) {
35
+ const token = this.configuration.accessToken;
36
+ const tokenString = await token("BearerAuth", []);
37
+ if (tokenString) {
38
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
39
+ }
40
+ }
31
41
  const response = await this.request({
32
42
  path: `/api/examples`,
33
43
  method: 'GET',
@@ -50,6 +60,16 @@ export class ExampleApi extends runtime.BaseAPI {
50
60
  }
51
61
  const queryParameters = {};
52
62
  const headerParameters = {};
63
+ if (this.configuration && this.configuration.apiKey) {
64
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
65
+ }
66
+ if (this.configuration && this.configuration.accessToken) {
67
+ const token = this.configuration.accessToken;
68
+ const tokenString = await token("BearerAuth", []);
69
+ if (tokenString) {
70
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
71
+ }
72
+ }
53
73
  const response = await this.request({
54
74
  path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
55
75
  method: 'DELETE',
@@ -71,6 +91,16 @@ export class ExampleApi extends runtime.BaseAPI {
71
91
  }
72
92
  const queryParameters = {};
73
93
  const headerParameters = {};
94
+ if (this.configuration && this.configuration.apiKey) {
95
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
96
+ }
97
+ if (this.configuration && this.configuration.accessToken) {
98
+ const token = this.configuration.accessToken;
99
+ const tokenString = await token("BearerAuth", []);
100
+ if (tokenString) {
101
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
102
+ }
103
+ }
74
104
  const response = await this.request({
75
105
  path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
76
106
  method: 'GET',
@@ -94,6 +124,16 @@ export class ExampleApi extends runtime.BaseAPI {
94
124
  const queryParameters = {};
95
125
  const headerParameters = {};
96
126
  headerParameters['Content-Type'] = 'application/json';
127
+ if (this.configuration && this.configuration.apiKey) {
128
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
129
+ }
130
+ if (this.configuration && this.configuration.accessToken) {
131
+ const token = this.configuration.accessToken;
132
+ const tokenString = await token("BearerAuth", []);
133
+ if (tokenString) {
134
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
135
+ }
136
+ }
97
137
  const response = await this.request({
98
138
  path: `/api/examples/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
99
139
  method: 'PUT',
@@ -115,6 +155,16 @@ export class ExampleApi extends runtime.BaseAPI {
115
155
  const queryParameters = {};
116
156
  const headerParameters = {};
117
157
  headerParameters['Content-Type'] = 'application/json';
158
+ if (this.configuration && this.configuration.apiKey) {
159
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
160
+ }
161
+ if (this.configuration && this.configuration.accessToken) {
162
+ const token = this.configuration.accessToken;
163
+ const tokenString = await token("BearerAuth", []);
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
166
+ }
167
+ }
118
168
  const response = await this.request({
119
169
  path: `/api/examples`,
120
170
  method: 'POST',
@@ -22,6 +22,16 @@ export class HealthCheckApi extends runtime.BaseAPI {
22
22
  async apiHealthCheckGetRaw(initOverrides) {
23
23
  const queryParameters = {};
24
24
  const headerParameters = {};
25
+ if (this.configuration && this.configuration.apiKey) {
26
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
27
+ }
28
+ if (this.configuration && this.configuration.accessToken) {
29
+ const token = this.configuration.accessToken;
30
+ const tokenString = await token("BearerAuth", []);
31
+ if (tokenString) {
32
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
33
+ }
34
+ }
25
35
  const response = await this.request({
26
36
  path: `/api/healthCheck`,
27
37
  method: 'GET',
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiNewsGet200Response, ApiNewsIdGet200Response } from '../models/index';
13
+ import type { ApiNewsCategoriesListGet200Response, ApiNewsGet200Response, ApiNewsIdGet200Response } from '../models/index';
14
14
  export interface ApiNewsGetRequest {
15
15
  page?: string;
16
16
  perPage?: string;
17
- leagueDescription?: string;
17
+ sportIds?: string;
18
18
  searchTerm?: string;
19
19
  }
20
20
  export interface ApiNewsIdGetRequest {
@@ -24,6 +24,12 @@ export interface ApiNewsIdGetRequest {
24
24
  *
25
25
  */
26
26
  export declare class NewsApi extends runtime.BaseAPI {
27
+ /**
28
+ */
29
+ apiNewsCategoriesListGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNewsCategoriesListGet200Response>>;
30
+ /**
31
+ */
32
+ apiNewsCategoriesListGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiNewsCategoriesListGet200Response>;
27
33
  /**
28
34
  */
29
35
  apiNewsGetRaw(requestParameters: ApiNewsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiNewsGet200Response>>;
@@ -12,11 +12,40 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiNewsGet200ResponseFromJSON, ApiNewsIdGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiNewsCategoriesListGet200ResponseFromJSON, ApiNewsGet200ResponseFromJSON, ApiNewsIdGet200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
19
19
  export class NewsApi extends runtime.BaseAPI {
20
+ /**
21
+ */
22
+ async apiNewsCategoriesListGetRaw(initOverrides) {
23
+ const queryParameters = {};
24
+ const headerParameters = {};
25
+ if (this.configuration && this.configuration.apiKey) {
26
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
27
+ }
28
+ if (this.configuration && this.configuration.accessToken) {
29
+ const token = this.configuration.accessToken;
30
+ const tokenString = await token("BearerAuth", []);
31
+ if (tokenString) {
32
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
33
+ }
34
+ }
35
+ const response = await this.request({
36
+ path: `/api/news/categories/list`,
37
+ method: 'GET',
38
+ headers: headerParameters,
39
+ query: queryParameters,
40
+ }, initOverrides);
41
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiNewsCategoriesListGet200ResponseFromJSON(jsonValue));
42
+ }
43
+ /**
44
+ */
45
+ async apiNewsCategoriesListGet(initOverrides) {
46
+ const response = await this.apiNewsCategoriesListGetRaw(initOverrides);
47
+ return await response.value();
48
+ }
20
49
  /**
21
50
  */
22
51
  async apiNewsGetRaw(requestParameters, initOverrides) {
@@ -27,13 +56,23 @@ export class NewsApi extends runtime.BaseAPI {
27
56
  if (requestParameters['perPage'] != null) {
28
57
  queryParameters['perPage'] = requestParameters['perPage'];
29
58
  }
30
- if (requestParameters['leagueDescription'] != null) {
31
- queryParameters['leagueDescription'] = requestParameters['leagueDescription'];
59
+ if (requestParameters['sportIds'] != null) {
60
+ queryParameters['sportIds'] = requestParameters['sportIds'];
32
61
  }
33
62
  if (requestParameters['searchTerm'] != null) {
34
63
  queryParameters['searchTerm'] = requestParameters['searchTerm'];
35
64
  }
36
65
  const headerParameters = {};
66
+ if (this.configuration && this.configuration.apiKey) {
67
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
68
+ }
69
+ if (this.configuration && this.configuration.accessToken) {
70
+ const token = this.configuration.accessToken;
71
+ const tokenString = await token("BearerAuth", []);
72
+ if (tokenString) {
73
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
74
+ }
75
+ }
37
76
  const response = await this.request({
38
77
  path: `/api/news`,
39
78
  method: 'GET',
@@ -56,6 +95,16 @@ export class NewsApi extends runtime.BaseAPI {
56
95
  }
57
96
  const queryParameters = {};
58
97
  const headerParameters = {};
98
+ if (this.configuration && this.configuration.apiKey) {
99
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
100
+ }
101
+ if (this.configuration && this.configuration.accessToken) {
102
+ const token = this.configuration.accessToken;
103
+ const tokenString = await token("BearerAuth", []);
104
+ if (tokenString) {
105
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
106
+ }
107
+ }
59
108
  const response = await this.request({
60
109
  path: `/api/news/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
61
110
  method: 'GET',
@@ -10,7 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiPadelCronSeasonsGet200Response, ApiPadelMatchesGet200ResponseInner } from '../models/index';
13
+ import type { ApiPadelCronPointByPointGet200Response, ApiPadelMatchesGet200Response, ApiPadelMatchesGetFilterParameter, ApiPadelMatchesIdGet200Response } from '../models/index';
14
+ export interface ApiPadelMatchesGetRequest {
15
+ page?: number | null;
16
+ pageSize?: number | null;
17
+ filter?: ApiPadelMatchesGetFilterParameter;
18
+ sort?: string;
19
+ }
14
20
  export interface ApiPadelMatchesIdGetRequest {
15
21
  id: string;
16
22
  }
@@ -18,68 +24,28 @@ export interface ApiPadelMatchesIdGetRequest {
18
24
  *
19
25
  */
20
26
  export declare class PadelApi extends runtime.BaseAPI {
21
- /**
22
- * Fetch all matches paginated
23
- */
24
- apiPadelCronAllGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
25
- /**
26
- * Fetch all matches paginated
27
- */
28
- apiPadelCronAllGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
29
- /**
30
- * Fetch all players paginated
31
- */
32
- apiPadelCronPlayersGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
33
- /**
34
- * Fetch all players paginated
35
- */
36
- apiPadelCronPlayersGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
37
27
  /**
38
28
  * Fetch point-by-point data for matches from DB
39
29
  */
40
- apiPadelCronPointByPointGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
30
+ apiPadelCronPointByPointGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronPointByPointGet200Response>>;
41
31
  /**
42
32
  * Fetch point-by-point data for matches from DB
43
33
  */
44
- apiPadelCronPointByPointGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
45
- /**
46
- * Fetch all seasons for padel matches
47
- */
48
- apiPadelCronSeasonsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
49
- /**
50
- * Fetch all seasons for padel matches
51
- */
52
- apiPadelCronSeasonsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
53
- /**
54
- * Fetch match stats from database
55
- */
56
- apiPadelCronStatsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
57
- /**
58
- * Fetch match stats from database
59
- */
60
- apiPadelCronStatsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
61
- /**
62
- * Fetch all tournaments paginated
63
- */
64
- apiPadelCronTournamentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
65
- /**
66
- * Fetch all tournaments paginated
67
- */
68
- apiPadelCronTournamentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
34
+ apiPadelCronPointByPointGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronPointByPointGet200Response>;
69
35
  /**
70
36
  * List padel matches
71
37
  */
72
- apiPadelMatchesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiPadelMatchesGet200ResponseInner>>>;
38
+ apiPadelMatchesGetRaw(requestParameters: ApiPadelMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelMatchesGet200Response>>;
73
39
  /**
74
40
  * List padel matches
75
41
  */
76
- apiPadelMatchesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiPadelMatchesGet200ResponseInner>>;
42
+ apiPadelMatchesGet(requestParameters?: ApiPadelMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelMatchesGet200Response>;
77
43
  /**
78
44
  * Detail padel matches
79
45
  */
80
- apiPadelMatchesIdGetRaw(requestParameters: ApiPadelMatchesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelMatchesGet200ResponseInner>>;
46
+ apiPadelMatchesIdGetRaw(requestParameters: ApiPadelMatchesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelMatchesIdGet200Response>>;
81
47
  /**
82
48
  * Detail padel matches
83
49
  */
84
- apiPadelMatchesIdGet(requestParameters: ApiPadelMatchesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelMatchesGet200ResponseInner>;
50
+ apiPadelMatchesIdGet(requestParameters: ApiPadelMatchesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelMatchesIdGet200Response>;
85
51
  }