@drxsuperapp/sdk 1.1.23 → 1.1.24
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.
- package/.openapi-generator/FILES +1 -0
- package/apis/PadelApi.ts +159 -0
- package/deploy.log +25 -9
- package/dist/apis/PadelApi.d.ts +49 -1
- package/dist/apis/PadelApi.js +127 -1
- package/dist/models/ApiPadelCronSeasonsGet200Response.d.ts +32 -0
- package/dist/models/ApiPadelCronSeasonsGet200Response.js +41 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiPadelCronSeasonsGet200Response.ts +65 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ models/ApiNewsIdGet200Response.ts
|
|
|
15
15
|
models/ApiNewsIdGet200ResponseResponseObject.ts
|
|
16
16
|
models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts
|
|
17
17
|
models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts
|
|
18
|
+
models/ApiPadelCronSeasonsGet200Response.ts
|
|
18
19
|
models/ApiPadelMatchesGet200ResponseInner.ts
|
|
19
20
|
models/ApiPadelMatchesGet200ResponseInnerPlayers.ts
|
|
20
21
|
models/ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.ts
|
package/apis/PadelApi.ts
CHANGED
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiPadelCronSeasonsGet200Response,
|
|
18
19
|
ApiPadelMatchesGet200ResponseInner,
|
|
19
20
|
} from '../models/index';
|
|
20
21
|
import {
|
|
22
|
+
ApiPadelCronSeasonsGet200ResponseFromJSON,
|
|
23
|
+
ApiPadelCronSeasonsGet200ResponseToJSON,
|
|
21
24
|
ApiPadelMatchesGet200ResponseInnerFromJSON,
|
|
22
25
|
ApiPadelMatchesGet200ResponseInnerToJSON,
|
|
23
26
|
} from '../models/index';
|
|
@@ -27,6 +30,162 @@ import {
|
|
|
27
30
|
*/
|
|
28
31
|
export class PadelApi extends runtime.BaseAPI {
|
|
29
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Fetch all matches paginated
|
|
35
|
+
*/
|
|
36
|
+
async apiPadelCronAllGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>> {
|
|
37
|
+
const queryParameters: any = {};
|
|
38
|
+
|
|
39
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
40
|
+
|
|
41
|
+
const response = await this.request({
|
|
42
|
+
path: `/api/padel/cron/all`,
|
|
43
|
+
method: 'GET',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
}, initOverrides);
|
|
47
|
+
|
|
48
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Fetch all matches paginated
|
|
53
|
+
*/
|
|
54
|
+
async apiPadelCronAllGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response> {
|
|
55
|
+
const response = await this.apiPadelCronAllGetRaw(initOverrides);
|
|
56
|
+
return await response.value();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Fetch all players paginated
|
|
61
|
+
*/
|
|
62
|
+
async apiPadelCronPlayersGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>> {
|
|
63
|
+
const queryParameters: any = {};
|
|
64
|
+
|
|
65
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
|
+
|
|
67
|
+
const response = await this.request({
|
|
68
|
+
path: `/api/padel/cron/players`,
|
|
69
|
+
method: 'GET',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Fetch all players paginated
|
|
79
|
+
*/
|
|
80
|
+
async apiPadelCronPlayersGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response> {
|
|
81
|
+
const response = await this.apiPadelCronPlayersGetRaw(initOverrides);
|
|
82
|
+
return await response.value();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Fetch point-by-point data for matches from DB
|
|
87
|
+
*/
|
|
88
|
+
async apiPadelCronPointByPointGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>> {
|
|
89
|
+
const queryParameters: any = {};
|
|
90
|
+
|
|
91
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
92
|
+
|
|
93
|
+
const response = await this.request({
|
|
94
|
+
path: `/api/padel/cron/point-by-point`,
|
|
95
|
+
method: 'GET',
|
|
96
|
+
headers: headerParameters,
|
|
97
|
+
query: queryParameters,
|
|
98
|
+
}, initOverrides);
|
|
99
|
+
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Fetch point-by-point data for matches from DB
|
|
105
|
+
*/
|
|
106
|
+
async apiPadelCronPointByPointGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response> {
|
|
107
|
+
const response = await this.apiPadelCronPointByPointGetRaw(initOverrides);
|
|
108
|
+
return await response.value();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Fetch all seasons for padel matches
|
|
113
|
+
*/
|
|
114
|
+
async apiPadelCronSeasonsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>> {
|
|
115
|
+
const queryParameters: any = {};
|
|
116
|
+
|
|
117
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
118
|
+
|
|
119
|
+
const response = await this.request({
|
|
120
|
+
path: `/api/padel/cron/seasons`,
|
|
121
|
+
method: 'GET',
|
|
122
|
+
headers: headerParameters,
|
|
123
|
+
query: queryParameters,
|
|
124
|
+
}, initOverrides);
|
|
125
|
+
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Fetch all seasons for padel matches
|
|
131
|
+
*/
|
|
132
|
+
async apiPadelCronSeasonsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response> {
|
|
133
|
+
const response = await this.apiPadelCronSeasonsGetRaw(initOverrides);
|
|
134
|
+
return await response.value();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Fetch match stats from database
|
|
139
|
+
*/
|
|
140
|
+
async apiPadelCronStatsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>> {
|
|
141
|
+
const queryParameters: any = {};
|
|
142
|
+
|
|
143
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
144
|
+
|
|
145
|
+
const response = await this.request({
|
|
146
|
+
path: `/api/padel/cron/stats`,
|
|
147
|
+
method: 'GET',
|
|
148
|
+
headers: headerParameters,
|
|
149
|
+
query: queryParameters,
|
|
150
|
+
}, initOverrides);
|
|
151
|
+
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Fetch match stats from database
|
|
157
|
+
*/
|
|
158
|
+
async apiPadelCronStatsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response> {
|
|
159
|
+
const response = await this.apiPadelCronStatsGetRaw(initOverrides);
|
|
160
|
+
return await response.value();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Fetch all tournaments paginated
|
|
165
|
+
*/
|
|
166
|
+
async apiPadelCronTournamentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>> {
|
|
167
|
+
const queryParameters: any = {};
|
|
168
|
+
|
|
169
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
170
|
+
|
|
171
|
+
const response = await this.request({
|
|
172
|
+
path: `/api/padel/cron/tournaments`,
|
|
173
|
+
method: 'GET',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
}, initOverrides);
|
|
177
|
+
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Fetch all tournaments paginated
|
|
183
|
+
*/
|
|
184
|
+
async apiPadelCronTournamentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response> {
|
|
185
|
+
const response = await this.apiPadelCronTournamentsGetRaw(initOverrides);
|
|
186
|
+
return await response.value();
|
|
187
|
+
}
|
|
188
|
+
|
|
30
189
|
/**
|
|
31
190
|
* List padel matches
|
|
32
191
|
*/
|
package/deploy.log
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_inner_sets_sets_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_inner_sets_sets_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_inner_sets_sets_inner=NewModel,ModelA=NewModelA in CLI).
|
|
26
26
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_inner_sets. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_inner_sets=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_inner_sets=NewModel,ModelA=NewModelA in CLI).
|
|
27
27
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_inner=NewModel,ModelA=NewModelA in CLI).
|
|
28
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_cron_seasons_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_padel_cron_seasons_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_cron_seasons_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
28
29
|
[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/]
|
|
29
30
|
[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/]
|
|
30
31
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiExamplesGet200ResponseInner.ts
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObject.ts
|
|
39
40
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts
|
|
40
41
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts
|
|
42
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelCronSeasonsGet200Response.ts
|
|
41
43
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseInner.ts
|
|
42
44
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseInnerPlayers.ts
|
|
43
45
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner.ts
|
|
@@ -57,6 +59,12 @@
|
|
|
57
59
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news. Renamed to auto-generated operationId: apiNewsGet
|
|
58
60
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/{id}. Renamed to auto-generated operationId: apiNewsIdGet
|
|
59
61
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/matches. Renamed to auto-generated operationId: apiPadelMatchesGet
|
|
62
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/cron/seasons. Renamed to auto-generated operationId: apiPadelCronSeasonsGet
|
|
63
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/cron/tournaments. Renamed to auto-generated operationId: apiPadelCronTournamentsGet
|
|
64
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/cron/players. Renamed to auto-generated operationId: apiPadelCronPlayersGet
|
|
65
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/cron/all. Renamed to auto-generated operationId: apiPadelCronAllGet
|
|
66
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/cron/stats. Renamed to auto-generated operationId: apiPadelCronStatsGet
|
|
67
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/cron/point-by-point. Renamed to auto-generated operationId: apiPadelCronPointByPointGet
|
|
60
68
|
[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/]
|
|
61
69
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/ExampleApi.ts
|
|
62
70
|
[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/]
|
|
@@ -79,13 +87,21 @@
|
|
|
79
87
|
# https://opencollective.com/openapi_generator/donate #
|
|
80
88
|
################################################################################
|
|
81
89
|
✅ SDK generated
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
[master 3d5890a] VPS: Generated API SDK
|
|
91
|
+
4 files changed, 226 insertions(+)
|
|
92
|
+
create mode 100644 models/ApiPadelCronSeasonsGet200Response.ts
|
|
93
|
+
remote:
|
|
94
|
+
remote: Project 'drxsuperapp/drx-sdk' was moved to 'drx-super/drx-sdk'.
|
|
95
|
+
remote:
|
|
96
|
+
remote: Please update your Git remote:
|
|
97
|
+
remote:
|
|
98
|
+
remote: git remote set-url origin https://gitlab.com/drx-super/drx-sdk.git
|
|
99
|
+
remote:
|
|
100
|
+
remote:
|
|
101
|
+
To https://gitlab.com/drxsuperapp/drx-sdk.git
|
|
102
|
+
124b892..3d5890a master -> master
|
|
87
103
|
✅ Changes committed and pushed
|
|
88
|
-
v1.1.
|
|
104
|
+
v1.1.24
|
|
89
105
|
remote:
|
|
90
106
|
remote: Project 'drxsuperapp/drx-sdk' was moved to 'drx-super/drx-sdk'.
|
|
91
107
|
remote:
|
|
@@ -95,13 +111,13 @@ remote: git remote set-url origin https://gitlab.com/drx-super/drx-sdk.git
|
|
|
95
111
|
remote:
|
|
96
112
|
remote:
|
|
97
113
|
To https://gitlab.com/drxsuperapp/drx-sdk.git
|
|
98
|
-
|
|
114
|
+
3d5890a..081db73 master -> master
|
|
99
115
|
✅ Version bumped
|
|
100
116
|
|
|
101
|
-
> @drxsuperapp/sdk@1.1.
|
|
117
|
+
> @drxsuperapp/sdk@1.1.24 prepublishOnly
|
|
102
118
|
> npm run build
|
|
103
119
|
|
|
104
120
|
|
|
105
|
-
> @drxsuperapp/sdk@1.1.
|
|
121
|
+
> @drxsuperapp/sdk@1.1.24 build
|
|
106
122
|
> tsc
|
|
107
123
|
|
package/dist/apis/PadelApi.d.ts
CHANGED
|
@@ -10,11 +10,59 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiPadelMatchesGet200ResponseInner } from '../models/index';
|
|
13
|
+
import type { ApiPadelCronSeasonsGet200Response, ApiPadelMatchesGet200ResponseInner } from '../models/index';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
export declare class PadelApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
* Fetch all matches paginated
|
|
20
|
+
*/
|
|
21
|
+
apiPadelCronAllGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
|
|
22
|
+
/**
|
|
23
|
+
* Fetch all matches paginated
|
|
24
|
+
*/
|
|
25
|
+
apiPadelCronAllGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetch all players paginated
|
|
28
|
+
*/
|
|
29
|
+
apiPadelCronPlayersGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch all players paginated
|
|
32
|
+
*/
|
|
33
|
+
apiPadelCronPlayersGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
|
|
34
|
+
/**
|
|
35
|
+
* Fetch point-by-point data for matches from DB
|
|
36
|
+
*/
|
|
37
|
+
apiPadelCronPointByPointGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
|
|
38
|
+
/**
|
|
39
|
+
* Fetch point-by-point data for matches from DB
|
|
40
|
+
*/
|
|
41
|
+
apiPadelCronPointByPointGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
|
|
42
|
+
/**
|
|
43
|
+
* Fetch all seasons for padel matches
|
|
44
|
+
*/
|
|
45
|
+
apiPadelCronSeasonsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
|
|
46
|
+
/**
|
|
47
|
+
* Fetch all seasons for padel matches
|
|
48
|
+
*/
|
|
49
|
+
apiPadelCronSeasonsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
|
|
50
|
+
/**
|
|
51
|
+
* Fetch match stats from database
|
|
52
|
+
*/
|
|
53
|
+
apiPadelCronStatsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
|
|
54
|
+
/**
|
|
55
|
+
* Fetch match stats from database
|
|
56
|
+
*/
|
|
57
|
+
apiPadelCronStatsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
|
|
58
|
+
/**
|
|
59
|
+
* Fetch all tournaments paginated
|
|
60
|
+
*/
|
|
61
|
+
apiPadelCronTournamentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiPadelCronSeasonsGet200Response>>;
|
|
62
|
+
/**
|
|
63
|
+
* Fetch all tournaments paginated
|
|
64
|
+
*/
|
|
65
|
+
apiPadelCronTournamentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiPadelCronSeasonsGet200Response>;
|
|
18
66
|
/**
|
|
19
67
|
* List padel matches
|
|
20
68
|
*/
|
package/dist/apis/PadelApi.js
CHANGED
|
@@ -12,11 +12,137 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiPadelMatchesGet200ResponseInnerFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiPadelCronSeasonsGet200ResponseFromJSON, ApiPadelMatchesGet200ResponseInnerFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class PadelApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Fetch all matches paginated
|
|
22
|
+
*/
|
|
23
|
+
async apiPadelCronAllGetRaw(initOverrides) {
|
|
24
|
+
const queryParameters = {};
|
|
25
|
+
const headerParameters = {};
|
|
26
|
+
const response = await this.request({
|
|
27
|
+
path: `/api/padel/cron/all`,
|
|
28
|
+
method: 'GET',
|
|
29
|
+
headers: headerParameters,
|
|
30
|
+
query: queryParameters,
|
|
31
|
+
}, initOverrides);
|
|
32
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Fetch all matches paginated
|
|
36
|
+
*/
|
|
37
|
+
async apiPadelCronAllGet(initOverrides) {
|
|
38
|
+
const response = await this.apiPadelCronAllGetRaw(initOverrides);
|
|
39
|
+
return await response.value();
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Fetch all players paginated
|
|
43
|
+
*/
|
|
44
|
+
async apiPadelCronPlayersGetRaw(initOverrides) {
|
|
45
|
+
const queryParameters = {};
|
|
46
|
+
const headerParameters = {};
|
|
47
|
+
const response = await this.request({
|
|
48
|
+
path: `/api/padel/cron/players`,
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Fetch all players paginated
|
|
57
|
+
*/
|
|
58
|
+
async apiPadelCronPlayersGet(initOverrides) {
|
|
59
|
+
const response = await this.apiPadelCronPlayersGetRaw(initOverrides);
|
|
60
|
+
return await response.value();
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Fetch point-by-point data for matches from DB
|
|
64
|
+
*/
|
|
65
|
+
async apiPadelCronPointByPointGetRaw(initOverrides) {
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
const response = await this.request({
|
|
69
|
+
path: `/api/padel/cron/point-by-point`,
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Fetch point-by-point data for matches from DB
|
|
78
|
+
*/
|
|
79
|
+
async apiPadelCronPointByPointGet(initOverrides) {
|
|
80
|
+
const response = await this.apiPadelCronPointByPointGetRaw(initOverrides);
|
|
81
|
+
return await response.value();
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Fetch all seasons for padel matches
|
|
85
|
+
*/
|
|
86
|
+
async apiPadelCronSeasonsGetRaw(initOverrides) {
|
|
87
|
+
const queryParameters = {};
|
|
88
|
+
const headerParameters = {};
|
|
89
|
+
const response = await this.request({
|
|
90
|
+
path: `/api/padel/cron/seasons`,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
}, initOverrides);
|
|
95
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Fetch all seasons for padel matches
|
|
99
|
+
*/
|
|
100
|
+
async apiPadelCronSeasonsGet(initOverrides) {
|
|
101
|
+
const response = await this.apiPadelCronSeasonsGetRaw(initOverrides);
|
|
102
|
+
return await response.value();
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Fetch match stats from database
|
|
106
|
+
*/
|
|
107
|
+
async apiPadelCronStatsGetRaw(initOverrides) {
|
|
108
|
+
const queryParameters = {};
|
|
109
|
+
const headerParameters = {};
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: `/api/padel/cron/stats`,
|
|
112
|
+
method: 'GET',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides);
|
|
116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Fetch match stats from database
|
|
120
|
+
*/
|
|
121
|
+
async apiPadelCronStatsGet(initOverrides) {
|
|
122
|
+
const response = await this.apiPadelCronStatsGetRaw(initOverrides);
|
|
123
|
+
return await response.value();
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Fetch all tournaments paginated
|
|
127
|
+
*/
|
|
128
|
+
async apiPadelCronTournamentsGetRaw(initOverrides) {
|
|
129
|
+
const queryParameters = {};
|
|
130
|
+
const headerParameters = {};
|
|
131
|
+
const response = await this.request({
|
|
132
|
+
path: `/api/padel/cron/tournaments`,
|
|
133
|
+
method: 'GET',
|
|
134
|
+
headers: headerParameters,
|
|
135
|
+
query: queryParameters,
|
|
136
|
+
}, initOverrides);
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiPadelCronSeasonsGet200ResponseFromJSON(jsonValue));
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Fetch all tournaments paginated
|
|
141
|
+
*/
|
|
142
|
+
async apiPadelCronTournamentsGet(initOverrides) {
|
|
143
|
+
const response = await this.apiPadelCronTournamentsGetRaw(initOverrides);
|
|
144
|
+
return await response.value();
|
|
145
|
+
}
|
|
20
146
|
/**
|
|
21
147
|
* List padel matches
|
|
22
148
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ApiPadelCronSeasonsGet200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiPadelCronSeasonsGet200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiPadelCronSeasonsGet200Response
|
|
22
|
+
*/
|
|
23
|
+
msg?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiPadelCronSeasonsGet200Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiPadelCronSeasonsGet200Response(value: object): value is ApiPadelCronSeasonsGet200Response;
|
|
29
|
+
export declare function ApiPadelCronSeasonsGet200ResponseFromJSON(json: any): ApiPadelCronSeasonsGet200Response;
|
|
30
|
+
export declare function ApiPadelCronSeasonsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelCronSeasonsGet200Response;
|
|
31
|
+
export declare function ApiPadelCronSeasonsGet200ResponseToJSON(json: any): ApiPadelCronSeasonsGet200Response;
|
|
32
|
+
export declare function ApiPadelCronSeasonsGet200ResponseToJSONTyped(value?: ApiPadelCronSeasonsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 ApiPadelCronSeasonsGet200Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiPadelCronSeasonsGet200Response(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ApiPadelCronSeasonsGet200ResponseFromJSON(json) {
|
|
21
|
+
return ApiPadelCronSeasonsGet200ResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ApiPadelCronSeasonsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'msg': json['msg'] == null ? undefined : json['msg'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function ApiPadelCronSeasonsGet200ResponseToJSON(json) {
|
|
32
|
+
return ApiPadelCronSeasonsGet200ResponseToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ApiPadelCronSeasonsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'msg': value['msg'],
|
|
40
|
+
};
|
|
41
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './ApiNewsIdGet200Response';
|
|
|
9
9
|
export * from './ApiNewsIdGet200ResponseResponseObject';
|
|
10
10
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInner';
|
|
11
11
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague';
|
|
12
|
+
export * from './ApiPadelCronSeasonsGet200Response';
|
|
12
13
|
export * from './ApiPadelMatchesGet200ResponseInner';
|
|
13
14
|
export * from './ApiPadelMatchesGet200ResponseInnerPlayers';
|
|
14
15
|
export * from './ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner';
|
package/dist/models/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from './ApiNewsIdGet200Response';
|
|
|
11
11
|
export * from './ApiNewsIdGet200ResponseResponseObject';
|
|
12
12
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInner';
|
|
13
13
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague';
|
|
14
|
+
export * from './ApiPadelCronSeasonsGet200Response';
|
|
14
15
|
export * from './ApiPadelMatchesGet200ResponseInner';
|
|
15
16
|
export * from './ApiPadelMatchesGet200ResponseInnerPlayers';
|
|
16
17
|
export * from './ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner';
|
|
@@ -0,0 +1,65 @@
|
|
|
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 ApiPadelCronSeasonsGet200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiPadelCronSeasonsGet200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiPadelCronSeasonsGet200Response
|
|
26
|
+
*/
|
|
27
|
+
msg?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiPadelCronSeasonsGet200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiPadelCronSeasonsGet200Response(value: object): value is ApiPadelCronSeasonsGet200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ApiPadelCronSeasonsGet200ResponseFromJSON(json: any): ApiPadelCronSeasonsGet200Response {
|
|
38
|
+
return ApiPadelCronSeasonsGet200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ApiPadelCronSeasonsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiPadelCronSeasonsGet200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'msg': json['msg'] == null ? undefined : json['msg'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ApiPadelCronSeasonsGet200ResponseToJSON(json: any): ApiPadelCronSeasonsGet200Response {
|
|
52
|
+
return ApiPadelCronSeasonsGet200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApiPadelCronSeasonsGet200ResponseToJSONTyped(value?: ApiPadelCronSeasonsGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'msg': value['msg'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
package/models/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './ApiNewsIdGet200Response';
|
|
|
11
11
|
export * from './ApiNewsIdGet200ResponseResponseObject';
|
|
12
12
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInner';
|
|
13
13
|
export * from './ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague';
|
|
14
|
+
export * from './ApiPadelCronSeasonsGet200Response';
|
|
14
15
|
export * from './ApiPadelMatchesGet200ResponseInner';
|
|
15
16
|
export * from './ApiPadelMatchesGet200ResponseInnerPlayers';
|
|
16
17
|
export * from './ApiPadelMatchesGet200ResponseInnerPlayersTeam1Inner';
|