@stadar/sdk 0.1.7
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/README.md +62 -0
- package/dist/apis/AccountApi.d.ts +248 -0
- package/dist/apis/AccountApi.d.ts.map +1 -0
- package/dist/apis/AccountApi.js +228 -0
- package/dist/apis/AccountApi.js.map +1 -0
- package/dist/apis/AuthApi.d.ts +232 -0
- package/dist/apis/AuthApi.d.ts.map +1 -0
- package/dist/apis/AuthApi.js +213 -0
- package/dist/apis/AuthApi.js.map +1 -0
- package/dist/apis/BillingApi.d.ts +103 -0
- package/dist/apis/BillingApi.d.ts.map +1 -0
- package/dist/apis/BillingApi.js +92 -0
- package/dist/apis/BillingApi.js.map +1 -0
- package/dist/apis/GamesApi.d.ts +96 -0
- package/dist/apis/GamesApi.d.ts.map +1 -0
- package/dist/apis/GamesApi.js +100 -0
- package/dist/apis/GamesApi.js.map +1 -0
- package/dist/apis/LeaguesApi.d.ts +214 -0
- package/dist/apis/LeaguesApi.d.ts.map +1 -0
- package/dist/apis/LeaguesApi.js +225 -0
- package/dist/apis/LeaguesApi.js.map +1 -0
- package/dist/apis/MatchesApi.d.ts +178 -0
- package/dist/apis/MatchesApi.d.ts.map +1 -0
- package/dist/apis/MatchesApi.js +183 -0
- package/dist/apis/MatchesApi.js.map +1 -0
- package/dist/apis/MetaApi.d.ts +160 -0
- package/dist/apis/MetaApi.d.ts.map +1 -0
- package/dist/apis/MetaApi.js +151 -0
- package/dist/apis/MetaApi.js.map +1 -0
- package/dist/apis/SeriesApi.d.ts +211 -0
- package/dist/apis/SeriesApi.d.ts.map +1 -0
- package/dist/apis/SeriesApi.js +223 -0
- package/dist/apis/SeriesApi.js.map +1 -0
- package/dist/apis/TournamentsApi.d.ts +149 -0
- package/dist/apis/TournamentsApi.d.ts.map +1 -0
- package/dist/apis/TournamentsApi.js +149 -0
- package/dist/apis/TournamentsApi.js.map +1 -0
- package/dist/apis/WebhooksApi.d.ts +173 -0
- package/dist/apis/WebhooksApi.d.ts.map +1 -0
- package/dist/apis/WebhooksApi.js +157 -0
- package/dist/apis/WebhooksApi.js.map +1 -0
- package/dist/apis/index.d.ts +11 -0
- package/dist/apis/index.d.ts.map +1 -0
- package/dist/apis/index.js +13 -0
- package/dist/apis/index.js.map +1 -0
- package/dist/from_env.d.ts +22 -0
- package/dist/from_env.d.ts.map +1 -0
- package/dist/from_env.js +57 -0
- package/dist/from_env.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/models/APIKeySummary.d.ts +57 -0
- package/dist/models/APIKeySummary.d.ts.map +1 -0
- package/dist/models/APIKeySummary.js +58 -0
- package/dist/models/APIKeySummary.js.map +1 -0
- package/dist/models/AccountCreateKey201Response.d.ts +77 -0
- package/dist/models/AccountCreateKey201Response.d.ts.map +1 -0
- package/dist/models/AccountCreateKey201Response.js +69 -0
- package/dist/models/AccountCreateKey201Response.js.map +1 -0
- package/dist/models/AccountCreateKeyRequest.d.ts +33 -0
- package/dist/models/AccountCreateKeyRequest.d.ts.map +1 -0
- package/dist/models/AccountCreateKeyRequest.js +44 -0
- package/dist/models/AccountCreateKeyRequest.js.map +1 -0
- package/dist/models/AccountListKeys200Response.d.ts +34 -0
- package/dist/models/AccountListKeys200Response.d.ts.map +1 -0
- package/dist/models/AccountListKeys200Response.js +43 -0
- package/dist/models/AccountListKeys200Response.js.map +1 -0
- package/dist/models/AccountMeCapabilities200Response.d.ts +41 -0
- package/dist/models/AccountMeCapabilities200Response.d.ts.map +1 -0
- package/dist/models/AccountMeCapabilities200Response.js +46 -0
- package/dist/models/AccountMeCapabilities200Response.js.map +1 -0
- package/dist/models/AccountUsageRecent200Response.d.ts +34 -0
- package/dist/models/AccountUsageRecent200Response.d.ts.map +1 -0
- package/dist/models/AccountUsageRecent200Response.js +43 -0
- package/dist/models/AccountUsageRecent200Response.js.map +1 -0
- package/dist/models/AuthMeResponse.d.ts +41 -0
- package/dist/models/AuthMeResponse.d.ts.map +1 -0
- package/dist/models/AuthMeResponse.js +46 -0
- package/dist/models/AuthMeResponse.js.map +1 -0
- package/dist/models/AuthMeResponseData.d.ts +45 -0
- package/dist/models/AuthMeResponseData.d.ts.map +1 -0
- package/dist/models/AuthMeResponseData.js +46 -0
- package/dist/models/AuthMeResponseData.js.map +1 -0
- package/dist/models/CS2PreviewExtras.d.ts +44 -0
- package/dist/models/CS2PreviewExtras.d.ts.map +1 -0
- package/dist/models/CS2PreviewExtras.js +47 -0
- package/dist/models/CS2PreviewExtras.js.map +1 -0
- package/dist/models/CS2PreviewExtrasMapVetoHistory.d.ts +51 -0
- package/dist/models/CS2PreviewExtrasMapVetoHistory.d.ts.map +1 -0
- package/dist/models/CS2PreviewExtrasMapVetoHistory.js +48 -0
- package/dist/models/CS2PreviewExtrasMapVetoHistory.js.map +1 -0
- package/dist/models/CS2PreviewExtrasMapWinRateValue.d.ts +39 -0
- package/dist/models/CS2PreviewExtrasMapWinRateValue.d.ts.map +1 -0
- package/dist/models/CS2PreviewExtrasMapWinRateValue.js +44 -0
- package/dist/models/CS2PreviewExtrasMapWinRateValue.js.map +1 -0
- package/dist/models/CapabilitySet.d.ts +72 -0
- package/dist/models/CapabilitySet.d.ts.map +1 -0
- package/dist/models/CapabilitySet.js +75 -0
- package/dist/models/CapabilitySet.js.map +1 -0
- package/dist/models/ErrorBody.d.ts +53 -0
- package/dist/models/ErrorBody.d.ts.map +1 -0
- package/dist/models/ErrorBody.js +52 -0
- package/dist/models/ErrorBody.js.map +1 -0
- package/dist/models/ErrorEnvelope.d.ts +34 -0
- package/dist/models/ErrorEnvelope.d.ts.map +1 -0
- package/dist/models/ErrorEnvelope.js +45 -0
- package/dist/models/ErrorEnvelope.js.map +1 -0
- package/dist/models/Game.d.ts +78 -0
- package/dist/models/Game.d.ts.map +1 -0
- package/dist/models/Game.js +62 -0
- package/dist/models/Game.js.map +1 -0
- package/dist/models/GameEnvelope.d.ts +41 -0
- package/dist/models/GameEnvelope.d.ts.map +1 -0
- package/dist/models/GameEnvelope.js +46 -0
- package/dist/models/GameEnvelope.js.map +1 -0
- package/dist/models/GamesListResponse.d.ts +41 -0
- package/dist/models/GamesListResponse.d.ts.map +1 -0
- package/dist/models/GamesListResponse.js +46 -0
- package/dist/models/GamesListResponse.js.map +1 -0
- package/dist/models/HeadToHead.d.ts +51 -0
- package/dist/models/HeadToHead.d.ts.map +1 -0
- package/dist/models/HeadToHead.js +54 -0
- package/dist/models/HeadToHead.js.map +1 -0
- package/dist/models/Healthz200Response.d.ts +40 -0
- package/dist/models/Healthz200Response.d.ts.map +1 -0
- package/dist/models/Healthz200Response.js +48 -0
- package/dist/models/Healthz200Response.js.map +1 -0
- package/dist/models/Last5Result.d.ts +65 -0
- package/dist/models/Last5Result.d.ts.map +1 -0
- package/dist/models/Last5Result.js +67 -0
- package/dist/models/Last5Result.js.map +1 -0
- package/dist/models/League.d.ts +81 -0
- package/dist/models/League.d.ts.map +1 -0
- package/dist/models/League.js +58 -0
- package/dist/models/League.js.map +1 -0
- package/dist/models/LeagueEnvelope.d.ts +41 -0
- package/dist/models/LeagueEnvelope.d.ts.map +1 -0
- package/dist/models/LeagueEnvelope.js +46 -0
- package/dist/models/LeagueEnvelope.js.map +1 -0
- package/dist/models/LeagueSummary.d.ts +45 -0
- package/dist/models/LeagueSummary.d.ts.map +1 -0
- package/dist/models/LeagueSummary.js +46 -0
- package/dist/models/LeagueSummary.js.map +1 -0
- package/dist/models/LeaguesListResponse.d.ts +41 -0
- package/dist/models/LeaguesListResponse.d.ts.map +1 -0
- package/dist/models/LeaguesListResponse.js +46 -0
- package/dist/models/LeaguesListResponse.js.map +1 -0
- package/dist/models/Match.d.ts +145 -0
- package/dist/models/Match.d.ts.map +1 -0
- package/dist/models/Match.js +89 -0
- package/dist/models/Match.js.map +1 -0
- package/dist/models/MatchEnvelope.d.ts +41 -0
- package/dist/models/MatchEnvelope.d.ts.map +1 -0
- package/dist/models/MatchEnvelope.js +46 -0
- package/dist/models/MatchEnvelope.js.map +1 -0
- package/dist/models/MatchParticipant.d.ts +57 -0
- package/dist/models/MatchParticipant.d.ts.map +1 -0
- package/dist/models/MatchParticipant.js +50 -0
- package/dist/models/MatchParticipant.js.map +1 -0
- package/dist/models/MatchPreview.d.ts +62 -0
- package/dist/models/MatchPreview.d.ts.map +1 -0
- package/dist/models/MatchPreview.js +63 -0
- package/dist/models/MatchPreview.js.map +1 -0
- package/dist/models/MatchPreviewEnvelope.d.ts +41 -0
- package/dist/models/MatchPreviewEnvelope.d.ts.map +1 -0
- package/dist/models/MatchPreviewEnvelope.js +46 -0
- package/dist/models/MatchPreviewEnvelope.js.map +1 -0
- package/dist/models/MatchPreviewForm.d.ts +40 -0
- package/dist/models/MatchPreviewForm.d.ts.map +1 -0
- package/dist/models/MatchPreviewForm.js +49 -0
- package/dist/models/MatchPreviewForm.js.map +1 -0
- package/dist/models/MatchPreviewLast5.d.ts +40 -0
- package/dist/models/MatchPreviewLast5.d.ts.map +1 -0
- package/dist/models/MatchPreviewLast5.js +49 -0
- package/dist/models/MatchPreviewLast5.js.map +1 -0
- package/dist/models/MatchesListResponse.d.ts +41 -0
- package/dist/models/MatchesListResponse.d.ts.map +1 -0
- package/dist/models/MatchesListResponse.js +46 -0
- package/dist/models/MatchesListResponse.js.map +1 -0
- package/dist/models/Meta.d.ts +59 -0
- package/dist/models/Meta.d.ts.map +1 -0
- package/dist/models/Meta.js +52 -0
- package/dist/models/Meta.js.map +1 -0
- package/dist/models/Paging.d.ts +45 -0
- package/dist/models/Paging.d.ts.map +1 -0
- package/dist/models/Paging.js +46 -0
- package/dist/models/Paging.js.map +1 -0
- package/dist/models/RootVersion200Response.d.ts +45 -0
- package/dist/models/RootVersion200Response.d.ts.map +1 -0
- package/dist/models/RootVersion200Response.js +46 -0
- package/dist/models/RootVersion200Response.js.map +1 -0
- package/dist/models/Series.d.ts +89 -0
- package/dist/models/Series.d.ts.map +1 -0
- package/dist/models/Series.js +62 -0
- package/dist/models/Series.js.map +1 -0
- package/dist/models/SeriesEnvelope.d.ts +41 -0
- package/dist/models/SeriesEnvelope.d.ts.map +1 -0
- package/dist/models/SeriesEnvelope.js +46 -0
- package/dist/models/SeriesEnvelope.js.map +1 -0
- package/dist/models/SeriesListResponse.d.ts +41 -0
- package/dist/models/SeriesListResponse.d.ts.map +1 -0
- package/dist/models/SeriesListResponse.js +46 -0
- package/dist/models/SeriesListResponse.js.map +1 -0
- package/dist/models/SeriesSummary.d.ts +45 -0
- package/dist/models/SeriesSummary.d.ts.map +1 -0
- package/dist/models/SeriesSummary.js +46 -0
- package/dist/models/SeriesSummary.js.map +1 -0
- package/dist/models/SeriesWinner.d.ts +39 -0
- package/dist/models/SeriesWinner.d.ts.map +1 -0
- package/dist/models/SeriesWinner.js +44 -0
- package/dist/models/SeriesWinner.js.map +1 -0
- package/dist/models/SignupRequest.d.ts +39 -0
- package/dist/models/SignupRequest.d.ts.map +1 -0
- package/dist/models/SignupRequest.js +48 -0
- package/dist/models/SignupRequest.js.map +1 -0
- package/dist/models/SourceCredit.d.ts +45 -0
- package/dist/models/SourceCredit.d.ts.map +1 -0
- package/dist/models/SourceCredit.js +52 -0
- package/dist/models/SourceCredit.js.map +1 -0
- package/dist/models/Stream.d.ts +57 -0
- package/dist/models/Stream.d.ts.map +1 -0
- package/dist/models/Stream.js +50 -0
- package/dist/models/Stream.js.map +1 -0
- package/dist/models/TeamForm.d.ts +59 -0
- package/dist/models/TeamForm.d.ts.map +1 -0
- package/dist/models/TeamForm.js +63 -0
- package/dist/models/TeamForm.js.map +1 -0
- package/dist/models/Tournament.d.ts +148 -0
- package/dist/models/Tournament.d.ts.map +1 -0
- package/dist/models/Tournament.js +88 -0
- package/dist/models/Tournament.js.map +1 -0
- package/dist/models/TournamentEnvelope.d.ts +41 -0
- package/dist/models/TournamentEnvelope.d.ts.map +1 -0
- package/dist/models/TournamentEnvelope.js +46 -0
- package/dist/models/TournamentEnvelope.js.map +1 -0
- package/dist/models/TournamentPrizePool.d.ts +39 -0
- package/dist/models/TournamentPrizePool.d.ts.map +1 -0
- package/dist/models/TournamentPrizePool.js +44 -0
- package/dist/models/TournamentPrizePool.js.map +1 -0
- package/dist/models/TournamentSummary.d.ts +57 -0
- package/dist/models/TournamentSummary.d.ts.map +1 -0
- package/dist/models/TournamentSummary.js +50 -0
- package/dist/models/TournamentSummary.js.map +1 -0
- package/dist/models/TournamentsListResponse.d.ts +41 -0
- package/dist/models/TournamentsListResponse.d.ts.map +1 -0
- package/dist/models/TournamentsListResponse.js +46 -0
- package/dist/models/TournamentsListResponse.js.map +1 -0
- package/dist/models/UsageRow.d.ts +63 -0
- package/dist/models/UsageRow.d.ts.map +1 -0
- package/dist/models/UsageRow.js +52 -0
- package/dist/models/UsageRow.js.map +1 -0
- package/dist/models/UsageToday.d.ts +57 -0
- package/dist/models/UsageToday.d.ts.map +1 -0
- package/dist/models/UsageToday.js +50 -0
- package/dist/models/UsageToday.js.map +1 -0
- package/dist/models/WebhookSubscription.d.ts +81 -0
- package/dist/models/WebhookSubscription.d.ts.map +1 -0
- package/dist/models/WebhookSubscription.js +66 -0
- package/dist/models/WebhookSubscription.js.map +1 -0
- package/dist/models/WebhookSubscriptionRequest.d.ts +67 -0
- package/dist/models/WebhookSubscriptionRequest.d.ts.map +1 -0
- package/dist/models/WebhookSubscriptionRequest.js +63 -0
- package/dist/models/WebhookSubscriptionRequest.js.map +1 -0
- package/dist/models/WebhooksCreate201Response.d.ts +87 -0
- package/dist/models/WebhooksCreate201Response.d.ts.map +1 -0
- package/dist/models/WebhooksCreate201Response.js +68 -0
- package/dist/models/WebhooksCreate201Response.js.map +1 -0
- package/dist/models/WebhooksList200Response.d.ts +34 -0
- package/dist/models/WebhooksList200Response.d.ts.map +1 -0
- package/dist/models/WebhooksList200Response.js +43 -0
- package/dist/models/WebhooksList200Response.js.map +1 -0
- package/dist/models/index.d.ts +56 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +58 -0
- package/dist/models/index.js.map +1 -0
- package/dist/runtime.d.ts +185 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +338 -0
- package/dist/runtime.js.map +1 -0
- package/dist/webhooks.d.ts +29 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +77 -0
- package/dist/webhooks.js.map +1 -0
- package/package.json +60 -0
- package/src/apis/AccountApi.ts +474 -0
- package/src/apis/AuthApi.ts +446 -0
- package/src/apis/BillingApi.ts +180 -0
- package/src/apis/GamesApi.ts +195 -0
- package/src/apis/LeaguesApi.ts +457 -0
- package/src/apis/MatchesApi.ts +368 -0
- package/src/apis/MetaApi.ts +289 -0
- package/src/apis/SeriesApi.ts +454 -0
- package/src/apis/TournamentsApi.ts +290 -0
- package/src/apis/WebhooksApi.ts +336 -0
- package/src/apis/index.ts +12 -0
- package/src/from_env.ts +68 -0
- package/src/index.ts +5 -0
- package/src/models/APIKeySummary.ts +101 -0
- package/src/models/AccountCreateKey201Response.ts +128 -0
- package/src/models/AccountCreateKeyRequest.ts +66 -0
- package/src/models/AccountListKeys200Response.ts +73 -0
- package/src/models/AccountMeCapabilities200Response.ts +88 -0
- package/src/models/AccountUsageRecent200Response.ts +73 -0
- package/src/models/AuthMeResponse.ts +88 -0
- package/src/models/AuthMeResponseData.ts +81 -0
- package/src/models/CS2PreviewExtras.ts +89 -0
- package/src/models/CS2PreviewExtrasMapVetoHistory.ts +89 -0
- package/src/models/CS2PreviewExtrasMapWinRateValue.ts +73 -0
- package/src/models/CapabilitySet.ts +114 -0
- package/src/models/ErrorBody.ts +91 -0
- package/src/models/ErrorEnvelope.ts +74 -0
- package/src/models/Game.ts +125 -0
- package/src/models/GameEnvelope.ts +88 -0
- package/src/models/GamesListResponse.ts +88 -0
- package/src/models/HeadToHead.ts +92 -0
- package/src/models/Healthz200Response.ts +75 -0
- package/src/models/Last5Result.ts +113 -0
- package/src/models/League.ts +129 -0
- package/src/models/LeagueEnvelope.ts +88 -0
- package/src/models/LeagueSummary.ts +81 -0
- package/src/models/LeaguesListResponse.ts +88 -0
- package/src/models/Match.ts +243 -0
- package/src/models/MatchEnvelope.ts +88 -0
- package/src/models/MatchParticipant.ts +97 -0
- package/src/models/MatchPreview.ts +137 -0
- package/src/models/MatchPreviewEnvelope.ts +88 -0
- package/src/models/MatchPreviewForm.ts +83 -0
- package/src/models/MatchPreviewLast5.ts +83 -0
- package/src/models/MatchesListResponse.ts +88 -0
- package/src/models/Meta.ts +112 -0
- package/src/models/Paging.ts +81 -0
- package/src/models/RootVersion200Response.ts +81 -0
- package/src/models/Series.ts +152 -0
- package/src/models/SeriesEnvelope.ts +88 -0
- package/src/models/SeriesListResponse.ts +88 -0
- package/src/models/SeriesSummary.ts +81 -0
- package/src/models/SeriesWinner.ts +73 -0
- package/src/models/SignupRequest.ts +75 -0
- package/src/models/SourceCredit.ts +84 -0
- package/src/models/Stream.ts +97 -0
- package/src/models/TeamForm.ts +104 -0
- package/src/models/Tournament.ts +236 -0
- package/src/models/TournamentEnvelope.ts +88 -0
- package/src/models/TournamentPrizePool.ts +73 -0
- package/src/models/TournamentSummary.ts +97 -0
- package/src/models/TournamentsListResponse.ts +88 -0
- package/src/models/UsageRow.ts +105 -0
- package/src/models/UsageToday.ts +97 -0
- package/src/models/WebhookSubscription.ts +133 -0
- package/src/models/WebhookSubscriptionRequest.ts +112 -0
- package/src/models/WebhooksCreate201Response.ts +141 -0
- package/src/models/WebhooksList200Response.ts +73 -0
- package/src/models/index.ts +57 -0
- package/src/runtime.ts +449 -0
- package/src/webhooks.ts +91 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stadar Esports Data API
|
|
5
|
+
* Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
* Contact: api@stadar.net
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Meta } from './Meta';
|
|
17
|
+
import {
|
|
18
|
+
MetaFromJSON,
|
|
19
|
+
MetaFromJSONTyped,
|
|
20
|
+
MetaToJSON,
|
|
21
|
+
MetaToJSONTyped,
|
|
22
|
+
} from './Meta';
|
|
23
|
+
import type { Match } from './Match';
|
|
24
|
+
import {
|
|
25
|
+
MatchFromJSON,
|
|
26
|
+
MatchFromJSONTyped,
|
|
27
|
+
MatchToJSON,
|
|
28
|
+
MatchToJSONTyped,
|
|
29
|
+
} from './Match';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface MatchEnvelope
|
|
35
|
+
*/
|
|
36
|
+
export interface MatchEnvelope {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Match}
|
|
40
|
+
* @memberof MatchEnvelope
|
|
41
|
+
*/
|
|
42
|
+
data?: Match;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Meta}
|
|
46
|
+
* @memberof MatchEnvelope
|
|
47
|
+
*/
|
|
48
|
+
meta?: Meta;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the MatchEnvelope interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfMatchEnvelope(value: object): value is MatchEnvelope {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function MatchEnvelopeFromJSON(json: any): MatchEnvelope {
|
|
59
|
+
return MatchEnvelopeFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function MatchEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchEnvelope {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'data': json['data'] == null ? undefined : MatchFromJSON(json['data']),
|
|
69
|
+
'meta': json['meta'] == null ? undefined : MetaFromJSON(json['meta']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function MatchEnvelopeToJSON(json: any): MatchEnvelope {
|
|
74
|
+
return MatchEnvelopeToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function MatchEnvelopeToJSONTyped(value?: MatchEnvelope | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': MatchToJSON(value['data']),
|
|
85
|
+
'meta': MetaToJSON(value['meta']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stadar Esports Data API
|
|
5
|
+
* Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
* Contact: api@stadar.net
|
|
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 MatchParticipant
|
|
20
|
+
*/
|
|
21
|
+
export interface MatchParticipant {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MatchParticipant
|
|
26
|
+
*/
|
|
27
|
+
teamId?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MatchParticipant
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof MatchParticipant
|
|
38
|
+
*/
|
|
39
|
+
score?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof MatchParticipant
|
|
44
|
+
*/
|
|
45
|
+
winner?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Per-team / per-player stats. Gated to Hobbyist+ via `match_stats`.
|
|
48
|
+
* @type {object}
|
|
49
|
+
* @memberof MatchParticipant
|
|
50
|
+
*/
|
|
51
|
+
stats?: object;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the MatchParticipant interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfMatchParticipant(value: object): value is MatchParticipant {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function MatchParticipantFromJSON(json: any): MatchParticipant {
|
|
62
|
+
return MatchParticipantFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function MatchParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchParticipant {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'teamId': json['team_id'] == null ? undefined : json['team_id'],
|
|
72
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
73
|
+
'score': json['score'] == null ? undefined : json['score'],
|
|
74
|
+
'winner': json['winner'] == null ? undefined : json['winner'],
|
|
75
|
+
'stats': json['stats'] == null ? undefined : json['stats'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function MatchParticipantToJSON(json: any): MatchParticipant {
|
|
80
|
+
return MatchParticipantToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function MatchParticipantToJSONTyped(value?: MatchParticipant | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'team_id': value['teamId'],
|
|
91
|
+
'name': value['name'],
|
|
92
|
+
'score': value['score'],
|
|
93
|
+
'winner': value['winner'],
|
|
94
|
+
'stats': value['stats'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stadar Esports Data API
|
|
5
|
+
* Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
* Contact: api@stadar.net
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MatchPreviewForm } from './MatchPreviewForm';
|
|
17
|
+
import {
|
|
18
|
+
MatchPreviewFormFromJSON,
|
|
19
|
+
MatchPreviewFormFromJSONTyped,
|
|
20
|
+
MatchPreviewFormToJSON,
|
|
21
|
+
MatchPreviewFormToJSONTyped,
|
|
22
|
+
} from './MatchPreviewForm';
|
|
23
|
+
import type { HeadToHead } from './HeadToHead';
|
|
24
|
+
import {
|
|
25
|
+
HeadToHeadFromJSON,
|
|
26
|
+
HeadToHeadFromJSONTyped,
|
|
27
|
+
HeadToHeadToJSON,
|
|
28
|
+
HeadToHeadToJSONTyped,
|
|
29
|
+
} from './HeadToHead';
|
|
30
|
+
import type { CS2PreviewExtras } from './CS2PreviewExtras';
|
|
31
|
+
import {
|
|
32
|
+
CS2PreviewExtrasFromJSON,
|
|
33
|
+
CS2PreviewExtrasFromJSONTyped,
|
|
34
|
+
CS2PreviewExtrasToJSON,
|
|
35
|
+
CS2PreviewExtrasToJSONTyped,
|
|
36
|
+
} from './CS2PreviewExtras';
|
|
37
|
+
import type { MatchPreviewLast5 } from './MatchPreviewLast5';
|
|
38
|
+
import {
|
|
39
|
+
MatchPreviewLast5FromJSON,
|
|
40
|
+
MatchPreviewLast5FromJSONTyped,
|
|
41
|
+
MatchPreviewLast5ToJSON,
|
|
42
|
+
MatchPreviewLast5ToJSONTyped,
|
|
43
|
+
} from './MatchPreviewLast5';
|
|
44
|
+
import type { Match } from './Match';
|
|
45
|
+
import {
|
|
46
|
+
MatchFromJSON,
|
|
47
|
+
MatchFromJSONTyped,
|
|
48
|
+
MatchToJSON,
|
|
49
|
+
MatchToJSONTyped,
|
|
50
|
+
} from './Match';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface MatchPreview
|
|
56
|
+
*/
|
|
57
|
+
export interface MatchPreview {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Match}
|
|
61
|
+
* @memberof MatchPreview
|
|
62
|
+
*/
|
|
63
|
+
match: Match;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {MatchPreviewForm}
|
|
67
|
+
* @memberof MatchPreview
|
|
68
|
+
*/
|
|
69
|
+
form: MatchPreviewForm;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {HeadToHead}
|
|
73
|
+
* @memberof MatchPreview
|
|
74
|
+
*/
|
|
75
|
+
headToHead: HeadToHead;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {MatchPreviewLast5}
|
|
79
|
+
* @memberof MatchPreview
|
|
80
|
+
*/
|
|
81
|
+
last5: MatchPreviewLast5;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {CS2PreviewExtras}
|
|
85
|
+
* @memberof MatchPreview
|
|
86
|
+
*/
|
|
87
|
+
cs2Specific?: CS2PreviewExtras;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the MatchPreview interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfMatchPreview(value: object): value is MatchPreview {
|
|
94
|
+
if (!('match' in value) || value['match'] === undefined) return false;
|
|
95
|
+
if (!('form' in value) || value['form'] === undefined) return false;
|
|
96
|
+
if (!('headToHead' in value) || value['headToHead'] === undefined) return false;
|
|
97
|
+
if (!('last5' in value) || value['last5'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function MatchPreviewFromJSON(json: any): MatchPreview {
|
|
102
|
+
return MatchPreviewFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function MatchPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchPreview {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'match': MatchFromJSON(json['match']),
|
|
112
|
+
'form': MatchPreviewFormFromJSON(json['form']),
|
|
113
|
+
'headToHead': HeadToHeadFromJSON(json['head_to_head']),
|
|
114
|
+
'last5': MatchPreviewLast5FromJSON(json['last_5']),
|
|
115
|
+
'cs2Specific': json['cs2_specific'] == null ? undefined : CS2PreviewExtrasFromJSON(json['cs2_specific']),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function MatchPreviewToJSON(json: any): MatchPreview {
|
|
120
|
+
return MatchPreviewToJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function MatchPreviewToJSONTyped(value?: MatchPreview | null, ignoreDiscriminator: boolean = false): any {
|
|
124
|
+
if (value == null) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'match': MatchToJSON(value['match']),
|
|
131
|
+
'form': MatchPreviewFormToJSON(value['form']),
|
|
132
|
+
'head_to_head': HeadToHeadToJSON(value['headToHead']),
|
|
133
|
+
'last_5': MatchPreviewLast5ToJSON(value['last5']),
|
|
134
|
+
'cs2_specific': CS2PreviewExtrasToJSON(value['cs2Specific']),
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stadar Esports Data API
|
|
5
|
+
* Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
* Contact: api@stadar.net
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Meta } from './Meta';
|
|
17
|
+
import {
|
|
18
|
+
MetaFromJSON,
|
|
19
|
+
MetaFromJSONTyped,
|
|
20
|
+
MetaToJSON,
|
|
21
|
+
MetaToJSONTyped,
|
|
22
|
+
} from './Meta';
|
|
23
|
+
import type { MatchPreview } from './MatchPreview';
|
|
24
|
+
import {
|
|
25
|
+
MatchPreviewFromJSON,
|
|
26
|
+
MatchPreviewFromJSONTyped,
|
|
27
|
+
MatchPreviewToJSON,
|
|
28
|
+
MatchPreviewToJSONTyped,
|
|
29
|
+
} from './MatchPreview';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface MatchPreviewEnvelope
|
|
35
|
+
*/
|
|
36
|
+
export interface MatchPreviewEnvelope {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {MatchPreview}
|
|
40
|
+
* @memberof MatchPreviewEnvelope
|
|
41
|
+
*/
|
|
42
|
+
data?: MatchPreview;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Meta}
|
|
46
|
+
* @memberof MatchPreviewEnvelope
|
|
47
|
+
*/
|
|
48
|
+
meta?: Meta;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the MatchPreviewEnvelope interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfMatchPreviewEnvelope(value: object): value is MatchPreviewEnvelope {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function MatchPreviewEnvelopeFromJSON(json: any): MatchPreviewEnvelope {
|
|
59
|
+
return MatchPreviewEnvelopeFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function MatchPreviewEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchPreviewEnvelope {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'data': json['data'] == null ? undefined : MatchPreviewFromJSON(json['data']),
|
|
69
|
+
'meta': json['meta'] == null ? undefined : MetaFromJSON(json['meta']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function MatchPreviewEnvelopeToJSON(json: any): MatchPreviewEnvelope {
|
|
74
|
+
return MatchPreviewEnvelopeToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function MatchPreviewEnvelopeToJSONTyped(value?: MatchPreviewEnvelope | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': MatchPreviewToJSON(value['data']),
|
|
85
|
+
'meta': MetaToJSON(value['meta']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stadar Esports Data API
|
|
5
|
+
* Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
* Contact: api@stadar.net
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { TeamForm } from './TeamForm';
|
|
17
|
+
import {
|
|
18
|
+
TeamFormFromJSON,
|
|
19
|
+
TeamFormFromJSONTyped,
|
|
20
|
+
TeamFormToJSON,
|
|
21
|
+
TeamFormToJSONTyped,
|
|
22
|
+
} from './TeamForm';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MatchPreviewForm
|
|
28
|
+
*/
|
|
29
|
+
export interface MatchPreviewForm {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {TeamForm}
|
|
33
|
+
* @memberof MatchPreviewForm
|
|
34
|
+
*/
|
|
35
|
+
teamA: TeamForm;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {TeamForm}
|
|
39
|
+
* @memberof MatchPreviewForm
|
|
40
|
+
*/
|
|
41
|
+
teamB: TeamForm;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the MatchPreviewForm interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfMatchPreviewForm(value: object): value is MatchPreviewForm {
|
|
48
|
+
if (!('teamA' in value) || value['teamA'] === undefined) return false;
|
|
49
|
+
if (!('teamB' in value) || value['teamB'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function MatchPreviewFormFromJSON(json: any): MatchPreviewForm {
|
|
54
|
+
return MatchPreviewFormFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function MatchPreviewFormFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchPreviewForm {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'teamA': TeamFormFromJSON(json['team_a']),
|
|
64
|
+
'teamB': TeamFormFromJSON(json['team_b']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function MatchPreviewFormToJSON(json: any): MatchPreviewForm {
|
|
69
|
+
return MatchPreviewFormToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function MatchPreviewFormToJSONTyped(value?: MatchPreviewForm | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'team_a': TeamFormToJSON(value['teamA']),
|
|
80
|
+
'team_b': TeamFormToJSON(value['teamB']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stadar Esports Data API
|
|
5
|
+
* Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
* Contact: api@stadar.net
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Last5Result } from './Last5Result';
|
|
17
|
+
import {
|
|
18
|
+
Last5ResultFromJSON,
|
|
19
|
+
Last5ResultFromJSONTyped,
|
|
20
|
+
Last5ResultToJSON,
|
|
21
|
+
Last5ResultToJSONTyped,
|
|
22
|
+
} from './Last5Result';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface MatchPreviewLast5
|
|
28
|
+
*/
|
|
29
|
+
export interface MatchPreviewLast5 {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<Last5Result>}
|
|
33
|
+
* @memberof MatchPreviewLast5
|
|
34
|
+
*/
|
|
35
|
+
teamA: Array<Last5Result>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<Last5Result>}
|
|
39
|
+
* @memberof MatchPreviewLast5
|
|
40
|
+
*/
|
|
41
|
+
teamB: Array<Last5Result>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the MatchPreviewLast5 interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfMatchPreviewLast5(value: object): value is MatchPreviewLast5 {
|
|
48
|
+
if (!('teamA' in value) || value['teamA'] === undefined) return false;
|
|
49
|
+
if (!('teamB' in value) || value['teamB'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function MatchPreviewLast5FromJSON(json: any): MatchPreviewLast5 {
|
|
54
|
+
return MatchPreviewLast5FromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function MatchPreviewLast5FromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchPreviewLast5 {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'teamA': ((json['team_a'] as Array<any>).map(Last5ResultFromJSON)),
|
|
64
|
+
'teamB': ((json['team_b'] as Array<any>).map(Last5ResultFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function MatchPreviewLast5ToJSON(json: any): MatchPreviewLast5 {
|
|
69
|
+
return MatchPreviewLast5ToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function MatchPreviewLast5ToJSONTyped(value?: MatchPreviewLast5 | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'team_a': ((value['teamA'] as Array<any>).map(Last5ResultToJSON)),
|
|
80
|
+
'team_b': ((value['teamB'] as Array<any>).map(Last5ResultToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Stadar Esports Data API
|
|
5
|
+
* Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
* Contact: api@stadar.net
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Meta } from './Meta';
|
|
17
|
+
import {
|
|
18
|
+
MetaFromJSON,
|
|
19
|
+
MetaFromJSONTyped,
|
|
20
|
+
MetaToJSON,
|
|
21
|
+
MetaToJSONTyped,
|
|
22
|
+
} from './Meta';
|
|
23
|
+
import type { Match } from './Match';
|
|
24
|
+
import {
|
|
25
|
+
MatchFromJSON,
|
|
26
|
+
MatchFromJSONTyped,
|
|
27
|
+
MatchToJSON,
|
|
28
|
+
MatchToJSONTyped,
|
|
29
|
+
} from './Match';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface MatchesListResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface MatchesListResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<Match>}
|
|
40
|
+
* @memberof MatchesListResponse
|
|
41
|
+
*/
|
|
42
|
+
data?: Array<Match>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Meta}
|
|
46
|
+
* @memberof MatchesListResponse
|
|
47
|
+
*/
|
|
48
|
+
meta?: Meta;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the MatchesListResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfMatchesListResponse(value: object): value is MatchesListResponse {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function MatchesListResponseFromJSON(json: any): MatchesListResponse {
|
|
59
|
+
return MatchesListResponseFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function MatchesListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchesListResponse {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(MatchFromJSON)),
|
|
69
|
+
'meta': json['meta'] == null ? undefined : MetaFromJSON(json['meta']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function MatchesListResponseToJSON(json: any): MatchesListResponse {
|
|
74
|
+
return MatchesListResponseToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function MatchesListResponseToJSONTyped(value?: MatchesListResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(MatchToJSON)),
|
|
85
|
+
'meta': MetaToJSON(value['meta']),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|