@bp1222/stats-api 0.7.4 → 0.7.5
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/dist/index.d.ts +25 -23
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare interface ApiResponse<T> {
|
|
|
7
7
|
* MLB StatAPI
|
|
8
8
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
9
9
|
*
|
|
10
|
-
* The version of the OpenAPI document: 0.7.
|
|
10
|
+
* The version of the OpenAPI document: 0.7.5
|
|
11
11
|
*
|
|
12
12
|
*
|
|
13
13
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -52,7 +52,7 @@ export declare class BaseAPI {
|
|
|
52
52
|
* MLB StatAPI
|
|
53
53
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
54
54
|
*
|
|
55
|
-
* The version of the OpenAPI document: 0.7.
|
|
55
|
+
* The version of the OpenAPI document: 0.7.5
|
|
56
56
|
*
|
|
57
57
|
*
|
|
58
58
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -404,7 +404,7 @@ export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
|
404
404
|
* MLB StatAPI
|
|
405
405
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
406
406
|
*
|
|
407
|
-
* The version of the OpenAPI document: 0.7.
|
|
407
|
+
* The version of the OpenAPI document: 0.7.5
|
|
408
408
|
*
|
|
409
409
|
*
|
|
410
410
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -484,7 +484,7 @@ export declare interface Consume {
|
|
|
484
484
|
* MLB StatAPI
|
|
485
485
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
486
486
|
*
|
|
487
|
-
* The version of the OpenAPI document: 0.7.
|
|
487
|
+
* The version of the OpenAPI document: 0.7.5
|
|
488
488
|
*
|
|
489
489
|
*
|
|
490
490
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -729,7 +729,7 @@ export declare interface FetchParams {
|
|
|
729
729
|
* MLB StatAPI
|
|
730
730
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
731
731
|
*
|
|
732
|
-
* The version of the OpenAPI document: 0.7.
|
|
732
|
+
* The version of the OpenAPI document: 0.7.5
|
|
733
733
|
*
|
|
734
734
|
*
|
|
735
735
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1134,7 +1134,7 @@ export declare interface GameStatus {
|
|
|
1134
1134
|
* MLB StatAPI
|
|
1135
1135
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
1136
1136
|
*
|
|
1137
|
-
* The version of the OpenAPI document: 0.7.
|
|
1137
|
+
* The version of the OpenAPI document: 0.7.5
|
|
1138
1138
|
*
|
|
1139
1139
|
*
|
|
1140
1140
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1147,6 +1147,7 @@ export declare interface GameStatus {
|
|
|
1147
1147
|
* * `D` - Delayed/Postponed
|
|
1148
1148
|
* * `S` - Scheduled
|
|
1149
1149
|
* * `I` - In Progress
|
|
1150
|
+
* * `M` - Challenge
|
|
1150
1151
|
* * `P` - Pregame
|
|
1151
1152
|
* * `O` - Game Over
|
|
1152
1153
|
* * `C` - Canceled
|
|
@@ -1159,6 +1160,7 @@ export declare enum GameStatusCode {
|
|
|
1159
1160
|
Postponed = "D",
|
|
1160
1161
|
Scheduled = "S",
|
|
1161
1162
|
InProgress = "I",
|
|
1163
|
+
Challenge = "M",
|
|
1162
1164
|
Pregame = "P",
|
|
1163
1165
|
GameOver = "O",
|
|
1164
1166
|
Canceled = "C"
|
|
@@ -1269,7 +1271,7 @@ export declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator
|
|
|
1269
1271
|
* MLB StatAPI
|
|
1270
1272
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
1271
1273
|
*
|
|
1272
|
-
* The version of the OpenAPI document: 0.7.
|
|
1274
|
+
* The version of the OpenAPI document: 0.7.5
|
|
1273
1275
|
*
|
|
1274
1276
|
*
|
|
1275
1277
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1848,7 +1850,7 @@ export declare interface League {
|
|
|
1848
1850
|
* MLB StatAPI
|
|
1849
1851
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
1850
1852
|
*
|
|
1851
|
-
* The version of the OpenAPI document: 0.7.
|
|
1853
|
+
* The version of the OpenAPI document: 0.7.5
|
|
1852
1854
|
*
|
|
1853
1855
|
*
|
|
1854
1856
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1999,7 +2001,7 @@ export declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
1999
2001
|
* MLB StatAPI
|
|
2000
2002
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2001
2003
|
*
|
|
2002
|
-
* The version of the OpenAPI document: 0.7.
|
|
2004
|
+
* The version of the OpenAPI document: 0.7.5
|
|
2003
2005
|
*
|
|
2004
2006
|
*
|
|
2005
2007
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2155,7 +2157,7 @@ export declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
2155
2157
|
* MLB StatAPI
|
|
2156
2158
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2157
2159
|
*
|
|
2158
|
-
* The version of the OpenAPI document: 0.7.
|
|
2160
|
+
* The version of the OpenAPI document: 0.7.5
|
|
2159
2161
|
*
|
|
2160
2162
|
*
|
|
2161
2163
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2460,7 +2462,7 @@ export declare function ModelRecordToJSONTyped(value?: ModelRecord | null, ignor
|
|
|
2460
2462
|
* MLB StatAPI
|
|
2461
2463
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2462
2464
|
*
|
|
2463
|
-
* The version of the OpenAPI document: 0.7.
|
|
2465
|
+
* The version of the OpenAPI document: 0.7.5
|
|
2464
2466
|
*
|
|
2465
2467
|
*
|
|
2466
2468
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2850,7 +2852,7 @@ export declare function PersonStatsItemToJSONTyped(value?: PersonStatsItem | nul
|
|
|
2850
2852
|
* MLB StatAPI
|
|
2851
2853
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
2852
2854
|
*
|
|
2853
|
-
* The version of the OpenAPI document: 0.7.
|
|
2855
|
+
* The version of the OpenAPI document: 0.7.5
|
|
2854
2856
|
*
|
|
2855
2857
|
*
|
|
2856
2858
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3046,7 +3048,7 @@ export declare function PersonStatSplitGameToJSONTyped(value?: PersonStatSplitGa
|
|
|
3046
3048
|
* MLB StatAPI
|
|
3047
3049
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3048
3050
|
*
|
|
3049
|
-
* The version of the OpenAPI document: 0.7.
|
|
3051
|
+
* The version of the OpenAPI document: 0.7.5
|
|
3050
3052
|
*
|
|
3051
3053
|
*
|
|
3052
3054
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3128,7 +3130,7 @@ export declare function PersonToJSONTyped(value?: Person | null, ignoreDiscrimin
|
|
|
3128
3130
|
* MLB StatAPI
|
|
3129
3131
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3130
3132
|
*
|
|
3131
|
-
* The version of the OpenAPI document: 0.7.
|
|
3133
|
+
* The version of the OpenAPI document: 0.7.5
|
|
3132
3134
|
*
|
|
3133
3135
|
*
|
|
3134
3136
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3535,7 +3537,7 @@ export declare function PlayerFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
3535
3537
|
* MLB StatAPI
|
|
3536
3538
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3537
3539
|
*
|
|
3538
|
-
* The version of the OpenAPI document: 0.7.
|
|
3540
|
+
* The version of the OpenAPI document: 0.7.5
|
|
3539
3541
|
*
|
|
3540
3542
|
*
|
|
3541
3543
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3586,7 +3588,7 @@ export declare function PlayerGameStatusToJSONTyped(value?: PlayerGameStatus | n
|
|
|
3586
3588
|
* MLB StatAPI
|
|
3587
3589
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3588
3590
|
*
|
|
3589
|
-
* The version of the OpenAPI document: 0.7.
|
|
3591
|
+
* The version of the OpenAPI document: 0.7.5
|
|
3590
3592
|
*
|
|
3591
3593
|
*
|
|
3592
3594
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3637,7 +3639,7 @@ export declare function PlayerPersonToJSONTyped(value?: PlayerPerson | null, ign
|
|
|
3637
3639
|
* MLB StatAPI
|
|
3638
3640
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3639
3641
|
*
|
|
3640
|
-
* The version of the OpenAPI document: 0.7.
|
|
3642
|
+
* The version of the OpenAPI document: 0.7.5
|
|
3641
3643
|
*
|
|
3642
3644
|
*
|
|
3643
3645
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3756,7 +3758,7 @@ export declare function PlayerStatsToJSONTyped(value?: PlayerStats | null, ignor
|
|
|
3756
3758
|
* MLB StatAPI
|
|
3757
3759
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3758
3760
|
*
|
|
3759
|
-
* The version of the OpenAPI document: 0.7.
|
|
3761
|
+
* The version of the OpenAPI document: 0.7.5
|
|
3760
3762
|
*
|
|
3761
3763
|
*
|
|
3762
3764
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3799,7 +3801,7 @@ export declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscrimin
|
|
|
3799
3801
|
* MLB StatAPI
|
|
3800
3802
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
3801
3803
|
*
|
|
3802
|
-
* The version of the OpenAPI document: 0.7.
|
|
3804
|
+
* The version of the OpenAPI document: 0.7.5
|
|
3803
3805
|
*
|
|
3804
3806
|
*
|
|
3805
3807
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4124,7 +4126,7 @@ export declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscr
|
|
|
4124
4126
|
* MLB StatAPI
|
|
4125
4127
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
4126
4128
|
*
|
|
4127
|
-
* The version of the OpenAPI document: 0.7.
|
|
4129
|
+
* The version of the OpenAPI document: 0.7.5
|
|
4128
4130
|
*
|
|
4129
4131
|
*
|
|
4130
4132
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4300,7 +4302,7 @@ export declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscrimin
|
|
|
4300
4302
|
* MLB StatAPI
|
|
4301
4303
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
4302
4304
|
*
|
|
4303
|
-
* The version of the OpenAPI document: 0.7.
|
|
4305
|
+
* The version of the OpenAPI document: 0.7.5
|
|
4304
4306
|
*
|
|
4305
4307
|
*
|
|
4306
4308
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4390,7 +4392,7 @@ export declare class StandingsApi extends runtime.BaseAPI {
|
|
|
4390
4392
|
* MLB StatAPI
|
|
4391
4393
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
4392
4394
|
*
|
|
4393
|
-
* The version of the OpenAPI document: 0.7.
|
|
4395
|
+
* The version of the OpenAPI document: 0.7.5
|
|
4394
4396
|
*
|
|
4395
4397
|
*
|
|
4396
4398
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4646,7 +4648,7 @@ export declare class TextApiResponse {
|
|
|
4646
4648
|
* MLB StatAPI
|
|
4647
4649
|
* OpenAPI spec for the MLB Stats API (upstream API is undocumented).
|
|
4648
4650
|
*
|
|
4649
|
-
* The version of the OpenAPI document: 0.7.
|
|
4651
|
+
* The version of the OpenAPI document: 0.7.5
|
|
4650
4652
|
*
|
|
4651
4653
|
*
|
|
4652
4654
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -1328,7 +1328,7 @@ function _t(e, t = !1) {
|
|
|
1328
1328
|
divisions: e.divisions.map(C)
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
|
-
var h = /* @__PURE__ */ ((e) => (e.Final = "F", e.Postponed = "D", e.Scheduled = "S", e.InProgress = "I", e.Pregame = "P", e.GameOver = "O", e.Canceled = "C", e))(h || {});
|
|
1331
|
+
var h = /* @__PURE__ */ ((e) => (e.Final = "F", e.Postponed = "D", e.Scheduled = "S", e.InProgress = "I", e.Challenge = "M", e.Pregame = "P", e.GameOver = "O", e.Canceled = "C", e))(h || {});
|
|
1332
1332
|
function dr(e) {
|
|
1333
1333
|
for (const t in h)
|
|
1334
1334
|
if (Object.prototype.hasOwnProperty.call(h, t) && h[t] === e)
|