@bp1222/stats-api 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +237 -47
  2. package/dist/index.js +1797 -1677
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export declare function AttendanceFromJSONTyped(json: any, ignoreDiscriminator:
32
32
  * MLB StatAPI
33
33
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
34
34
  *
35
- * The version of the OpenAPI document: 0.8.2
35
+ * The version of the OpenAPI document: 0.9.0
36
36
  *
37
37
  *
38
38
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -269,7 +269,7 @@ export declare function AttendanceToJSONTyped(value?: Attendance | null, ignoreD
269
269
  * MLB StatAPI
270
270
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
271
271
  *
272
- * The version of the OpenAPI document: 0.8.2
272
+ * The version of the OpenAPI document: 0.9.0
273
273
  *
274
274
  *
275
275
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -455,7 +455,7 @@ export declare function AwardToJSONTyped(value?: Award | null, ignoreDiscriminat
455
455
  * MLB StatAPI
456
456
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
457
457
  *
458
- * The version of the OpenAPI document: 0.8.2
458
+ * The version of the OpenAPI document: 0.9.0
459
459
  *
460
460
  *
461
461
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -500,7 +500,7 @@ export declare class BaseAPI {
500
500
  * MLB StatAPI
501
501
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
502
502
  *
503
- * The version of the OpenAPI document: 0.8.2
503
+ * The version of the OpenAPI document: 0.9.0
504
504
  *
505
505
  *
506
506
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -811,7 +811,7 @@ export declare function BoxscoreFromJSONTyped(json: any, ignoreDiscriminator: bo
811
811
  * MLB StatAPI
812
812
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
813
813
  *
814
- * The version of the OpenAPI document: 0.8.2
814
+ * The version of the OpenAPI document: 0.9.0
815
815
  *
816
816
  *
817
817
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -945,7 +945,7 @@ export declare interface BoxscoreTeamInfoSection {
945
945
  * MLB StatAPI
946
946
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
947
947
  *
948
- * The version of the OpenAPI document: 0.8.2
948
+ * The version of the OpenAPI document: 0.9.0
949
949
  *
950
950
  *
951
951
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1117,7 +1117,7 @@ export declare function CoachToJSONTyped(value?: Coach | null, ignoreDiscriminat
1117
1117
  * MLB StatAPI
1118
1118
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
1119
1119
  *
1120
- * The version of the OpenAPI document: 0.8.2
1120
+ * The version of the OpenAPI document: 0.9.0
1121
1121
  *
1122
1122
  *
1123
1123
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1197,7 +1197,7 @@ export declare interface Consume {
1197
1197
  * MLB StatAPI
1198
1198
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
1199
1199
  *
1200
- * The version of the OpenAPI document: 0.8.2
1200
+ * The version of the OpenAPI document: 0.9.0
1201
1201
  *
1202
1202
  *
1203
1203
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1231,7 +1231,7 @@ export declare function ContentToJSONTyped(value?: Content | null, ignoreDiscrim
1231
1231
  * MLB StatAPI
1232
1232
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
1233
1233
  *
1234
- * The version of the OpenAPI document: 0.8.2
1234
+ * The version of the OpenAPI document: 0.9.0
1235
1235
  *
1236
1236
  *
1237
1237
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1619,7 +1619,7 @@ export declare function DraftPickFromJSONTyped(json: any, ignoreDiscriminator: b
1619
1619
  * MLB StatAPI
1620
1620
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
1621
1621
  *
1622
- * The version of the OpenAPI document: 0.8.2
1622
+ * The version of the OpenAPI document: 0.9.0
1623
1623
  *
1624
1624
  *
1625
1625
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1664,7 +1664,7 @@ export declare function DraftPickHomeToJSONTyped(value?: DraftPickHome | null, i
1664
1664
  * MLB StatAPI
1665
1665
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
1666
1666
  *
1667
- * The version of the OpenAPI document: 0.8.2
1667
+ * The version of the OpenAPI document: 0.9.0
1668
1668
  *
1669
1669
  *
1670
1670
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1799,7 +1799,7 @@ export declare interface FetchParams {
1799
1799
  * MLB StatAPI
1800
1800
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
1801
1801
  *
1802
- * The version of the OpenAPI document: 0.8.2
1802
+ * The version of the OpenAPI document: 0.9.0
1803
1803
  *
1804
1804
  *
1805
1805
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2214,7 +2214,7 @@ export declare interface GameData {
2214
2214
  * MLB StatAPI
2215
2215
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
2216
2216
  *
2217
- * The version of the OpenAPI document: 0.8.2
2217
+ * The version of the OpenAPI document: 0.9.0
2218
2218
  *
2219
2219
  *
2220
2220
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2281,7 +2281,7 @@ export declare function GameDataFromJSONTyped(json: any, ignoreDiscriminator: bo
2281
2281
  * MLB StatAPI
2282
2282
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
2283
2283
  *
2284
- * The version of the OpenAPI document: 0.8.2
2284
+ * The version of the OpenAPI document: 0.9.0
2285
2285
  *
2286
2286
  *
2287
2287
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2388,7 +2388,7 @@ export declare interface GameDataMoundVisits {
2388
2388
  * MLB StatAPI
2389
2389
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
2390
2390
  *
2391
- * The version of the OpenAPI document: 0.8.2
2391
+ * The version of the OpenAPI document: 0.9.0
2392
2392
  *
2393
2393
  *
2394
2394
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2501,7 +2501,7 @@ export declare function GameDataToJSONTyped(value?: GameData | null, ignoreDiscr
2501
2501
  * MLB StatAPI
2502
2502
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
2503
2503
  *
2504
- * The version of the OpenAPI document: 0.8.2
2504
+ * The version of the OpenAPI document: 0.9.0
2505
2505
  *
2506
2506
  *
2507
2507
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2645,7 +2645,7 @@ export declare function GameLiveFeedFromJSONTyped(json: any, ignoreDiscriminator
2645
2645
  * MLB StatAPI
2646
2646
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
2647
2647
  *
2648
- * The version of the OpenAPI document: 0.8.2
2648
+ * The version of the OpenAPI document: 0.9.0
2649
2649
  *
2650
2650
  *
2651
2651
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2712,7 +2712,7 @@ export declare function GameLiveFeedToJSONTyped(value?: GameLiveFeed | null, ign
2712
2712
  * MLB StatAPI
2713
2713
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
2714
2714
  *
2715
- * The version of the OpenAPI document: 0.8.2
2715
+ * The version of the OpenAPI document: 0.9.0
2716
2716
  *
2717
2717
  *
2718
2718
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3068,7 +3068,7 @@ export declare function GamePaceLeagueDataToJSONTyped(value?: GamePaceLeagueData
3068
3068
  * MLB StatAPI
3069
3069
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
3070
3070
  *
3071
- * The version of the OpenAPI document: 0.8.2
3071
+ * The version of the OpenAPI document: 0.9.0
3072
3072
  *
3073
3073
  *
3074
3074
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3929,7 +3929,7 @@ export declare interface GameStatus {
3929
3929
  * MLB StatAPI
3930
3930
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
3931
3931
  *
3932
- * The version of the OpenAPI document: 0.8.2
3932
+ * The version of the OpenAPI document: 0.9.0
3933
3933
  *
3934
3934
  *
3935
3935
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4066,7 +4066,7 @@ export declare function GameToJSONTyped(value?: Game | null, ignoreDiscriminator
4066
4066
  * MLB StatAPI
4067
4067
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
4068
4068
  *
4069
- * The version of the OpenAPI document: 0.8.2
4069
+ * The version of the OpenAPI document: 0.9.0
4070
4070
  *
4071
4071
  *
4072
4072
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4110,7 +4110,7 @@ export declare function GameTypeToJSONTyped(value: any, ignoreDiscriminator: boo
4110
4110
  * MLB StatAPI
4111
4111
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
4112
4112
  *
4113
- * The version of the OpenAPI document: 0.8.2
4113
+ * The version of the OpenAPI document: 0.9.0
4114
4114
  *
4115
4115
  *
4116
4116
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4357,6 +4357,16 @@ export declare interface GetTeamStatsRequest {
4357
4357
  fields?: Array<string>;
4358
4358
  }
4359
4359
 
4360
+ export declare interface GetTransactionsRequest {
4361
+ teamId?: number;
4362
+ playerId?: number;
4363
+ date?: string;
4364
+ startDate?: string;
4365
+ endDate?: string;
4366
+ fields?: Array<string>;
4367
+ hydrate?: string;
4368
+ }
4369
+
4360
4370
  export declare interface GetVenueRequest {
4361
4371
  venueId: number;
4362
4372
  fields?: Array<string>;
@@ -4446,7 +4456,7 @@ export declare function HomeRunDerbyInfoToJSONTyped(value?: HomeRunDerbyInfo | n
4446
4456
  * MLB StatAPI
4447
4457
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
4448
4458
  *
4449
- * The version of the OpenAPI document: 0.8.2
4459
+ * The version of the OpenAPI document: 0.9.0
4450
4460
  *
4451
4461
  *
4452
4462
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4491,7 +4501,7 @@ export declare function HomeRunDerbyRoundToJSONTyped(value?: HomeRunDerbyRound |
4491
4501
  * MLB StatAPI
4492
4502
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
4493
4503
  *
4494
- * The version of the OpenAPI document: 0.8.2
4504
+ * The version of the OpenAPI document: 0.9.0
4495
4505
  *
4496
4506
  *
4497
4507
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5169,6 +5179,18 @@ export declare function instanceOfTeamStats(value: object): value is TeamStats;
5169
5179
  */
5170
5180
  export declare function instanceOfTeamStatsResponse(value: object): value is TeamStatsResponse;
5171
5181
 
5182
+ /**
5183
+ * Check if a given object implements the Transaction interface.
5184
+ */
5185
+ export declare function instanceOfTransaction(value: object): value is Transaction;
5186
+
5187
+ /**
5188
+ * Check if a given object implements the TransactionsResponse interface.
5189
+ */
5190
+ export declare function instanceOfTransactionsResponse(value: object): value is TransactionsResponse;
5191
+
5192
+ export declare function instanceOfTransactionTypeCode(value: any): boolean;
5193
+
5172
5194
  /**
5173
5195
  * Check if a given object implements the Venue interface.
5174
5196
  */
@@ -5336,7 +5358,7 @@ export declare interface League {
5336
5358
  * MLB StatAPI
5337
5359
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
5338
5360
  *
5339
- * The version of the OpenAPI document: 0.8.2
5361
+ * The version of the OpenAPI document: 0.9.0
5340
5362
  *
5341
5363
  *
5342
5364
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5487,7 +5509,7 @@ export declare function LeagueFromJSONTyped(json: any, ignoreDiscriminator: bool
5487
5509
  * MLB StatAPI
5488
5510
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
5489
5511
  *
5490
- * The version of the OpenAPI document: 0.8.2
5512
+ * The version of the OpenAPI document: 0.9.0
5491
5513
  *
5492
5514
  *
5493
5515
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5659,7 +5681,7 @@ export declare function LinescoreFromJSONTyped(json: any, ignoreDiscriminator: b
5659
5681
  * MLB StatAPI
5660
5682
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
5661
5683
  *
5662
- * The version of the OpenAPI document: 0.8.2
5684
+ * The version of the OpenAPI document: 0.9.0
5663
5685
  *
5664
5686
  *
5665
5687
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6024,7 +6046,7 @@ export declare function ModelRecordToJSONTyped(value?: ModelRecord | null, ignor
6024
6046
  * MLB StatAPI
6025
6047
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
6026
6048
  *
6027
- * The version of the OpenAPI document: 0.8.2
6049
+ * The version of the OpenAPI document: 0.9.0
6028
6050
  *
6029
6051
  *
6030
6052
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6167,6 +6189,20 @@ export declare class PeopleApi extends runtime.BaseAPI {
6167
6189
  * Retrieves team player roster
6168
6190
  */
6169
6191
  getTeamRoster(requestParameters: GetTeamRosterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RosterResponse>;
6192
+ /**
6193
+ * Creates request options for getTransactions without sending the request
6194
+ */
6195
+ getTransactionsRequestOpts(requestParameters: GetTransactionsRequest): Promise<runtime.RequestOpts>;
6196
+ /**
6197
+ * Returns transactions (trades, signings, assignments, status changes, etc.). Must specify at least one of teamId, playerId, date, startDate, or endDate.
6198
+ * Retrieves transactions
6199
+ */
6200
+ getTransactionsRaw(requestParameters: GetTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransactionsResponse>>;
6201
+ /**
6202
+ * Returns transactions (trades, signings, assignments, status changes, etc.). Must specify at least one of teamId, playerId, date, startDate, or endDate.
6203
+ * Retrieves transactions
6204
+ */
6205
+ getTransactions(requestParameters?: GetTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransactionsResponse>;
6170
6206
  }
6171
6207
 
6172
6208
  /**
@@ -6514,7 +6550,7 @@ export declare function PersonStatsItemToJSONTyped(value?: PersonStatsItem | nul
6514
6550
  * MLB StatAPI
6515
6551
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
6516
6552
  *
6517
- * The version of the OpenAPI document: 0.8.2
6553
+ * The version of the OpenAPI document: 0.9.0
6518
6554
  *
6519
6555
  *
6520
6556
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6734,7 +6770,7 @@ export declare function PersonStatSplitGameToJSONTyped(value?: PersonStatSplitGa
6734
6770
  * MLB StatAPI
6735
6771
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
6736
6772
  *
6737
- * The version of the OpenAPI document: 0.8.2
6773
+ * The version of the OpenAPI document: 0.9.0
6738
6774
  *
6739
6775
  *
6740
6776
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6816,7 +6852,7 @@ export declare function PersonToJSONTyped(value?: Person | null, ignoreDiscrimin
6816
6852
  * MLB StatAPI
6817
6853
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
6818
6854
  *
6819
- * The version of the OpenAPI document: 0.8.2
6855
+ * The version of the OpenAPI document: 0.9.0
6820
6856
  *
6821
6857
  *
6822
6858
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7266,7 +7302,7 @@ export declare interface Play {
7266
7302
  * MLB StatAPI
7267
7303
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
7268
7304
  *
7269
- * The version of the OpenAPI document: 0.8.2
7305
+ * The version of the OpenAPI document: 0.9.0
7270
7306
  *
7271
7307
  *
7272
7308
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7359,7 +7395,7 @@ export declare function PlayAboutToJSONTyped(value?: PlayAbout | null, ignoreDis
7359
7395
  * MLB StatAPI
7360
7396
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
7361
7397
  *
7362
- * The version of the OpenAPI document: 0.8.2
7398
+ * The version of the OpenAPI document: 0.9.0
7363
7399
  *
7364
7400
  *
7365
7401
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7511,7 +7547,7 @@ export declare function PlayerGameStatsToJSONTyped(value?: PlayerGameStats | nul
7511
7547
  * MLB StatAPI
7512
7548
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
7513
7549
  *
7514
- * The version of the OpenAPI document: 0.8.2
7550
+ * The version of the OpenAPI document: 0.9.0
7515
7551
  *
7516
7552
  *
7517
7553
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7596,7 +7632,7 @@ export declare function PlayerSeasonStatsToJSONTyped(value?: PlayerSeasonStats |
7596
7632
  * MLB StatAPI
7597
7633
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
7598
7634
  *
7599
- * The version of the OpenAPI document: 0.8.2
7635
+ * The version of the OpenAPI document: 0.9.0
7600
7636
  *
7601
7637
  *
7602
7638
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7639,7 +7675,7 @@ export declare function PlayerToJSONTyped(value?: Player | null, ignoreDiscrimin
7639
7675
  * MLB StatAPI
7640
7676
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
7641
7677
  *
7642
- * The version of the OpenAPI document: 0.8.2
7678
+ * The version of the OpenAPI document: 0.9.0
7643
7679
  *
7644
7680
  *
7645
7681
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7752,7 +7788,7 @@ export declare function PlayMatchupToJSONTyped(value?: PlayMatchup | null, ignor
7752
7788
  * MLB StatAPI
7753
7789
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
7754
7790
  *
7755
- * The version of the OpenAPI document: 0.8.2
7791
+ * The version of the OpenAPI document: 0.9.0
7756
7792
  *
7757
7793
  *
7758
7794
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7903,7 +7939,7 @@ export declare function PlayRunnerFromJSONTyped(json: any, ignoreDiscriminator:
7903
7939
  * MLB StatAPI
7904
7940
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
7905
7941
  *
7906
- * The version of the OpenAPI document: 0.8.2
7942
+ * The version of the OpenAPI document: 0.9.0
7907
7943
  *
7908
7944
  *
7909
7945
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8015,7 +8051,7 @@ export declare function PlayToJSONTyped(value?: Play | null, ignoreDiscriminator
8015
8051
  * MLB StatAPI
8016
8052
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
8017
8053
  *
8018
- * The version of the OpenAPI document: 0.8.2
8054
+ * The version of the OpenAPI document: 0.9.0
8019
8055
  *
8020
8056
  *
8021
8057
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8464,7 +8500,7 @@ export declare function RosterResponseToJSONTyped(value?: RosterResponse | null,
8464
8500
  * MLB StatAPI
8465
8501
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
8466
8502
  *
8467
- * The version of the OpenAPI document: 0.8.2
8503
+ * The version of the OpenAPI document: 0.9.0
8468
8504
  *
8469
8505
  *
8470
8506
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8503,7 +8539,7 @@ export declare function RosterStatusToJSONTyped(value?: RosterStatus | null, ign
8503
8539
  * MLB StatAPI
8504
8540
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
8505
8541
  *
8506
- * The version of the OpenAPI document: 0.8.2
8542
+ * The version of the OpenAPI document: 0.9.0
8507
8543
  *
8508
8544
  *
8509
8545
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8695,7 +8731,7 @@ export declare function ScheduleToJSONTyped(value?: Schedule | null, ignoreDiscr
8695
8731
  * MLB StatAPI
8696
8732
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
8697
8733
  *
8698
- * The version of the OpenAPI document: 0.8.2
8734
+ * The version of the OpenAPI document: 0.9.0
8699
8735
  *
8700
8736
  *
8701
8737
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8871,7 +8907,7 @@ export declare function SeasonToJSONTyped(value?: Season | null, ignoreDiscrimin
8871
8907
  * MLB StatAPI
8872
8908
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
8873
8909
  *
8874
- * The version of the OpenAPI document: 0.8.2
8910
+ * The version of the OpenAPI document: 0.9.0
8875
8911
  *
8876
8912
  *
8877
8913
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8983,7 +9019,7 @@ export declare class StandingsApi extends runtime.BaseAPI {
8983
9019
  * MLB StatAPI
8984
9020
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
8985
9021
  *
8986
- * The version of the OpenAPI document: 0.8.2
9022
+ * The version of the OpenAPI document: 0.9.0
8987
9023
  *
8988
9024
  *
8989
9025
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -9123,7 +9159,7 @@ export declare function StatTypesToJSONTyped(value: any, ignoreDiscriminator: bo
9123
9159
  * MLB StatAPI
9124
9160
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
9125
9161
  *
9126
- * The version of the OpenAPI document: 0.8.2
9162
+ * The version of the OpenAPI document: 0.9.0
9127
9163
  *
9128
9164
  *
9129
9165
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -9432,6 +9468,160 @@ export declare class TextApiResponse {
9432
9468
  value(): Promise<string>;
9433
9469
  }
9434
9470
 
9471
+ /**
9472
+ * A single transaction (trade, signing, assignment, status change, etc.) from the transactions API.
9473
+ *
9474
+ * @export
9475
+ * @interface Transaction
9476
+ */
9477
+ export declare interface Transaction {
9478
+ /**
9479
+ * Unique transaction ID.
9480
+ * @type {number}
9481
+ * @memberof Transaction
9482
+ */
9483
+ id: number;
9484
+ /**
9485
+ *
9486
+ * @type {Person}
9487
+ * @memberof Transaction
9488
+ */
9489
+ person: Person;
9490
+ /**
9491
+ *
9492
+ * @type {Team}
9493
+ * @memberof Transaction
9494
+ */
9495
+ toTeam: Team;
9496
+ /**
9497
+ * Present when the transaction involves moving from one team to another.
9498
+ * @type {Team}
9499
+ * @memberof Transaction
9500
+ */
9501
+ fromTeam?: Team;
9502
+ /**
9503
+ * Date of the transaction (YYYY-MM-DD).
9504
+ * @type {string}
9505
+ * @memberof Transaction
9506
+ */
9507
+ date: string;
9508
+ /**
9509
+ * Effective date of the transaction (YYYY-MM-DD).
9510
+ * @type {string}
9511
+ * @memberof Transaction
9512
+ */
9513
+ effectiveDate: string;
9514
+ /**
9515
+ * Resolution date when applicable (YYYY-MM-DD).
9516
+ * @type {string}
9517
+ * @memberof Transaction
9518
+ */
9519
+ resolutionDate?: string;
9520
+ /**
9521
+ *
9522
+ * @type {TransactionTypeCode}
9523
+ * @memberof Transaction
9524
+ */
9525
+ typeCode: TransactionTypeCode;
9526
+ /**
9527
+ * Human-readable transaction type (e.g. Assigned, Signed, Trade, Optioned).
9528
+ * @type {string}
9529
+ * @memberof Transaction
9530
+ */
9531
+ typeDesc: string;
9532
+ /**
9533
+ * Full text description of the transaction.
9534
+ * @type {string}
9535
+ * @memberof Transaction
9536
+ */
9537
+ description: string;
9538
+ }
9539
+
9540
+ export declare function TransactionFromJSON(json: any): Transaction;
9541
+
9542
+ export declare function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transaction;
9543
+
9544
+ /**
9545
+ * Response for GET /v1/transactions. Contains a list of transactions filtered by team, player, or date range.
9546
+ *
9547
+ * @export
9548
+ * @interface TransactionsResponse
9549
+ */
9550
+ export declare interface TransactionsResponse {
9551
+ /**
9552
+ * MLB copyright notice.
9553
+ * @type {string}
9554
+ * @memberof TransactionsResponse
9555
+ */
9556
+ copyright?: string;
9557
+ /**
9558
+ *
9559
+ * @type {Array<Transaction>}
9560
+ * @memberof TransactionsResponse
9561
+ */
9562
+ transactions: Array<Transaction>;
9563
+ }
9564
+
9565
+ export declare function TransactionsResponseFromJSON(json: any): TransactionsResponse;
9566
+
9567
+ export declare function TransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsResponse;
9568
+
9569
+ export declare function TransactionsResponseToJSON(json: any): TransactionsResponse;
9570
+
9571
+ export declare function TransactionsResponseToJSONTyped(value?: TransactionsResponse | null, ignoreDiscriminator?: boolean): any;
9572
+
9573
+ export declare function TransactionToJSON(json: any): Transaction;
9574
+
9575
+ export declare function TransactionToJSONTyped(value?: Transaction | null, ignoreDiscriminator?: boolean): any;
9576
+
9577
+ /**
9578
+ * MLB StatAPI
9579
+ * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
9580
+ *
9581
+ * The version of the OpenAPI document: 0.9.0
9582
+ *
9583
+ *
9584
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9585
+ * https://openapi-generator.tech
9586
+ * Do not edit the class manually.
9587
+ */
9588
+ /**
9589
+ * Transaction type code:
9590
+ * * `ASG` - Assigned
9591
+ * * `SGN` - Signed
9592
+ * * `SC` - Status Change
9593
+ * * `SE` - Selected
9594
+ * * `OPT` - Optioned
9595
+ * * `CU` - Recalled
9596
+ * * `NUM` - Number Change
9597
+ * * `TR` - Trade
9598
+ * * `DFA` - Declared Free Agency
9599
+ * * `SFA` - Signed as Free Agent
9600
+ *
9601
+ * @export
9602
+ * @enum {string}
9603
+ */
9604
+ export declare enum TransactionTypeCode {
9605
+ Assigned = "ASG",
9606
+ Signed = "SGN",
9607
+ StatusChange = "SC",
9608
+ Selected = "SE",
9609
+ Optioned = "OPT",
9610
+ Recalled = "CU",
9611
+ NumberChange = "NUM",
9612
+ Trade = "TR",
9613
+ DeclaredFreeAgency = "DFA",
9614
+ SignedAsFreeAgent = "SFA"
9615
+ }
9616
+
9617
+ export declare function TransactionTypeCodeFromJSON(json: any): TransactionTypeCode;
9618
+
9619
+ export declare function TransactionTypeCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionTypeCode;
9620
+
9621
+ export declare function TransactionTypeCodeToJSON(value?: TransactionTypeCode | null): any;
9622
+
9623
+ export declare function TransactionTypeCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionTypeCode;
9624
+
9435
9625
  /**
9436
9626
  * Venue. When embedded as springVenue, may contain only id and link. Hydrate with location, fieldInfo, timezone for full details.
9437
9627
  *
@@ -9493,7 +9683,7 @@ export declare interface Venue {
9493
9683
  * MLB StatAPI
9494
9684
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
9495
9685
  *
9496
- * The version of the OpenAPI document: 0.8.2
9686
+ * The version of the OpenAPI document: 0.9.0
9497
9687
  *
9498
9688
  *
9499
9689
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -9682,7 +9872,7 @@ export declare function VenuesResponseToJSONTyped(value?: VenuesResponse | null,
9682
9872
  * MLB StatAPI
9683
9873
  * OpenAPI spec for the MLB Stats API (upstream API is undocumented). Derived from the python-mlb-statsapi library by zero-sum-seattle.
9684
9874
  *
9685
- * The version of the OpenAPI document: 0.8.2
9875
+ * The version of the OpenAPI document: 0.9.0
9686
9876
  *
9687
9877
  *
9688
9878
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).