@crawlora-org/sofascore 0.1.0

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/src/index.d.ts ADDED
@@ -0,0 +1,148 @@
1
+ import type {
2
+ CrawloraGeneratedGroups,
3
+ OperationId,
4
+ OperationParamsMap,
5
+ OperationRequestArgs,
6
+ OperationResponseMap
7
+ } from "./types.js";
8
+
9
+ export type CrawloraParams = Record<string, unknown>;
10
+ export type CrawloraLogEvent = { event: string; [key: string]: unknown };
11
+ export interface CrawloraRequestContext { operationId: string; method: string; url: string; headers: Record<string, string> }
12
+ export type CrawloraBeforeRequest = (ctx: CrawloraRequestContext) => void | Promise<void>;
13
+ export type CrawloraAfterResponse = (operationId: string, status: number, headers: Record<string, string>, body: unknown) => unknown;
14
+
15
+ export interface CrawloraClientOptions {
16
+ apiKey?: string;
17
+ jwtToken?: string;
18
+ baseUrl?: string;
19
+ timeout?: number;
20
+ retries?: number;
21
+ retryDelay?: number;
22
+ maxRetryDelay?: number;
23
+ retryStatuses?: Iterable<number>;
24
+ isRetryable?: (status: number, error: CrawloraError) => boolean;
25
+ onRetry?: (attempt: number, error: CrawloraError, delay: number) => void;
26
+ requestId?: boolean;
27
+ idempotencyKeys?: boolean;
28
+ rateLimit?: number;
29
+ maxConcurrency?: number;
30
+ logger?: (event: CrawloraLogEvent) => void;
31
+ beforeRequest?: CrawloraBeforeRequest | Iterable<CrawloraBeforeRequest>;
32
+ afterResponse?: CrawloraAfterResponse | Iterable<CrawloraAfterResponse>;
33
+ headers?: Record<string, string>;
34
+ userAgent?: string | false;
35
+ fetch?: typeof globalThis.fetch;
36
+ }
37
+
38
+ export interface CrawloraRequestOptions {
39
+ headers?: Record<string, string>;
40
+ responseType?: "auto" | "json" | "text" | "stream";
41
+ timeout?: number;
42
+ signal?: AbortSignal;
43
+ retries?: number;
44
+ isRetryable?: (status: number, error: CrawloraError) => boolean;
45
+ }
46
+
47
+ export interface OperationDefinition {
48
+ id: string; method: string; path: string; pathParams: string[];
49
+ queryParams: Array<{ name: string; in?: "query"; collectionFormat?: string; type?: string; required?: boolean; enum?: string[] }>;
50
+ formParams: Array<{ name: string; in?: "formData"; type?: string; required?: boolean; enum?: string[] }>;
51
+ bodyParam?: string; bodyRequired?: boolean; consumes: string[]; produces: string[]; security: string[];
52
+ paginatable?: boolean; cursorParams?: string[];
53
+ }
54
+
55
+ export class CrawloraError extends Error {
56
+ status: number; code?: number; body: unknown; headers: Record<string, string>;
57
+ response?: Response; cause?: unknown; retryable?: boolean; requestId?: string;
58
+ }
59
+ export class CrawloraClientError extends CrawloraError {}
60
+ export class CrawloraServerError extends CrawloraError {}
61
+ export class CrawloraNetworkError extends CrawloraError {}
62
+
63
+ export interface CrawloraPaginateOptions extends CrawloraRequestOptions {
64
+ pageParam?: string; cursorParam?: string; nextCursor?: (page: unknown) => unknown;
65
+ start?: unknown; step?: number; maxPages?: number;
66
+ }
67
+ export interface CrawloraPaginateItemsOptions extends CrawloraPaginateOptions {
68
+ items?: (page: unknown) => Iterable<unknown>;
69
+ }
70
+
71
+ export class CrawloraClient {
72
+ constructor(options?: CrawloraClientOptions);
73
+ request<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
74
+ request<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
75
+ request<I extends OperationId>(operationId: I, ...args: OperationRequestArgs<I>): Promise<OperationResponseMap[I]>;
76
+ operation<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
77
+ operation<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
78
+ operation<I extends OperationId>(operationId: I, ...args: OperationRequestArgs<I>): Promise<OperationResponseMap[I]>;
79
+ paginate<I extends OperationId>(operationId: I, params?: OperationParamsMap[I], options?: CrawloraPaginateOptions): AsyncGenerator<OperationResponseMap[I], void, unknown>;
80
+ paginateItems<I extends OperationId>(operationId: I, params?: OperationParamsMap[I], options?: CrawloraPaginateItemsOptions): AsyncGenerator<unknown, void, unknown>;
81
+ [group: string]: unknown;
82
+ }
83
+ export interface CrawloraClient extends CrawloraGeneratedGroups {}
84
+
85
+ export class SofascoreClient extends CrawloraClient {
86
+ request<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
87
+ operation<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
88
+ event(params: OperationParamsMap["sofascore-event"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
89
+ eventH2h(params: OperationParamsMap["sofascore-event-h2h"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
90
+ eventIncidents(params: OperationParamsMap["sofascore-event-incidents"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
91
+ eventLineups(params: OperationParamsMap["sofascore-event-lineups"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
92
+ eventOdds(params: OperationParamsMap["sofascore-event-odds"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
93
+ eventStatistics(params: OperationParamsMap["sofascore-event-statistics"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
94
+ liveEvents(params: OperationParamsMap["sofascore-live-events"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
95
+ player(params: OperationParamsMap["sofascore-player"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
96
+ roundEvents(params: OperationParamsMap["sofascore-round-events"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
97
+ search(params: OperationParamsMap["sofascore-search"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
98
+ standings(params: OperationParamsMap["sofascore-standings"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
99
+ team(params: OperationParamsMap["sofascore-team"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
100
+ teamEvents(params: OperationParamsMap["sofascore-team-events"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
101
+ teamPlayers(params: OperationParamsMap["sofascore-team-players"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
102
+ tournamentSeasons(params: OperationParamsMap["sofascore-tournament-seasons"], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
103
+ request<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
104
+ operation<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
105
+ event(params: OperationParamsMap["sofascore-event"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
106
+ eventH2h(params: OperationParamsMap["sofascore-event-h2h"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
107
+ eventIncidents(params: OperationParamsMap["sofascore-event-incidents"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
108
+ eventLineups(params: OperationParamsMap["sofascore-event-lineups"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
109
+ eventOdds(params: OperationParamsMap["sofascore-event-odds"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
110
+ eventStatistics(params: OperationParamsMap["sofascore-event-statistics"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
111
+ liveEvents(params: OperationParamsMap["sofascore-live-events"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
112
+ player(params: OperationParamsMap["sofascore-player"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
113
+ roundEvents(params: OperationParamsMap["sofascore-round-events"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
114
+ search(params: OperationParamsMap["sofascore-search"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
115
+ standings(params: OperationParamsMap["sofascore-standings"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
116
+ team(params: OperationParamsMap["sofascore-team"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
117
+ teamEvents(params: OperationParamsMap["sofascore-team-events"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
118
+ teamPlayers(params: OperationParamsMap["sofascore-team-players"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
119
+ tournamentSeasons(params: OperationParamsMap["sofascore-tournament-seasons"], options: CrawloraRequestOptions & { responseType: "text" }): Promise<string>;
120
+
121
+ request<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
122
+ request<I extends OperationId>(operationId: I, ...args: OperationRequestArgs<I>): Promise<OperationResponseMap[I]>;
123
+ operation<I extends OperationId>(operationId: I, params: OperationParamsMap[I], options: CrawloraRequestOptions & { responseType: "stream" }): Promise<Response>;
124
+ operation<I extends OperationId>(operationId: I, ...args: OperationRequestArgs<I>): Promise<OperationResponseMap[I]>;
125
+ event(...args: OperationRequestArgs<"sofascore-event">): Promise<OperationResponseMap["sofascore-event"]>;
126
+ eventH2h(...args: OperationRequestArgs<"sofascore-event-h2h">): Promise<OperationResponseMap["sofascore-event-h2h"]>;
127
+ eventIncidents(...args: OperationRequestArgs<"sofascore-event-incidents">): Promise<OperationResponseMap["sofascore-event-incidents"]>;
128
+ eventLineups(...args: OperationRequestArgs<"sofascore-event-lineups">): Promise<OperationResponseMap["sofascore-event-lineups"]>;
129
+ eventOdds(...args: OperationRequestArgs<"sofascore-event-odds">): Promise<OperationResponseMap["sofascore-event-odds"]>;
130
+ eventStatistics(...args: OperationRequestArgs<"sofascore-event-statistics">): Promise<OperationResponseMap["sofascore-event-statistics"]>;
131
+ liveEvents(...args: OperationRequestArgs<"sofascore-live-events">): Promise<OperationResponseMap["sofascore-live-events"]>;
132
+ player(...args: OperationRequestArgs<"sofascore-player">): Promise<OperationResponseMap["sofascore-player"]>;
133
+ roundEvents(...args: OperationRequestArgs<"sofascore-round-events">): Promise<OperationResponseMap["sofascore-round-events"]>;
134
+ search(...args: OperationRequestArgs<"sofascore-search">): Promise<OperationResponseMap["sofascore-search"]>;
135
+ standings(...args: OperationRequestArgs<"sofascore-standings">): Promise<OperationResponseMap["sofascore-standings"]>;
136
+ team(...args: OperationRequestArgs<"sofascore-team">): Promise<OperationResponseMap["sofascore-team"]>;
137
+ teamEvents(...args: OperationRequestArgs<"sofascore-team-events">): Promise<OperationResponseMap["sofascore-team-events"]>;
138
+ teamPlayers(...args: OperationRequestArgs<"sofascore-team-players">): Promise<OperationResponseMap["sofascore-team-players"]>;
139
+ tournamentSeasons(...args: OperationRequestArgs<"sofascore-tournament-seasons">): Promise<OperationResponseMap["sofascore-tournament-seasons"]>;
140
+ }
141
+ export { SofascoreClient as Client };
142
+ export const operations: Record<string, OperationDefinition>;
143
+ export const groups: Record<string, Record<string, string>>;
144
+ export const operationCount: number;
145
+ export const OperationIds: Readonly<Record<string, OperationId>>;
146
+ export const VERSION: string;
147
+ export * from "./types.js";
148
+ export default SofascoreClient;
package/src/index.js ADDED
@@ -0,0 +1,41 @@
1
+ import { groups } from "./operations.js";
2
+ import {
3
+ CrawloraClient,
4
+ CrawloraClientError,
5
+ CrawloraError,
6
+ CrawloraNetworkError,
7
+ CrawloraServerError
8
+ } from "./client.js";
9
+
10
+ export class SofascoreClient extends CrawloraClient {
11
+ constructor(options = {}) {
12
+ super({ ...options, userAgent: options.userAgent ?? "crawlora-sofascore-js/0.1.0" });
13
+ this["event"] = (...args) => this.request("sofascore-event", ...args);
14
+ this["eventH2h"] = (...args) => this.request("sofascore-event-h2h", ...args);
15
+ this["eventIncidents"] = (...args) => this.request("sofascore-event-incidents", ...args);
16
+ this["eventLineups"] = (...args) => this.request("sofascore-event-lineups", ...args);
17
+ this["eventOdds"] = (...args) => this.request("sofascore-event-odds", ...args);
18
+ this["eventStatistics"] = (...args) => this.request("sofascore-event-statistics", ...args);
19
+ this["liveEvents"] = (...args) => this.request("sofascore-live-events", ...args);
20
+ this["player"] = (...args) => this.request("sofascore-player", ...args);
21
+ this["roundEvents"] = (...args) => this.request("sofascore-round-events", ...args);
22
+ this["search"] = (...args) => this.request("sofascore-search", ...args);
23
+ this["standings"] = (...args) => this.request("sofascore-standings", ...args);
24
+ this["team"] = (...args) => this.request("sofascore-team", ...args);
25
+ this["teamEvents"] = (...args) => this.request("sofascore-team-events", ...args);
26
+ this["teamPlayers"] = (...args) => this.request("sofascore-team-players", ...args);
27
+ this["tournamentSeasons"] = (...args) => this.request("sofascore-tournament-seasons", ...args);
28
+ }
29
+ }
30
+
31
+ export { SofascoreClient as Client };
32
+ export {
33
+ CrawloraClient,
34
+ CrawloraClientError,
35
+ CrawloraError,
36
+ CrawloraNetworkError,
37
+ CrawloraServerError
38
+ };
39
+ export { groups, operations, operationCount, OperationIds } from "./operations.js";
40
+ export const VERSION = "0.1.0";
41
+ export default SofascoreClient;
@@ -0,0 +1,483 @@
1
+ // Generated by the Crawlora platform client generator. Do not edit.
2
+ export const operations = {
3
+ "sofascore-event": {
4
+ "bodyParam": null,
5
+ "bodyRequired": false,
6
+ "consumes": [
7
+ "application/json"
8
+ ],
9
+ "formParams": [],
10
+ "id": "sofascore-event",
11
+ "method": "GET",
12
+ "path": "/sofascore/event",
13
+ "pathParams": [],
14
+ "produces": [
15
+ "application/json"
16
+ ],
17
+ "queryParams": [
18
+ {
19
+ "in": "query",
20
+ "name": "id",
21
+ "required": true,
22
+ "type": "string"
23
+ }
24
+ ],
25
+ "security": [
26
+ "ApiKeyAuth"
27
+ ]
28
+ },
29
+ "sofascore-event-h2h": {
30
+ "bodyParam": null,
31
+ "bodyRequired": false,
32
+ "consumes": [
33
+ "application/json"
34
+ ],
35
+ "formParams": [],
36
+ "id": "sofascore-event-h2h",
37
+ "method": "GET",
38
+ "path": "/sofascore/event-h2h",
39
+ "pathParams": [],
40
+ "produces": [
41
+ "application/json"
42
+ ],
43
+ "queryParams": [
44
+ {
45
+ "in": "query",
46
+ "name": "id",
47
+ "required": true,
48
+ "type": "string"
49
+ }
50
+ ],
51
+ "security": [
52
+ "ApiKeyAuth"
53
+ ]
54
+ },
55
+ "sofascore-event-incidents": {
56
+ "bodyParam": null,
57
+ "bodyRequired": false,
58
+ "consumes": [
59
+ "application/json"
60
+ ],
61
+ "formParams": [],
62
+ "id": "sofascore-event-incidents",
63
+ "method": "GET",
64
+ "path": "/sofascore/event-incidents",
65
+ "pathParams": [],
66
+ "produces": [
67
+ "application/json"
68
+ ],
69
+ "queryParams": [
70
+ {
71
+ "in": "query",
72
+ "name": "id",
73
+ "required": true,
74
+ "type": "string"
75
+ }
76
+ ],
77
+ "security": [
78
+ "ApiKeyAuth"
79
+ ]
80
+ },
81
+ "sofascore-event-lineups": {
82
+ "bodyParam": null,
83
+ "bodyRequired": false,
84
+ "consumes": [
85
+ "application/json"
86
+ ],
87
+ "formParams": [],
88
+ "id": "sofascore-event-lineups",
89
+ "method": "GET",
90
+ "path": "/sofascore/event-lineups",
91
+ "pathParams": [],
92
+ "produces": [
93
+ "application/json"
94
+ ],
95
+ "queryParams": [
96
+ {
97
+ "in": "query",
98
+ "name": "id",
99
+ "required": true,
100
+ "type": "string"
101
+ }
102
+ ],
103
+ "security": [
104
+ "ApiKeyAuth"
105
+ ]
106
+ },
107
+ "sofascore-event-odds": {
108
+ "bodyParam": null,
109
+ "bodyRequired": false,
110
+ "consumes": [
111
+ "application/json"
112
+ ],
113
+ "formParams": [],
114
+ "id": "sofascore-event-odds",
115
+ "method": "GET",
116
+ "path": "/sofascore/event-odds",
117
+ "pathParams": [],
118
+ "produces": [
119
+ "application/json"
120
+ ],
121
+ "queryParams": [
122
+ {
123
+ "in": "query",
124
+ "name": "id",
125
+ "required": true,
126
+ "type": "string"
127
+ }
128
+ ],
129
+ "security": [
130
+ "ApiKeyAuth"
131
+ ]
132
+ },
133
+ "sofascore-event-statistics": {
134
+ "bodyParam": null,
135
+ "bodyRequired": false,
136
+ "consumes": [
137
+ "application/json"
138
+ ],
139
+ "formParams": [],
140
+ "id": "sofascore-event-statistics",
141
+ "method": "GET",
142
+ "path": "/sofascore/event-statistics",
143
+ "pathParams": [],
144
+ "produces": [
145
+ "application/json"
146
+ ],
147
+ "queryParams": [
148
+ {
149
+ "in": "query",
150
+ "name": "id",
151
+ "required": true,
152
+ "type": "string"
153
+ }
154
+ ],
155
+ "security": [
156
+ "ApiKeyAuth"
157
+ ]
158
+ },
159
+ "sofascore-live-events": {
160
+ "bodyParam": null,
161
+ "bodyRequired": false,
162
+ "consumes": [
163
+ "application/json"
164
+ ],
165
+ "formParams": [],
166
+ "id": "sofascore-live-events",
167
+ "method": "GET",
168
+ "path": "/sofascore/live-events",
169
+ "pathParams": [],
170
+ "produces": [
171
+ "application/json"
172
+ ],
173
+ "queryParams": [
174
+ {
175
+ "enum": [
176
+ "football",
177
+ "basketball",
178
+ "tennis"
179
+ ],
180
+ "in": "query",
181
+ "name": "sport",
182
+ "required": true,
183
+ "type": "string"
184
+ }
185
+ ],
186
+ "security": [
187
+ "ApiKeyAuth"
188
+ ]
189
+ },
190
+ "sofascore-player": {
191
+ "bodyParam": null,
192
+ "bodyRequired": false,
193
+ "consumes": [
194
+ "application/json"
195
+ ],
196
+ "formParams": [],
197
+ "id": "sofascore-player",
198
+ "method": "GET",
199
+ "path": "/sofascore/player",
200
+ "pathParams": [],
201
+ "produces": [
202
+ "application/json"
203
+ ],
204
+ "queryParams": [
205
+ {
206
+ "in": "query",
207
+ "name": "id",
208
+ "required": true,
209
+ "type": "string"
210
+ }
211
+ ],
212
+ "security": [
213
+ "ApiKeyAuth"
214
+ ]
215
+ },
216
+ "sofascore-round-events": {
217
+ "bodyParam": null,
218
+ "bodyRequired": false,
219
+ "consumes": [
220
+ "application/json"
221
+ ],
222
+ "formParams": [],
223
+ "id": "sofascore-round-events",
224
+ "method": "GET",
225
+ "path": "/sofascore/round-events",
226
+ "pathParams": [],
227
+ "produces": [
228
+ "application/json"
229
+ ],
230
+ "queryParams": [
231
+ {
232
+ "in": "query",
233
+ "name": "id",
234
+ "required": true,
235
+ "type": "string"
236
+ },
237
+ {
238
+ "in": "query",
239
+ "name": "season",
240
+ "required": true,
241
+ "type": "string"
242
+ },
243
+ {
244
+ "in": "query",
245
+ "name": "round",
246
+ "required": true,
247
+ "type": "integer"
248
+ }
249
+ ],
250
+ "security": [
251
+ "ApiKeyAuth"
252
+ ]
253
+ },
254
+ "sofascore-search": {
255
+ "bodyParam": null,
256
+ "bodyRequired": false,
257
+ "consumes": [
258
+ "application/json"
259
+ ],
260
+ "formParams": [],
261
+ "id": "sofascore-search",
262
+ "method": "GET",
263
+ "path": "/sofascore/search",
264
+ "pathParams": [],
265
+ "produces": [
266
+ "application/json"
267
+ ],
268
+ "queryParams": [
269
+ {
270
+ "in": "query",
271
+ "name": "q",
272
+ "required": true,
273
+ "type": "string"
274
+ }
275
+ ],
276
+ "security": [
277
+ "ApiKeyAuth"
278
+ ]
279
+ },
280
+ "sofascore-standings": {
281
+ "bodyParam": null,
282
+ "bodyRequired": false,
283
+ "consumes": [
284
+ "application/json"
285
+ ],
286
+ "formParams": [],
287
+ "id": "sofascore-standings",
288
+ "method": "GET",
289
+ "path": "/sofascore/standings",
290
+ "pathParams": [],
291
+ "produces": [
292
+ "application/json"
293
+ ],
294
+ "queryParams": [
295
+ {
296
+ "in": "query",
297
+ "name": "id",
298
+ "required": true,
299
+ "type": "string"
300
+ },
301
+ {
302
+ "in": "query",
303
+ "name": "season",
304
+ "required": true,
305
+ "type": "string"
306
+ },
307
+ {
308
+ "enum": [
309
+ "total",
310
+ "home",
311
+ "away"
312
+ ],
313
+ "in": "query",
314
+ "name": "type",
315
+ "required": true,
316
+ "type": "string"
317
+ }
318
+ ],
319
+ "security": [
320
+ "ApiKeyAuth"
321
+ ]
322
+ },
323
+ "sofascore-team": {
324
+ "bodyParam": null,
325
+ "bodyRequired": false,
326
+ "consumes": [
327
+ "application/json"
328
+ ],
329
+ "formParams": [],
330
+ "id": "sofascore-team",
331
+ "method": "GET",
332
+ "path": "/sofascore/team",
333
+ "pathParams": [],
334
+ "produces": [
335
+ "application/json"
336
+ ],
337
+ "queryParams": [
338
+ {
339
+ "in": "query",
340
+ "name": "id",
341
+ "required": true,
342
+ "type": "string"
343
+ }
344
+ ],
345
+ "security": [
346
+ "ApiKeyAuth"
347
+ ]
348
+ },
349
+ "sofascore-team-events": {
350
+ "bodyParam": null,
351
+ "bodyRequired": false,
352
+ "consumes": [
353
+ "application/json"
354
+ ],
355
+ "formParams": [],
356
+ "id": "sofascore-team-events",
357
+ "method": "GET",
358
+ "paginatable": true,
359
+ "path": "/sofascore/team-events",
360
+ "pathParams": [],
361
+ "produces": [
362
+ "application/json"
363
+ ],
364
+ "queryParams": [
365
+ {
366
+ "in": "query",
367
+ "name": "id",
368
+ "required": true,
369
+ "type": "string"
370
+ },
371
+ {
372
+ "enum": [
373
+ "next",
374
+ "last"
375
+ ],
376
+ "in": "query",
377
+ "name": "direction",
378
+ "required": true,
379
+ "type": "string"
380
+ },
381
+ {
382
+ "in": "query",
383
+ "name": "page",
384
+ "type": "integer"
385
+ }
386
+ ],
387
+ "security": [
388
+ "ApiKeyAuth"
389
+ ]
390
+ },
391
+ "sofascore-team-players": {
392
+ "bodyParam": null,
393
+ "bodyRequired": false,
394
+ "consumes": [
395
+ "application/json"
396
+ ],
397
+ "formParams": [],
398
+ "id": "sofascore-team-players",
399
+ "method": "GET",
400
+ "path": "/sofascore/team-players",
401
+ "pathParams": [],
402
+ "produces": [
403
+ "application/json"
404
+ ],
405
+ "queryParams": [
406
+ {
407
+ "in": "query",
408
+ "name": "id",
409
+ "required": true,
410
+ "type": "string"
411
+ }
412
+ ],
413
+ "security": [
414
+ "ApiKeyAuth"
415
+ ]
416
+ },
417
+ "sofascore-tournament-seasons": {
418
+ "bodyParam": null,
419
+ "bodyRequired": false,
420
+ "consumes": [
421
+ "application/json"
422
+ ],
423
+ "formParams": [],
424
+ "id": "sofascore-tournament-seasons",
425
+ "method": "GET",
426
+ "path": "/sofascore/tournament-seasons",
427
+ "pathParams": [],
428
+ "produces": [
429
+ "application/json"
430
+ ],
431
+ "queryParams": [
432
+ {
433
+ "in": "query",
434
+ "name": "id",
435
+ "required": true,
436
+ "type": "string"
437
+ }
438
+ ],
439
+ "security": [
440
+ "ApiKeyAuth"
441
+ ]
442
+ }
443
+ };
444
+
445
+ export const groups = {
446
+ "sofascore": {
447
+ "event": "sofascore-event",
448
+ "eventH2h": "sofascore-event-h2h",
449
+ "eventIncidents": "sofascore-event-incidents",
450
+ "eventLineups": "sofascore-event-lineups",
451
+ "eventOdds": "sofascore-event-odds",
452
+ "eventStatistics": "sofascore-event-statistics",
453
+ "liveEvents": "sofascore-live-events",
454
+ "player": "sofascore-player",
455
+ "roundEvents": "sofascore-round-events",
456
+ "search": "sofascore-search",
457
+ "standings": "sofascore-standings",
458
+ "team": "sofascore-team",
459
+ "teamEvents": "sofascore-team-events",
460
+ "teamPlayers": "sofascore-team-players",
461
+ "tournamentSeasons": "sofascore-tournament-seasons"
462
+ }
463
+ };
464
+
465
+ export const operationCount = 15;
466
+
467
+ export const OperationIds = Object.freeze({
468
+ "SofascoreEvent": "sofascore-event",
469
+ "SofascoreEventH2h": "sofascore-event-h2h",
470
+ "SofascoreEventIncidents": "sofascore-event-incidents",
471
+ "SofascoreEventLineups": "sofascore-event-lineups",
472
+ "SofascoreEventOdds": "sofascore-event-odds",
473
+ "SofascoreEventStatistics": "sofascore-event-statistics",
474
+ "SofascoreLiveEvents": "sofascore-live-events",
475
+ "SofascorePlayer": "sofascore-player",
476
+ "SofascoreRoundEvents": "sofascore-round-events",
477
+ "SofascoreSearch": "sofascore-search",
478
+ "SofascoreStandings": "sofascore-standings",
479
+ "SofascoreTeam": "sofascore-team",
480
+ "SofascoreTeamEvents": "sofascore-team-events",
481
+ "SofascoreTeamPlayers": "sofascore-team-players",
482
+ "SofascoreTournamentSeasons": "sofascore-tournament-seasons"
483
+ });