@winible/winible-typed 2.78.1 → 2.79.1

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.
@@ -0,0 +1,424 @@
1
+ import type * as types from "./types";
2
+ import type { ConfigOptions, FetchResponse } from "api/dist/core";
3
+ import Oas from "oas";
4
+ import APICore from "api/dist/core";
5
+ import definition from "./openapi.json";
6
+
7
+ class SDK {
8
+ spec: Oas;
9
+ core: APICore;
10
+
11
+ constructor() {
12
+ this.spec = Oas.init(definition);
13
+ this.core = new APICore(this.spec, "opticodds/3.0.0 (api/6.1.3)");
14
+ }
15
+
16
+ /**
17
+ * Optionally configure various options that the SDK allows.
18
+ *
19
+ * @param config Object of supported SDK options and toggles.
20
+ * @param config.timeout Override the default `fetch` request timeout of 30 seconds. This number
21
+ * should be represented in milliseconds.
22
+ */
23
+ config(config: ConfigOptions) {
24
+ this.core.setConfig(config);
25
+ }
26
+
27
+ /**
28
+ * If the API you're using requires authentication you can supply the required credentials
29
+ * through this method and the library will magically determine how they should be used
30
+ * within your API request.
31
+ *
32
+ * With the exception of OpenID and MutualTLS, it supports all forms of authentication
33
+ * supported by the OpenAPI specification.
34
+ *
35
+ * @example <caption>HTTP Basic auth</caption>
36
+ * sdk.auth('username', 'password');
37
+ *
38
+ * @example <caption>Bearer tokens (HTTP or OAuth 2)</caption>
39
+ * sdk.auth('myBearerToken');
40
+ *
41
+ * @example <caption>API Keys</caption>
42
+ * sdk.auth('myApiKey');
43
+ *
44
+ * @see {@link https://spec.openapis.org/oas/v3.0.3#fixed-fields-22}
45
+ * @see {@link https://spec.openapis.org/oas/v3.1.0#fixed-fields-22}
46
+ * @param values Your auth credentials for the API; can specify up to two strings or numbers.
47
+ */
48
+ auth(...values: string[] | number[]) {
49
+ this.core.setAuth(...values);
50
+ return this;
51
+ }
52
+
53
+ /**
54
+ * If the API you're using offers alternate server URLs, and server variables, you can tell
55
+ * the SDK which one to use with this method. To use it you can supply either one of the
56
+ * server URLs that are contained within the OpenAPI definition (along with any server
57
+ * variables), or you can pass it a fully qualified URL to use (that may or may not exist
58
+ * within the OpenAPI definition).
59
+ *
60
+ * @example <caption>Server URL with server variables</caption>
61
+ * sdk.server('https://{region}.api.example.com/{basePath}', {
62
+ * name: 'eu',
63
+ * basePath: 'v14',
64
+ * });
65
+ *
66
+ * @example <caption>Fully qualified server URL</caption>
67
+ * sdk.server('https://eu.api.example.com/v14');
68
+ *
69
+ * @param url Server URL
70
+ * @param variables An object of variables to replace into the server URL.
71
+ */
72
+ server(url: string, variables = {}) {
73
+ this.core.setServer(url, variables);
74
+ }
75
+
76
+ getSports(): Promise<FetchResponse<200, types.GetSportsResponse200>> {
77
+ return this.core.fetch("/sports", "get");
78
+ }
79
+
80
+ getSportsActive(): Promise<
81
+ FetchResponse<200, types.GetSportsActiveResponse200>
82
+ > {
83
+ return this.core.fetch("/sports/active", "get");
84
+ }
85
+
86
+ getLeagues(
87
+ metadata?: types.GetLeaguesMetadataParam
88
+ ): Promise<FetchResponse<200, types.GetLeaguesResponse200>> {
89
+ return this.core.fetch("/leagues", "get", metadata);
90
+ }
91
+
92
+ getLeaguesActive(
93
+ metadata?: types.GetLeaguesActiveMetadataParam
94
+ ): Promise<FetchResponse<200, types.GetLeaguesActiveResponse200>> {
95
+ return this.core.fetch("/leagues/active", "get", metadata);
96
+ }
97
+
98
+ getSportsbooks(): Promise<
99
+ FetchResponse<200, types.GetSportsbooksResponse200>
100
+ > {
101
+ return this.core.fetch("/sportsbooks", "get");
102
+ }
103
+
104
+ getSportsbooksActive(
105
+ metadata?: types.GetSportsbooksActiveMetadataParam
106
+ ): Promise<FetchResponse<200, types.GetSportsbooksActiveResponse200>> {
107
+ return this.core.fetch("/sportsbooks/active", "get", metadata);
108
+ }
109
+
110
+ getSportsbooksLastPolled(
111
+ metadata?: types.GetSportsbooksLastPolledMetadataParam
112
+ ): Promise<FetchResponse<200, types.GetSportsbooksLastPolledResponse200>> {
113
+ return this.core.fetch("/sportsbooks/last-polled", "get", metadata);
114
+ }
115
+
116
+ getMarkets(
117
+ metadata?: types.GetMarketsMetadataParam
118
+ ): Promise<FetchResponse<200, types.GetMarketsResponse200>> {
119
+ return this.core.fetch("/markets", "get", metadata);
120
+ }
121
+
122
+ getMarketsActive(
123
+ metadata: types.GetMarketsActiveMetadataParam
124
+ ): Promise<FetchResponse<200, types.GetMarketsActiveResponse200>> {
125
+ return this.core.fetch("/markets/active", "get", metadata);
126
+ }
127
+
128
+ getMarketsSettleable(
129
+ metadata: types.GetMarketsSettleableMetadataParam
130
+ ): Promise<FetchResponse<200, types.GetMarketsSettleableResponse200>> {
131
+ return this.core.fetch("/markets/settleable", "get", metadata);
132
+ }
133
+
134
+ getTeams(
135
+ metadata?: types.GetTeamsMetadataParam
136
+ ): Promise<FetchResponse<200, types.GetTeamsResponse200>> {
137
+ return this.core.fetch("/teams", "get", metadata);
138
+ }
139
+
140
+ getPlayers(
141
+ metadata?: types.GetPlayersMetadataParam
142
+ ): Promise<FetchResponse<200, types.GetPlayersResponse200>> {
143
+ return this.core.fetch("/players", "get", metadata);
144
+ }
145
+
146
+ getFixtures(
147
+ metadata?: types.GetFixturesMetadataParam
148
+ ): Promise<FetchResponse<200, types.GetFixturesResponse200>> {
149
+ return this.core.fetch("/fixtures", "get", metadata);
150
+ }
151
+
152
+ getFixturesActive(
153
+ metadata?: types.GetFixturesActiveMetadataParam
154
+ ): Promise<FetchResponse<200, types.GetFixturesActiveResponse200>> {
155
+ return this.core.fetch("/fixtures/active", "get", metadata);
156
+ }
157
+
158
+ getTournaments(
159
+ metadata?: types.GetTournamentsMetadataParam
160
+ ): Promise<FetchResponse<200, types.GetTournamentsResponse200>> {
161
+ return this.core.fetch("/tournaments", "get", metadata);
162
+ }
163
+
164
+ getConferences(
165
+ metadata?: types.GetConferencesMetadataParam
166
+ ): Promise<FetchResponse<200, types.GetConferencesResponse200>> {
167
+ return this.core.fetch("/conferences", "get", metadata);
168
+ }
169
+
170
+ getDivisions(
171
+ metadata?: types.GetDivisionsMetadataParam
172
+ ): Promise<FetchResponse<200, types.GetDivisionsResponse200>> {
173
+ return this.core.fetch("/divisions", "get", metadata);
174
+ }
175
+
176
+ getFixturesOdds(
177
+ metadata: types.GetFixturesOddsMetadataParam
178
+ ): Promise<FetchResponse<200, types.GetFixturesOddsResponse200>> {
179
+ return this.core.fetch("/fixtures/odds", "get", metadata);
180
+ }
181
+
182
+ getFixturesOddsHistorical(
183
+ metadata: types.GetFixturesOddsHistoricalMetadataParam
184
+ ): Promise<FetchResponse<200, types.GetFixturesOddsHistoricalResponse200>> {
185
+ return this.core.fetch("/fixtures/odds/historical", "get", metadata);
186
+ }
187
+
188
+ getFixturesResults(
189
+ metadata?: types.GetFixturesResultsMetadataParam
190
+ ): Promise<FetchResponse<200, types.GetFixturesResultsResponse200>> {
191
+ return this.core.fetch("/fixtures/results", "get", metadata);
192
+ }
193
+
194
+ getFixturesPlayerResults(
195
+ metadata?: types.GetFixturesPlayerResultsMetadataParam
196
+ ): Promise<FetchResponse<200, types.GetFixturesPlayerResultsResponse200>> {
197
+ return this.core.fetch("/fixtures/player-results", "get", metadata);
198
+ }
199
+
200
+ getTournamentsResults(
201
+ metadata: types.GetTournamentsResultsMetadataParam
202
+ ): Promise<FetchResponse<200, types.GetTournamentsResultsResponse200>> {
203
+ return this.core.fetch("/tournaments/results", "get", metadata);
204
+ }
205
+
206
+ getFixturesPlayerResultsLastX(
207
+ metadata?: types.GetFixturesPlayerResultsLastXMetadataParam
208
+ ): Promise<
209
+ FetchResponse<200, types.GetFixturesPlayerResultsLastXResponse200>
210
+ > {
211
+ return this.core.fetch("/fixtures/player-results/last-x", "get", metadata);
212
+ }
213
+
214
+ getFixturesResultsHeadToHead(
215
+ metadata: types.GetFixturesResultsHeadToHeadMetadataParam
216
+ ): Promise<
217
+ FetchResponse<200, types.GetFixturesResultsHeadToHeadResponse200>
218
+ > {
219
+ return this.core.fetch("/fixtures/results/head-to-head", "get", metadata);
220
+ }
221
+
222
+ getFutures(
223
+ metadata?: types.GetFuturesMetadataParam
224
+ ): Promise<FetchResponse<200, types.GetFuturesResponse200>> {
225
+ return this.core.fetch("/futures", "get", metadata);
226
+ }
227
+
228
+ getFuturesOdds(
229
+ metadata: types.GetFuturesOddsMetadataParam
230
+ ): Promise<FetchResponse<200, types.GetFuturesOddsResponse200>> {
231
+ return this.core.fetch("/futures/odds", "get", metadata);
232
+ }
233
+
234
+ getGraderOdds(
235
+ metadata: types.GetGraderOddsMetadataParam
236
+ ): Promise<FetchResponse<200, types.GetGraderOddsResponse200>> {
237
+ return this.core.fetch("/grader/odds", "get", metadata);
238
+ }
239
+
240
+ getGraderFutures(
241
+ metadata: types.GetGraderFuturesMetadataParam
242
+ ): Promise<FetchResponse<200, types.GetGraderFuturesResponse200>> {
243
+ return this.core.fetch("/grader/futures", "get", metadata);
244
+ }
245
+
246
+ getInjuries(
247
+ metadata?: types.GetInjuriesMetadataParam
248
+ ): Promise<FetchResponse<200, types.GetInjuriesResponse200>> {
249
+ return this.core.fetch("/injuries", "get", metadata);
250
+ }
251
+
252
+ postParlayOdds(
253
+ body: types.PostParlayOddsBodyParam,
254
+ metadata?: types.PostParlayOddsMetadataParam
255
+ ): Promise<FetchResponse<200, types.PostParlayOddsResponse200>> {
256
+ return this.core.fetch("/parlay/odds", "post", body, metadata as any);
257
+ }
258
+
259
+ getStreamOddsSport(
260
+ metadata: types.GetStreamOddsSportMetadataParam
261
+ ): Promise<FetchResponse<200, types.GetStreamOddsSportResponse200>> {
262
+ return this.core.fetch("/stream/odds/{sport}", "get", metadata);
263
+ }
264
+
265
+ getStreamResultsSport(
266
+ metadata: types.GetStreamResultsSportMetadataParam
267
+ ): Promise<FetchResponse<200, types.GetStreamResultsSportResponse200>> {
268
+ return this.core.fetch("/stream/results/{sport}", "get", metadata);
269
+ }
270
+
271
+ getCopilotFixturesOdds(
272
+ metadata?: types.GetCopilotFixturesOddsMetadataParam
273
+ ): Promise<FetchResponse<200, types.GetCopilotFixturesOddsResponse200>> {
274
+ return this.core.fetch("/copilot/fixtures/odds", "get", metadata);
275
+ }
276
+
277
+ getCopilotGraderOdds(
278
+ metadata: types.GetCopilotGraderOddsMetadataParam
279
+ ): Promise<FetchResponse<200, types.GetCopilotGraderOddsResponse200>> {
280
+ return this.core.fetch("/copilot/grader/odds", "get", metadata);
281
+ }
282
+
283
+ getCopilotParlayOdds(
284
+ metadata: types.GetCopilotParlayOddsMetadataParam
285
+ ): Promise<FetchResponse<200, types.GetCopilotParlayOddsResponse200>> {
286
+ return this.core.fetch("/copilot/parlay/odds", "get", metadata);
287
+ }
288
+
289
+ getStreamCopilotSportOdds(
290
+ metadata: types.GetStreamCopilotSportOddsMetadataParam
291
+ ): Promise<FetchResponse<200, types.GetStreamCopilotSportOddsResponse200>> {
292
+ return this.core.fetch("/stream/copilot/{sport}/odds", "get", metadata);
293
+ }
294
+
295
+ postCopilotQueueStart(
296
+ body: types.PostCopilotQueueStartBodyParam
297
+ ): Promise<FetchResponse<200, types.PostCopilotQueueStartResponse200>> {
298
+ return this.core.fetch("/copilot/queue/start", "post", body);
299
+ }
300
+
301
+ postCopilotQueueStop(
302
+ body: types.PostCopilotQueueStopBodyParam
303
+ ): Promise<FetchResponse<200, types.PostCopilotQueueStopResponse200>> {
304
+ return this.core.fetch("/copilot/queue/stop", "post", body);
305
+ }
306
+
307
+ getCopilotQueueStatus(
308
+ metadata?: types.GetCopilotQueueStatusMetadataParam
309
+ ): Promise<FetchResponse<200, types.GetCopilotQueueStatusResponse200>> {
310
+ return this.core.fetch("/copilot/queue/status", "get", metadata);
311
+ }
312
+
313
+ postFixtureResultsQueueStart(
314
+ body: types.PostFixtureResultsQueueStartBodyParam
315
+ ): Promise<
316
+ FetchResponse<200, types.PostFixtureResultsQueueStartResponse200>
317
+ > {
318
+ return this.core.fetch("/fixture/results/queue/start", "post", body);
319
+ }
320
+
321
+ postFixtureResultsQueueStop(
322
+ body: types.PostFixtureResultsQueueStopBodyParam
323
+ ): Promise<FetchResponse<200, types.PostFixtureResultsQueueStopResponse200>> {
324
+ return this.core.fetch("/fixture/results/queue/stop", "post", body);
325
+ }
326
+
327
+ getFixtureResultsQueueStatus(
328
+ metadata?: types.GetFixtureResultsQueueStatusMetadataParam
329
+ ): Promise<
330
+ FetchResponse<200, types.GetFixtureResultsQueueStatusResponse200>
331
+ > {
332
+ return this.core.fetch("/fixture/results/queue/status", "get", metadata);
333
+ }
334
+ }
335
+
336
+ const createSDK = (() => {
337
+ return new SDK();
338
+ })();
339
+ export default createSDK;
340
+
341
+ export type {
342
+ GetConferencesMetadataParam,
343
+ GetConferencesResponse200,
344
+ GetCopilotFixturesOddsMetadataParam,
345
+ GetCopilotFixturesOddsResponse200,
346
+ GetCopilotGraderOddsMetadataParam,
347
+ GetCopilotGraderOddsResponse200,
348
+ GetCopilotParlayOddsMetadataParam,
349
+ GetCopilotParlayOddsResponse200,
350
+ GetCopilotQueueStatusMetadataParam,
351
+ GetCopilotQueueStatusResponse200,
352
+ GetDivisionsMetadataParam,
353
+ GetDivisionsResponse200,
354
+ GetFixtureResultsQueueStatusMetadataParam,
355
+ GetFixtureResultsQueueStatusResponse200,
356
+ GetFixturesActiveMetadataParam,
357
+ GetFixturesActiveResponse200,
358
+ GetFixturesMetadataParam,
359
+ GetFixturesOddsHistoricalMetadataParam,
360
+ GetFixturesOddsHistoricalResponse200,
361
+ GetFixturesOddsMetadataParam,
362
+ GetFixturesOddsResponse200,
363
+ GetFixturesPlayerResultsLastXMetadataParam,
364
+ GetFixturesPlayerResultsLastXResponse200,
365
+ GetFixturesPlayerResultsMetadataParam,
366
+ GetFixturesPlayerResultsResponse200,
367
+ GetFixturesResponse200,
368
+ GetFixturesResultsHeadToHeadMetadataParam,
369
+ GetFixturesResultsHeadToHeadResponse200,
370
+ GetFixturesResultsMetadataParam,
371
+ GetFixturesResultsResponse200,
372
+ GetFuturesMetadataParam,
373
+ GetFuturesOddsMetadataParam,
374
+ GetFuturesOddsResponse200,
375
+ GetFuturesResponse200,
376
+ GetGraderFuturesMetadataParam,
377
+ GetGraderFuturesResponse200,
378
+ GetGraderOddsMetadataParam,
379
+ GetGraderOddsResponse200,
380
+ GetInjuriesMetadataParam,
381
+ GetInjuriesResponse200,
382
+ GetLeaguesActiveMetadataParam,
383
+ GetLeaguesActiveResponse200,
384
+ GetLeaguesMetadataParam,
385
+ GetLeaguesResponse200,
386
+ GetMarketsActiveMetadataParam,
387
+ GetMarketsActiveResponse200,
388
+ GetMarketsMetadataParam,
389
+ GetMarketsResponse200,
390
+ GetMarketsSettleableMetadataParam,
391
+ GetMarketsSettleableResponse200,
392
+ GetPlayersMetadataParam,
393
+ GetPlayersResponse200,
394
+ GetSportsActiveResponse200,
395
+ GetSportsResponse200,
396
+ GetSportsbooksActiveMetadataParam,
397
+ GetSportsbooksActiveResponse200,
398
+ GetSportsbooksLastPolledMetadataParam,
399
+ GetSportsbooksLastPolledResponse200,
400
+ GetSportsbooksResponse200,
401
+ GetStreamCopilotSportOddsMetadataParam,
402
+ GetStreamCopilotSportOddsResponse200,
403
+ GetStreamOddsSportMetadataParam,
404
+ GetStreamOddsSportResponse200,
405
+ GetStreamResultsSportMetadataParam,
406
+ GetStreamResultsSportResponse200,
407
+ GetTeamsMetadataParam,
408
+ GetTeamsResponse200,
409
+ GetTournamentsMetadataParam,
410
+ GetTournamentsResponse200,
411
+ GetTournamentsResultsMetadataParam,
412
+ GetTournamentsResultsResponse200,
413
+ PostCopilotQueueStartBodyParam,
414
+ PostCopilotQueueStartResponse200,
415
+ PostCopilotQueueStopBodyParam,
416
+ PostCopilotQueueStopResponse200,
417
+ PostFixtureResultsQueueStartBodyParam,
418
+ PostFixtureResultsQueueStartResponse200,
419
+ PostFixtureResultsQueueStopBodyParam,
420
+ PostFixtureResultsQueueStopResponse200,
421
+ PostParlayOddsBodyParam,
422
+ PostParlayOddsMetadataParam,
423
+ PostParlayOddsResponse200,
424
+ } from "./types";
@@ -0,0 +1,245 @@
1
+ import type { FromSchema } from "json-schema-to-ts";
2
+ import * as schemas from "./schemas";
3
+
4
+ export type GetConferencesMetadataParam = FromSchema<
5
+ typeof schemas.GetConferences.metadata
6
+ >;
7
+ export type GetConferencesResponse200 = FromSchema<
8
+ (typeof schemas.GetConferences.response)["200"]
9
+ >;
10
+ export type GetCopilotFixturesOddsMetadataParam = FromSchema<
11
+ typeof schemas.GetCopilotFixturesOdds.metadata
12
+ >;
13
+ export type GetCopilotFixturesOddsResponse200 = FromSchema<
14
+ (typeof schemas.GetCopilotFixturesOdds.response)["200"]
15
+ >;
16
+ export type GetCopilotGraderOddsMetadataParam = FromSchema<
17
+ typeof schemas.GetCopilotGraderOdds.metadata
18
+ >;
19
+ export type GetCopilotGraderOddsResponse200 = FromSchema<
20
+ (typeof schemas.GetCopilotGraderOdds.response)["200"]
21
+ >;
22
+ export type GetCopilotParlayOddsMetadataParam = FromSchema<
23
+ typeof schemas.GetCopilotParlayOdds.metadata
24
+ >;
25
+ export type GetCopilotParlayOddsResponse200 = FromSchema<
26
+ (typeof schemas.GetCopilotParlayOdds.response)["200"]
27
+ >;
28
+ export type GetCopilotQueueStatusMetadataParam = FromSchema<
29
+ typeof schemas.GetCopilotQueueStatus.metadata
30
+ >;
31
+ export type GetCopilotQueueStatusResponse200 = FromSchema<
32
+ (typeof schemas.GetCopilotQueueStatus.response)["200"]
33
+ >;
34
+ export type GetDivisionsMetadataParam = FromSchema<
35
+ typeof schemas.GetDivisions.metadata
36
+ >;
37
+ export type GetDivisionsResponse200 = FromSchema<
38
+ (typeof schemas.GetDivisions.response)["200"]
39
+ >;
40
+ export type GetFixtureResultsQueueStatusMetadataParam = FromSchema<
41
+ typeof schemas.GetFixtureResultsQueueStatus.metadata
42
+ >;
43
+ export type GetFixtureResultsQueueStatusResponse200 = FromSchema<
44
+ (typeof schemas.GetFixtureResultsQueueStatus.response)["200"]
45
+ >;
46
+ export type GetFixturesActiveMetadataParam = FromSchema<
47
+ typeof schemas.GetFixturesActive.metadata
48
+ >;
49
+ export type GetFixturesActiveResponse200 = FromSchema<
50
+ (typeof schemas.GetFixturesActive.response)["200"]
51
+ >;
52
+ export type GetFixturesMetadataParam = FromSchema<
53
+ typeof schemas.GetFixtures.metadata
54
+ >;
55
+ export type GetFixturesOddsHistoricalMetadataParam = FromSchema<
56
+ typeof schemas.GetFixturesOddsHistorical.metadata
57
+ >;
58
+ export type GetFixturesOddsHistoricalResponse200 = FromSchema<
59
+ (typeof schemas.GetFixturesOddsHistorical.response)["200"]
60
+ >;
61
+ export type GetFixturesOddsMetadataParam = FromSchema<
62
+ typeof schemas.GetFixturesOdds.metadata
63
+ >;
64
+ export type GetFixturesOddsResponse200 = FromSchema<
65
+ (typeof schemas.GetFixturesOdds.response)["200"]
66
+ >;
67
+ export type GetFixturesPlayerResultsLastXMetadataParam = FromSchema<
68
+ typeof schemas.GetFixturesPlayerResultsLastX.metadata
69
+ >;
70
+ export type GetFixturesPlayerResultsLastXResponse200 = FromSchema<
71
+ (typeof schemas.GetFixturesPlayerResultsLastX.response)["200"]
72
+ >;
73
+ export type GetFixturesPlayerResultsMetadataParam = FromSchema<
74
+ typeof schemas.GetFixturesPlayerResults.metadata
75
+ >;
76
+ export type GetFixturesPlayerResultsResponse200 = FromSchema<
77
+ (typeof schemas.GetFixturesPlayerResults.response)["200"]
78
+ >;
79
+ export type GetFixturesResponse200 = FromSchema<
80
+ (typeof schemas.GetFixtures.response)["200"]
81
+ >;
82
+ export type GetFixturesResultsHeadToHeadMetadataParam = FromSchema<
83
+ typeof schemas.GetFixturesResultsHeadToHead.metadata
84
+ >;
85
+ export type GetFixturesResultsHeadToHeadResponse200 = FromSchema<any>;
86
+ export type GetFixturesResultsMetadataParam = FromSchema<
87
+ typeof schemas.GetFixturesResults.metadata
88
+ >;
89
+ export type GetFixturesResultsResponse200 = FromSchema<any>;
90
+ export type GetFuturesMetadataParam = FromSchema<
91
+ typeof schemas.GetFutures.metadata
92
+ >;
93
+ export type GetFuturesOddsMetadataParam = FromSchema<
94
+ typeof schemas.GetFuturesOdds.metadata
95
+ >;
96
+ export type GetFuturesOddsResponse200 = FromSchema<
97
+ (typeof schemas.GetFuturesOdds.response)["200"]
98
+ >;
99
+ export type GetFuturesResponse200 = FromSchema<
100
+ (typeof schemas.GetFutures.response)["200"]
101
+ >;
102
+ export type GetGraderFuturesMetadataParam = FromSchema<
103
+ typeof schemas.GetGraderFutures.metadata
104
+ >;
105
+ export type GetGraderFuturesResponse200 = FromSchema<
106
+ (typeof schemas.GetGraderFutures.response)["200"]
107
+ >;
108
+ export type GetGraderOddsMetadataParam = FromSchema<
109
+ typeof schemas.GetGraderOdds.metadata
110
+ >;
111
+ export type GetGraderOddsResponse200 = FromSchema<
112
+ (typeof schemas.GetGraderOdds.response)["200"]
113
+ >;
114
+ export type GetInjuriesMetadataParam = FromSchema<
115
+ typeof schemas.GetInjuries.metadata
116
+ >;
117
+ export type GetInjuriesResponse200 = FromSchema<
118
+ (typeof schemas.GetInjuries.response)["200"]
119
+ >;
120
+ export type GetLeaguesActiveMetadataParam = FromSchema<
121
+ typeof schemas.GetLeaguesActive.metadata
122
+ >;
123
+ export type GetLeaguesActiveResponse200 = FromSchema<
124
+ (typeof schemas.GetLeaguesActive.response)["200"]
125
+ >;
126
+ export type GetLeaguesMetadataParam = FromSchema<
127
+ typeof schemas.GetLeagues.metadata
128
+ >;
129
+ export type GetLeaguesResponse200 = FromSchema<
130
+ (typeof schemas.GetLeagues.response)["200"]
131
+ >;
132
+ export type GetMarketsActiveMetadataParam = FromSchema<
133
+ typeof schemas.GetMarketsActive.metadata
134
+ >;
135
+ export type GetMarketsActiveResponse200 = FromSchema<
136
+ (typeof schemas.GetMarketsActive.response)["200"]
137
+ >;
138
+ export type GetMarketsMetadataParam = FromSchema<
139
+ typeof schemas.GetMarkets.metadata
140
+ >;
141
+ export type GetMarketsResponse200 = FromSchema<
142
+ (typeof schemas.GetMarkets.response)["200"]
143
+ >;
144
+ export type GetMarketsSettleableMetadataParam = FromSchema<
145
+ typeof schemas.GetMarketsSettleable.metadata
146
+ >;
147
+ export type GetMarketsSettleableResponse200 = FromSchema<
148
+ (typeof schemas.GetMarketsSettleable.response)["200"]
149
+ >;
150
+ export type GetPlayersMetadataParam = FromSchema<
151
+ typeof schemas.GetPlayers.metadata
152
+ >;
153
+ export type GetPlayersResponse200 = FromSchema<
154
+ (typeof schemas.GetPlayers.response)["200"]
155
+ >;
156
+ export type GetSportsActiveResponse200 = FromSchema<
157
+ (typeof schemas.GetSportsActive.response)["200"]
158
+ >;
159
+ export type GetSportsResponse200 = FromSchema<
160
+ (typeof schemas.GetSports.response)["200"]
161
+ >;
162
+ export type GetSportsbooksActiveMetadataParam = FromSchema<
163
+ typeof schemas.GetSportsbooksActive.metadata
164
+ >;
165
+ export type GetSportsbooksActiveResponse200 = FromSchema<
166
+ (typeof schemas.GetSportsbooksActive.response)["200"]
167
+ >;
168
+ export type GetSportsbooksLastPolledMetadataParam = FromSchema<
169
+ typeof schemas.GetSportsbooksLastPolled.metadata
170
+ >;
171
+ export type GetSportsbooksLastPolledResponse200 = FromSchema<
172
+ (typeof schemas.GetSportsbooksLastPolled.response)["200"]
173
+ >;
174
+ export type GetSportsbooksResponse200 = FromSchema<
175
+ (typeof schemas.GetSportsbooks.response)["200"]
176
+ >;
177
+ export type GetStreamCopilotSportOddsMetadataParam = FromSchema<
178
+ typeof schemas.GetStreamCopilotSportOdds.metadata
179
+ >;
180
+ export type GetStreamCopilotSportOddsResponse200 = FromSchema<
181
+ (typeof schemas.GetStreamCopilotSportOdds.response)["200"]
182
+ >;
183
+ export type GetStreamOddsSportMetadataParam = FromSchema<
184
+ typeof schemas.GetStreamOddsSport.metadata
185
+ >;
186
+ export type GetStreamOddsSportResponse200 = FromSchema<
187
+ (typeof schemas.GetStreamOddsSport.response)["200"]
188
+ >;
189
+ export type GetStreamResultsSportMetadataParam = FromSchema<
190
+ typeof schemas.GetStreamResultsSport.metadata
191
+ >;
192
+ export type GetStreamResultsSportResponse200 = FromSchema<
193
+ (typeof schemas.GetStreamResultsSport.response)["200"]
194
+ >;
195
+ export type GetTeamsMetadataParam = FromSchema<
196
+ typeof schemas.GetTeams.metadata
197
+ >;
198
+ export type GetTeamsResponse200 = FromSchema<
199
+ (typeof schemas.GetTeams.response)["200"]
200
+ >;
201
+ export type GetTournamentsMetadataParam = FromSchema<
202
+ typeof schemas.GetTournaments.metadata
203
+ >;
204
+ export type GetTournamentsResponse200 = FromSchema<
205
+ (typeof schemas.GetTournaments.response)["200"]
206
+ >;
207
+ export type GetTournamentsResultsMetadataParam = FromSchema<
208
+ typeof schemas.GetTournamentsResults.metadata
209
+ >;
210
+ export type GetTournamentsResultsResponse200 = FromSchema<
211
+ (typeof schemas.GetTournamentsResults.response)["200"]
212
+ >;
213
+ export type PostCopilotQueueStartBodyParam = FromSchema<
214
+ typeof schemas.PostCopilotQueueStart.body
215
+ >;
216
+ export type PostCopilotQueueStartResponse200 = FromSchema<
217
+ (typeof schemas.PostCopilotQueueStart.response)["200"]
218
+ >;
219
+ export type PostCopilotQueueStopBodyParam = FromSchema<
220
+ typeof schemas.PostCopilotQueueStop.body
221
+ >;
222
+ export type PostCopilotQueueStopResponse200 = FromSchema<
223
+ (typeof schemas.PostCopilotQueueStop.response)["200"]
224
+ >;
225
+ export type PostFixtureResultsQueueStartBodyParam = FromSchema<
226
+ typeof schemas.PostFixtureResultsQueueStart.body
227
+ >;
228
+ export type PostFixtureResultsQueueStartResponse200 = FromSchema<
229
+ (typeof schemas.PostFixtureResultsQueueStart.response)["200"]
230
+ >;
231
+ export type PostFixtureResultsQueueStopBodyParam = FromSchema<
232
+ typeof schemas.PostFixtureResultsQueueStop.body
233
+ >;
234
+ export type PostFixtureResultsQueueStopResponse200 = FromSchema<
235
+ (typeof schemas.PostFixtureResultsQueueStop.response)["200"]
236
+ >;
237
+ export type PostParlayOddsBodyParam = FromSchema<
238
+ typeof schemas.PostParlayOdds.body
239
+ >;
240
+ export type PostParlayOddsMetadataParam = FromSchema<
241
+ typeof schemas.PostParlayOdds.metadata
242
+ >;
243
+ export type PostParlayOddsResponse200 = FromSchema<
244
+ (typeof schemas.PostParlayOdds.response)["200"]
245
+ >;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winible/winible-typed",
3
- "version": "2.78.1",
3
+ "version": "2.79.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -9,7 +9,8 @@
9
9
  "./dist/src/types": "./dist/src/types.js",
10
10
  "./event-collector-models": "./dist/event-collector-models/index.js",
11
11
  "./utils": "./dist/utils/index.js",
12
- "./utils/lambdaUtils": "./dist/utils/lambdaUtils/index.js"
12
+ "./utils/lambdaUtils": "./dist/utils/lambdaUtils/index.js",
13
+ "./opticodds": "./dist/opticodds/index.js"
13
14
  },
14
15
  "scripts": {
15
16
  "start": "nf start",
@@ -24,6 +25,9 @@
24
25
  "author": "Clay Jones",
25
26
  "license": "ISC",
26
27
  "dependencies": {
28
+ "api": "^6.1.3",
29
+ "json-schema-to-ts": "^2.12.0",
30
+ "oas": "^20.11.0",
27
31
  "@paypal/checkout-server-sdk": "^1.0.2",
28
32
  "@sendgrid/mail": "^7.4.4",
29
33
  "@slack/bolt": "^3.12.1",
@@ -82,6 +86,7 @@
82
86
  "utils/**/*",
83
87
  "support/**/*",
84
88
  "src/**/*",
89
+ "opticodds/**/*",
85
90
  "index.ts",
86
91
  "dist/**/*"
87
92
  ]