@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 @@
|
|
|
1
|
+
{"version":3,"file":"BillingApi.js","sourceRoot":"","sources":["../../src/apis/BillingApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAiEtC;;GAEG;AACH,MAAM,OAAO,UAAW,S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YACH,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,CAAC;IACN,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAC7D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QAEnE,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,aAA0D;QAC1E,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC/C,CAAC;CAEJ;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;CACR,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stadar Esports Data API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
* Contact: api@stadar.net
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type GameEnvelope } from '../models/GameEnvelope';
|
|
14
|
+
import { type GamesListResponse } from '../models/GamesListResponse';
|
|
15
|
+
export interface GamesGetRequest {
|
|
16
|
+
slug: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* GamesApi - interface
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface GamesApiInterface
|
|
23
|
+
*/
|
|
24
|
+
export interface GamesApiInterface {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for gamesGet without sending the request
|
|
27
|
+
* @param {string} slug
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
* @memberof GamesApiInterface
|
|
30
|
+
*/
|
|
31
|
+
gamesGetRequestOpts(requestParameters: GamesGetRequest): Promise<runtime.RequestOpts>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Get a single game
|
|
35
|
+
* @param {string} slug
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
* @memberof GamesApiInterface
|
|
39
|
+
*/
|
|
40
|
+
gamesGetRaw(requestParameters: GamesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GameEnvelope>>;
|
|
41
|
+
/**
|
|
42
|
+
* Get a single game
|
|
43
|
+
*/
|
|
44
|
+
gamesGet(requestParameters: GamesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GameEnvelope>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates request options for gamesList without sending the request
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
* @memberof GamesApiInterface
|
|
49
|
+
*/
|
|
50
|
+
gamesListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns the static catalog of games we cover. Per ADR-0011, each game\'s `features` array tells you which capabilities the scraper actually backs for that game (fixtures/results/stats/...).
|
|
53
|
+
* @summary List supported games
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
* @memberof GamesApiInterface
|
|
57
|
+
*/
|
|
58
|
+
gamesListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GamesListResponse>>;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the static catalog of games we cover. Per ADR-0011, each game\'s `features` array tells you which capabilities the scraper actually backs for that game (fixtures/results/stats/...).
|
|
61
|
+
* List supported games
|
|
62
|
+
*/
|
|
63
|
+
gamesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GamesListResponse>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export declare class GamesApi extends runtime.BaseAPI implements GamesApiInterface {
|
|
69
|
+
/**
|
|
70
|
+
* Creates request options for gamesGet without sending the request
|
|
71
|
+
*/
|
|
72
|
+
gamesGetRequestOpts(requestParameters: GamesGetRequest): Promise<runtime.RequestOpts>;
|
|
73
|
+
/**
|
|
74
|
+
* Get a single game
|
|
75
|
+
*/
|
|
76
|
+
gamesGetRaw(requestParameters: GamesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GameEnvelope>>;
|
|
77
|
+
/**
|
|
78
|
+
* Get a single game
|
|
79
|
+
*/
|
|
80
|
+
gamesGet(requestParameters: GamesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GameEnvelope>;
|
|
81
|
+
/**
|
|
82
|
+
* Creates request options for gamesList without sending the request
|
|
83
|
+
*/
|
|
84
|
+
gamesListRequestOpts(): Promise<runtime.RequestOpts>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns the static catalog of games we cover. Per ADR-0011, each game\'s `features` array tells you which capabilities the scraper actually backs for that game (fixtures/results/stats/...).
|
|
87
|
+
* List supported games
|
|
88
|
+
*/
|
|
89
|
+
gamesListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GamesListResponse>>;
|
|
90
|
+
/**
|
|
91
|
+
* Returns the static catalog of games we cover. Per ADR-0011, each game\'s `features` array tells you which capabilities the scraper actually backs for that game (fixtures/results/stats/...).
|
|
92
|
+
* List supported games
|
|
93
|
+
*/
|
|
94
|
+
gamesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GamesListResponse>;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=GamesApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GamesApi.d.ts","sourceRoot":"","sources":["../../src/apis/GamesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAMtC,OAAO,EACH,KAAK,YAAY,EAGpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACH,KAAK,iBAAiB,EAGzB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;OAKG;IACH,mBAAmB,CAAC,iBAAiB,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAEtF;;;;;;;OAOG;IACH,WAAW,CAAC,iBAAiB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAExJ;;OAEG;IACH,QAAQ,CAAC,iBAAiB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAEhI;;;;OAIG;IACH,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAErD;;;;;;OAMG;IACH,Y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. 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
|
+
import * as runtime from '../runtime';
|
|
15
|
+
import { GameEnvelopeFromJSON, } from '../models/GameEnvelope';
|
|
16
|
+
import { GamesListResponseFromJSON, } from '../models/GamesListResponse';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export class GamesApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for gamesGet without sending the request
|
|
23
|
+
*/
|
|
24
|
+
async gamesGetRequestOpts(requestParameters) {
|
|
25
|
+
if (requestParameters['slug'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling gamesGet().');
|
|
27
|
+
}
|
|
28
|
+
const queryParameters = {};
|
|
29
|
+
const headerParameters = {};
|
|
30
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
31
|
+
const token = this.configuration.accessToken;
|
|
32
|
+
const tokenString = await token("apiKey", []);
|
|
33
|
+
if (tokenString) {
|
|
34
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
let urlPath = `/v1/games/{slug}`;
|
|
38
|
+
urlPath = urlPath.replace('{slug}', encodeURIComponent(String(requestParameters['slug'])));
|
|
39
|
+
return {
|
|
40
|
+
path: urlPath,
|
|
41
|
+
method: 'GET',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get a single game
|
|
48
|
+
*/
|
|
49
|
+
async gamesGetRaw(requestParameters, initOverrides) {
|
|
50
|
+
const requestOptions = await this.gamesGetRequestOpts(requestParameters);
|
|
51
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
52
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GameEnvelopeFromJSON(jsonValue));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get a single game
|
|
56
|
+
*/
|
|
57
|
+
async gamesGet(requestParameters, initOverrides) {
|
|
58
|
+
const response = await this.gamesGetRaw(requestParameters, initOverrides);
|
|
59
|
+
return await response.value();
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for gamesList without sending the request
|
|
63
|
+
*/
|
|
64
|
+
async gamesListRequestOpts() {
|
|
65
|
+
const queryParameters = {};
|
|
66
|
+
const headerParameters = {};
|
|
67
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
68
|
+
const token = this.configuration.accessToken;
|
|
69
|
+
const tokenString = await token("apiKey", []);
|
|
70
|
+
if (tokenString) {
|
|
71
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
let urlPath = `/v1/games`;
|
|
75
|
+
return {
|
|
76
|
+
path: urlPath,
|
|
77
|
+
method: 'GET',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns the static catalog of games we cover. Per ADR-0011, each game\'s `features` array tells you which capabilities the scraper actually backs for that game (fixtures/results/stats/...).
|
|
84
|
+
* List supported games
|
|
85
|
+
*/
|
|
86
|
+
async gamesListRaw(initOverrides) {
|
|
87
|
+
const requestOptions = await this.gamesListRequestOpts();
|
|
88
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
89
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GamesListResponseFromJSON(jsonValue));
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Returns the static catalog of games we cover. Per ADR-0011, each game\'s `features` array tells you which capabilities the scraper actually backs for that game (fixtures/results/stats/...).
|
|
93
|
+
* List supported games
|
|
94
|
+
*/
|
|
95
|
+
async gamesList(initOverrides) {
|
|
96
|
+
const response = await this.gamesListRaw(initOverrides);
|
|
97
|
+
return await response.value();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=GamesApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GamesApi.js","sourceRoot":"","sources":["../../src/apis/GamesApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAMtC,OAAO,EAEH,oBAAoB,GAEvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEH,yBAAyB,GAE5B,MAAM,6BAA6B,CAAC;AA4DrC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;OAEG;IACH,KAAK,CAAC,mBAAmB,CAAC,iBAAkC;QACxD,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,MAAM,EACN,0EAA0E,CAC7E,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC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AI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAE9C,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QAED,IAAI,OAAO,GAAG,WAAW,CAAC;QAE1B,OAAO;YACH,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,CAAC;IACN,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,aAA0D;QACzE,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;QACzD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QAEnE,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,yBAAyB,CAAC,SAAS,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,aAA0D;QACtE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACxD,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stadar Esports Data API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
* Contact: api@stadar.net
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type LeagueEnvelope } from '../models/LeagueEnvelope';
|
|
14
|
+
import { type LeaguesListResponse } from '../models/LeaguesListResponse';
|
|
15
|
+
import { type MatchesListResponse } from '../models/MatchesListResponse';
|
|
16
|
+
import { type SeriesListResponse } from '../models/SeriesListResponse';
|
|
17
|
+
export interface LeaguesGetRequest {
|
|
18
|
+
idslug: string;
|
|
19
|
+
game?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface LeaguesListRequest {
|
|
22
|
+
cursor?: string;
|
|
23
|
+
limit?: number;
|
|
24
|
+
game?: string;
|
|
25
|
+
region?: string;
|
|
26
|
+
search?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface LeaguesListMatchesRequest {
|
|
29
|
+
idslug: string;
|
|
30
|
+
cursor?: string;
|
|
31
|
+
limit?: number;
|
|
32
|
+
status?: LeaguesListMatchesStatusEnum;
|
|
33
|
+
}
|
|
34
|
+
export interface LeaguesListSeriesRequest {
|
|
35
|
+
idslug: string;
|
|
36
|
+
cursor?: string;
|
|
37
|
+
limit?: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* LeaguesApi - interface
|
|
41
|
+
*
|
|
42
|
+
* @export
|
|
43
|
+
* @interface LeaguesApiInterface
|
|
44
|
+
*/
|
|
45
|
+
export interface LeaguesApiInterface {
|
|
46
|
+
/**
|
|
47
|
+
* Creates request options for leaguesGet without sending the request
|
|
48
|
+
* @param {string} idslug
|
|
49
|
+
* @param {string} [game] Required when path is a slug (slugs are game-scoped).
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
* @memberof LeaguesApiInterface
|
|
52
|
+
*/
|
|
53
|
+
leaguesGetRequestOpts(requestParameters: LeaguesGetRequest): Promise<runtime.RequestOpts>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @summary Get a single league (id or slug)
|
|
57
|
+
* @param {string} idslug
|
|
58
|
+
* @param {string} [game] Required when path is a slug (slugs are game-scoped).
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
* @memberof LeaguesApiInterface
|
|
62
|
+
*/
|
|
63
|
+
leaguesGetRaw(requestParameters: LeaguesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeagueEnvelope>>;
|
|
64
|
+
/**
|
|
65
|
+
* Get a single league (id or slug)
|
|
66
|
+
*/
|
|
67
|
+
leaguesGet(requestParameters: LeaguesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeagueEnvelope>;
|
|
68
|
+
/**
|
|
69
|
+
* Creates request options for leaguesList without sending the request
|
|
70
|
+
* @param {string} [cursor] Opaque pagination cursor. Hand back the value from `meta.next_cursor` to fetch the next page. Cursors are valid for at least 24 hours; treat them as opaque strings.
|
|
71
|
+
* @param {number} [limit] Items per page. 1-200, default 50. (Pro+ on `/v1/matches` may request up to 10k via `?bulk=true`.)
|
|
72
|
+
* @param {string} [game]
|
|
73
|
+
* @param {string} [region]
|
|
74
|
+
* @param {string} [search]
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
* @memberof LeaguesApiInterface
|
|
77
|
+
*/
|
|
78
|
+
leaguesListRequestOpts(requestParameters: LeaguesListRequest): Promise<runtime.RequestOpts>;
|
|
79
|
+
/**
|
|
80
|
+
* Returns leagues (the long-running umbrella resource per ADR-0014). Filterable by game/region/search.
|
|
81
|
+
* @summary List leagues
|
|
82
|
+
* @param {string} [cursor] Opaque pagination cursor. Hand back the value from `meta.next_cursor` to fetch the next page. Cursors are valid for at least 24 hours; treat them as opaque strings.
|
|
83
|
+
* @param {number} [limit] Items per page. 1-200, default 50. (Pro+ on `/v1/matches` may request up to 10k via `?bulk=true`.)
|
|
84
|
+
* @param {string} [game]
|
|
85
|
+
* @param {string} [region]
|
|
86
|
+
* @param {string} [search]
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof LeaguesApiInterface
|
|
90
|
+
*/
|
|
91
|
+
leaguesListRaw(requestParameters: LeaguesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeaguesListResponse>>;
|
|
92
|
+
/**
|
|
93
|
+
* Returns leagues (the long-running umbrella resource per ADR-0014). Filterable by game/region/search.
|
|
94
|
+
* List leagues
|
|
95
|
+
*/
|
|
96
|
+
leaguesList(requestParameters: LeaguesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeaguesListResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* Creates request options for leaguesListMatches without sending the request
|
|
99
|
+
* @param {string} idslug
|
|
100
|
+
* @param {string} [cursor] Opaque pagination cursor. Hand back the value from `meta.next_cursor` to fetch the next page. Cursors are valid for at least 24 hours; treat them as opaque strings.
|
|
101
|
+
* @param {number} [limit] Items per page. 1-200, default 50. (Pro+ on `/v1/matches` may request up to 10k via `?bulk=true`.)
|
|
102
|
+
* @param {'scheduled' | 'live' | 'completed' | 'cancelled' | 'postponed'} [status]
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
* @memberof LeaguesApiInterface
|
|
105
|
+
*/
|
|
106
|
+
leaguesListMatchesRequestOpts(requestParameters: LeaguesListMatchesRequest): Promise<runtime.RequestOpts>;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @summary Matches within a league
|
|
110
|
+
* @param {string} idslug
|
|
111
|
+
* @param {string} [cursor] Opaque pagination cursor. Hand back the value from `meta.next_cursor` to fetch the next page. Cursors are valid for at least 24 hours; treat them as opaque strings.
|
|
112
|
+
* @param {number} [limit] Items per page. 1-200, default 50. (Pro+ on `/v1/matches` may request up to 10k via `?bulk=true`.)
|
|
113
|
+
* @param {'scheduled' | 'live' | 'completed' | 'cancelled' | 'postponed'} [status]
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
* @memberof LeaguesApiInterface
|
|
117
|
+
*/
|
|
118
|
+
leaguesListMatchesRaw(requestParameters: LeaguesListMatchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchesListResponse>>;
|
|
119
|
+
/**
|
|
120
|
+
* Matches within a league
|
|
121
|
+
*/
|
|
122
|
+
leaguesListMatches(requestParameters: LeaguesListMatchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchesListResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Creates request options for leaguesListSeries without sending the request
|
|
125
|
+
* @param {string} idslug
|
|
126
|
+
* @param {string} [cursor] Opaque pagination cursor. Hand back the value from `meta.next_cursor` to fetch the next page. Cursors are valid for at least 24 hours; treat them as opaque strings.
|
|
127
|
+
* @param {number} [limit] Items per page. 1-200, default 50. (Pro+ on `/v1/matches` may request up to 10k via `?bulk=true`.)
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
* @memberof LeaguesApiInterface
|
|
130
|
+
*/
|
|
131
|
+
leaguesListSeriesRequestOpts(requestParameters: LeaguesListSeriesRequest): Promise<runtime.RequestOpts>;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @summary Series within a league
|
|
135
|
+
* @param {string} idslug
|
|
136
|
+
* @param {string} [cursor] Opaque pagination cursor. Hand back the value from `meta.next_cursor` to fetch the next page. Cursors are valid for at least 24 hours; treat them as opaque strings.
|
|
137
|
+
* @param {number} [limit] Items per page. 1-200, default 50. (Pro+ on `/v1/matches` may request up to 10k via `?bulk=true`.)
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
* @memberof LeaguesApiInterface
|
|
141
|
+
*/
|
|
142
|
+
leaguesListSeriesRaw(requestParameters: LeaguesListSeriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SeriesListResponse>>;
|
|
143
|
+
/**
|
|
144
|
+
* Series within a league
|
|
145
|
+
*/
|
|
146
|
+
leaguesListSeries(requestParameters: LeaguesListSeriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SeriesListResponse>;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
export declare class LeaguesApi extends runtime.BaseAPI implements LeaguesApiInterface {
|
|
152
|
+
/**
|
|
153
|
+
* Creates request options for leaguesGet without sending the request
|
|
154
|
+
*/
|
|
155
|
+
leaguesGetRequestOpts(requestParameters: LeaguesGetRequest): Promise<runtime.RequestOpts>;
|
|
156
|
+
/**
|
|
157
|
+
* Get a single league (id or slug)
|
|
158
|
+
*/
|
|
159
|
+
leaguesGetRaw(requestParameters: LeaguesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeagueEnvelope>>;
|
|
160
|
+
/**
|
|
161
|
+
* Get a single league (id or slug)
|
|
162
|
+
*/
|
|
163
|
+
leaguesGet(requestParameters: LeaguesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeagueEnvelope>;
|
|
164
|
+
/**
|
|
165
|
+
* Creates request options for leaguesList without sending the request
|
|
166
|
+
*/
|
|
167
|
+
leaguesListRequestOpts(requestParameters: LeaguesListRequest): Promise<runtime.RequestOpts>;
|
|
168
|
+
/**
|
|
169
|
+
* Returns leagues (the long-running umbrella resource per ADR-0014). Filterable by game/region/search.
|
|
170
|
+
* List leagues
|
|
171
|
+
*/
|
|
172
|
+
leaguesListRaw(requestParameters: LeaguesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeaguesListResponse>>;
|
|
173
|
+
/**
|
|
174
|
+
* Returns leagues (the long-running umbrella resource per ADR-0014). Filterable by game/region/search.
|
|
175
|
+
* List leagues
|
|
176
|
+
*/
|
|
177
|
+
leaguesList(requestParameters?: LeaguesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeaguesListResponse>;
|
|
178
|
+
/**
|
|
179
|
+
* Creates request options for leaguesListMatches without sending the request
|
|
180
|
+
*/
|
|
181
|
+
leaguesListMatchesRequestOpts(requestParameters: LeaguesListMatchesRequest): Promise<runtime.RequestOpts>;
|
|
182
|
+
/**
|
|
183
|
+
* Matches within a league
|
|
184
|
+
*/
|
|
185
|
+
leaguesListMatchesRaw(requestParameters: LeaguesListMatchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchesListResponse>>;
|
|
186
|
+
/**
|
|
187
|
+
* Matches within a league
|
|
188
|
+
*/
|
|
189
|
+
leaguesListMatches(requestParameters: LeaguesListMatchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchesListResponse>;
|
|
190
|
+
/**
|
|
191
|
+
* Creates request options for leaguesListSeries without sending the request
|
|
192
|
+
*/
|
|
193
|
+
leaguesListSeriesRequestOpts(requestParameters: LeaguesListSeriesRequest): Promise<runtime.RequestOpts>;
|
|
194
|
+
/**
|
|
195
|
+
* Series within a league
|
|
196
|
+
*/
|
|
197
|
+
leaguesListSeriesRaw(requestParameters: LeaguesListSeriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SeriesListResponse>>;
|
|
198
|
+
/**
|
|
199
|
+
* Series within a league
|
|
200
|
+
*/
|
|
201
|
+
leaguesListSeries(requestParameters: LeaguesListSeriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SeriesListResponse>;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* @export
|
|
205
|
+
*/
|
|
206
|
+
export declare const LeaguesListMatchesStatusEnum: {
|
|
207
|
+
readonly Scheduled: "scheduled";
|
|
208
|
+
readonly Live: "live";
|
|
209
|
+
readonly Completed: "completed";
|
|
210
|
+
readonly Cancelled: "cancelled";
|
|
211
|
+
readonly Postponed: "postponed";
|
|
212
|
+
};
|
|
213
|
+
export type LeaguesListMatchesStatusEnum = typeof LeaguesListMatchesStatusEnum[keyof typeof LeaguesListMatchesStatusEnum];
|
|
214
|
+
//# sourceMappingURL=LeaguesApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeaguesApi.d.ts","sourceRoot":"","sources":["../../src/apis/LeaguesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAMtC,OAAO,EACH,KAAK,cAAc,EAGtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,KAAK,mBAAmB,EAG3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,KAAK,mBAAmB,EAG3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,KAAK,kBAAkB,EAG1B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,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a,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAKhK;AAED;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;CAM/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
15
|
+
import { LeagueEnvelopeFromJSON, } from '../models/LeagueEnvelope';
|
|
16
|
+
import { LeaguesListResponseFromJSON, } from '../models/LeaguesListResponse';
|
|
17
|
+
import { MatchesListResponseFromJSON, } from '../models/MatchesListResponse';
|
|
18
|
+
import { SeriesListResponseFromJSON, } from '../models/SeriesListResponse';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export class LeaguesApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* Creates request options for leaguesGet without sending the request
|
|
25
|
+
*/
|
|
26
|
+
async leaguesGetRequestOpts(requestParameters) {
|
|
27
|
+
if (requestParameters['idslug'] == null) {
|
|
28
|
+
throw new runtime.RequiredError('idslug', 'Required parameter "idslug" was null or undefined when calling leaguesGet().');
|
|
29
|
+
}
|
|
30
|
+
const queryParameters = {};
|
|
31
|
+
if (requestParameters['game'] != null) {
|
|
32
|
+
queryParameters['game'] = requestParameters['game'];
|
|
33
|
+
}
|
|
34
|
+
const headerParameters = {};
|
|
35
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
36
|
+
const token = this.configuration.accessToken;
|
|
37
|
+
const tokenString = await token("apiKey", []);
|
|
38
|
+
if (tokenString) {
|
|
39
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
let urlPath = `/v1/leagues/{idslug}`;
|
|
43
|
+
urlPath = urlPath.replace('{idslug}', encodeURIComponent(String(requestParameters['idslug'])));
|
|
44
|
+
return {
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'GET',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Get a single league (id or slug)
|
|
53
|
+
*/
|
|
54
|
+
async leaguesGetRaw(requestParameters, initOverrides) {
|
|
55
|
+
const requestOptions = await this.leaguesGetRequestOpts(requestParameters);
|
|
56
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeagueEnvelopeFromJSON(jsonValue));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get a single league (id or slug)
|
|
61
|
+
*/
|
|
62
|
+
async leaguesGet(requestParameters, initOverrides) {
|
|
63
|
+
const response = await this.leaguesGetRaw(requestParameters, initOverrides);
|
|
64
|
+
return await response.value();
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Creates request options for leaguesList without sending the request
|
|
68
|
+
*/
|
|
69
|
+
async leaguesListRequestOpts(requestParameters) {
|
|
70
|
+
const queryParameters = {};
|
|
71
|
+
if (requestParameters['cursor'] != null) {
|
|
72
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
73
|
+
}
|
|
74
|
+
if (requestParameters['limit'] != null) {
|
|
75
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
76
|
+
}
|
|
77
|
+
if (requestParameters['game'] != null) {
|
|
78
|
+
queryParameters['game'] = requestParameters['game'];
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters['region'] != null) {
|
|
81
|
+
queryParameters['region'] = requestParameters['region'];
|
|
82
|
+
}
|
|
83
|
+
if (requestParameters['search'] != null) {
|
|
84
|
+
queryParameters['search'] = requestParameters['search'];
|
|
85
|
+
}
|
|
86
|
+
const headerParameters = {};
|
|
87
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
88
|
+
const token = this.configuration.accessToken;
|
|
89
|
+
const tokenString = await token("apiKey", []);
|
|
90
|
+
if (tokenString) {
|
|
91
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
let urlPath = `/v1/leagues`;
|
|
95
|
+
return {
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'GET',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Returns leagues (the long-running umbrella resource per ADR-0014). Filterable by game/region/search.
|
|
104
|
+
* List leagues
|
|
105
|
+
*/
|
|
106
|
+
async leaguesListRaw(requestParameters, initOverrides) {
|
|
107
|
+
const requestOptions = await this.leaguesListRequestOpts(requestParameters);
|
|
108
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LeaguesListResponseFromJSON(jsonValue));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Returns leagues (the long-running umbrella resource per ADR-0014). Filterable by game/region/search.
|
|
113
|
+
* List leagues
|
|
114
|
+
*/
|
|
115
|
+
async leaguesList(requestParameters = {}, initOverrides) {
|
|
116
|
+
const response = await this.leaguesListRaw(requestParameters, initOverrides);
|
|
117
|
+
return await response.value();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Creates request options for leaguesListMatches without sending the request
|
|
121
|
+
*/
|
|
122
|
+
async leaguesListMatchesRequestOpts(requestParameters) {
|
|
123
|
+
if (requestParameters['idslug'] == null) {
|
|
124
|
+
throw new runtime.RequiredError('idslug', 'Required parameter "idslug" was null or undefined when calling leaguesListMatches().');
|
|
125
|
+
}
|
|
126
|
+
const queryParameters = {};
|
|
127
|
+
if (requestParameters['cursor'] != null) {
|
|
128
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
129
|
+
}
|
|
130
|
+
if (requestParameters['limit'] != null) {
|
|
131
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
132
|
+
}
|
|
133
|
+
if (requestParameters['status'] != null) {
|
|
134
|
+
queryParameters['status'] = requestParameters['status'];
|
|
135
|
+
}
|
|
136
|
+
const headerParameters = {};
|
|
137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
138
|
+
const token = this.configuration.accessToken;
|
|
139
|
+
const tokenString = await token("apiKey", []);
|
|
140
|
+
if (tokenString) {
|
|
141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
let urlPath = `/v1/leagues/{idslug}/matches`;
|
|
145
|
+
urlPath = urlPath.replace('{idslug}', encodeURIComponent(String(requestParameters['idslug'])));
|
|
146
|
+
return {
|
|
147
|
+
path: urlPath,
|
|
148
|
+
method: 'GET',
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Matches within a league
|
|
155
|
+
*/
|
|
156
|
+
async leaguesListMatchesRaw(requestParameters, initOverrides) {
|
|
157
|
+
const requestOptions = await this.leaguesListMatchesRequestOpts(requestParameters);
|
|
158
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
159
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MatchesListResponseFromJSON(jsonValue));
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Matches within a league
|
|
163
|
+
*/
|
|
164
|
+
async leaguesListMatches(requestParameters, initOverrides) {
|
|
165
|
+
const response = await this.leaguesListMatchesRaw(requestParameters, initOverrides);
|
|
166
|
+
return await response.value();
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Creates request options for leaguesListSeries without sending the request
|
|
170
|
+
*/
|
|
171
|
+
async leaguesListSeriesRequestOpts(requestParameters) {
|
|
172
|
+
if (requestParameters['idslug'] == null) {
|
|
173
|
+
throw new runtime.RequiredError('idslug', 'Required parameter "idslug" was null or undefined when calling leaguesListSeries().');
|
|
174
|
+
}
|
|
175
|
+
const queryParameters = {};
|
|
176
|
+
if (requestParameters['cursor'] != null) {
|
|
177
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
178
|
+
}
|
|
179
|
+
if (requestParameters['limit'] != null) {
|
|
180
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
181
|
+
}
|
|
182
|
+
const headerParameters = {};
|
|
183
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
184
|
+
const token = this.configuration.accessToken;
|
|
185
|
+
const tokenString = await token("apiKey", []);
|
|
186
|
+
if (tokenString) {
|
|
187
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
let urlPath = `/v1/leagues/{idslug}/series`;
|
|
191
|
+
urlPath = urlPath.replace('{idslug}', encodeURIComponent(String(requestParameters['idslug'])));
|
|
192
|
+
return {
|
|
193
|
+
path: urlPath,
|
|
194
|
+
method: 'GET',
|
|
195
|
+
headers: headerParameters,
|
|
196
|
+
query: queryParameters,
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Series within a league
|
|
201
|
+
*/
|
|
202
|
+
async leaguesListSeriesRaw(requestParameters, initOverrides) {
|
|
203
|
+
const requestOptions = await this.leaguesListSeriesRequestOpts(requestParameters);
|
|
204
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SeriesListResponseFromJSON(jsonValue));
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Series within a league
|
|
209
|
+
*/
|
|
210
|
+
async leaguesListSeries(requestParameters, initOverrides) {
|
|
211
|
+
const response = await this.leaguesListSeriesRaw(requestParameters, initOverrides);
|
|
212
|
+
return await response.value();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* @export
|
|
217
|
+
*/
|
|
218
|
+
export const LeaguesListMatchesStatusEnum = {
|
|
219
|
+
Scheduled: 'scheduled',
|
|
220
|
+
Live: 'live',
|
|
221
|
+
Completed: 'completed',
|
|
222
|
+
Cancelled: 'cancelled',
|
|
223
|
+
Postponed: 'postponed'
|
|
224
|
+
};
|
|
225
|
+
//# sourceMappingURL=LeaguesApi.js.map
|