@bp1222/stats-api 0.0.7 → 0.0.8

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 (68) hide show
  1. package/dist/index.d.mts +4 -1574
  2. package/dist/index.d.ts +4 -1574
  3. package/dist/index.js +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/package.json +5 -4
  6. package/.github/workflows/publish.yaml +0 -24
  7. package/Makefile +0 -27
  8. package/openapitools.json +0 -17
  9. package/spec/components/parameters/parameters.yaml +0 -21
  10. package/spec/components/parameters/query/date.yaml +0 -5
  11. package/spec/components/parameters/query/endDate.yaml +0 -5
  12. package/spec/components/parameters/query/fields.yaml +0 -10
  13. package/spec/components/parameters/query/hydrate.yaml +0 -5
  14. package/spec/components/parameters/query/leagueId.yaml +0 -5
  15. package/spec/components/parameters/query/leagueIds.yaml +0 -7
  16. package/spec/components/parameters/query/season.yaml +0 -5
  17. package/spec/components/parameters/query/sportId.yaml +0 -6
  18. package/spec/components/parameters/query/startDate.yaml +0 -5
  19. package/spec/components/parameters/query/teamId.yaml +0 -5
  20. package/spec/components/schemas/division.yaml +0 -32
  21. package/spec/components/schemas/game.yaml +0 -153
  22. package/spec/components/schemas/gameTeam.yaml +0 -22
  23. package/spec/components/schemas/league.yaml +0 -62
  24. package/spec/components/schemas/leagueRecord.yaml +0 -15
  25. package/spec/components/schemas/record.yaml +0 -95
  26. package/spec/components/schemas/schedule.yaml +0 -41
  27. package/spec/components/schemas/schemas.yaml +0 -24
  28. package/spec/components/schemas/season.yaml +0 -53
  29. package/spec/components/schemas/sport.yaml +0 -21
  30. package/spec/components/schemas/standings.yaml +0 -24
  31. package/spec/components/schemas/team.yaml +0 -50
  32. package/spec/components/schemas/venue.yaml +0 -18
  33. package/spec/openapi.yaml +0 -32
  34. package/spec/paths/allSeasons.yaml +0 -23
  35. package/spec/paths/schedule.yaml +0 -20
  36. package/spec/paths/season.yaml +0 -18
  37. package/spec/paths/standings.yaml +0 -27
  38. package/spec/paths/teams.yaml +0 -33
  39. package/src/.openapi-generator/FILES +0 -25
  40. package/src/.openapi-generator/VERSION +0 -1
  41. package/src/.openapi-generator-ignore +0 -23
  42. package/src/apis/MlbApi.ts +0 -427
  43. package/src/apis/index.ts +0 -3
  44. package/src/index.ts +0 -5
  45. package/src/models/MLBDivision.ts +0 -164
  46. package/src/models/MLBGame.ts +0 -371
  47. package/src/models/MLBGameStatus.ts +0 -122
  48. package/src/models/MLBGameTeam.ts +0 -117
  49. package/src/models/MLBGameTeams.ts +0 -77
  50. package/src/models/MLBLeague.ts +0 -190
  51. package/src/models/MLBLeagueDates.ts +0 -132
  52. package/src/models/MLBLeagueRecord.ts +0 -87
  53. package/src/models/MLBRecord.ts +0 -337
  54. package/src/models/MLBSchedule.ts +0 -105
  55. package/src/models/MLBScheduleDay.ts +0 -108
  56. package/src/models/MLBScheduleDays.ts +0 -108
  57. package/src/models/MLBSeason.ts +0 -226
  58. package/src/models/MLBSeasons.ts +0 -67
  59. package/src/models/MLBSport.ts +0 -110
  60. package/src/models/MLBStandings.ts +0 -130
  61. package/src/models/MLBStandingsList.ts +0 -67
  62. package/src/models/MLBStreak.ts +0 -74
  63. package/src/models/MLBTeam.ts +0 -248
  64. package/src/models/MLBTeams.ts +0 -67
  65. package/src/models/MLBVenue.ts +0 -95
  66. package/src/models/index.ts +0 -22
  67. package/src/runtime.ts +0 -426
  68. package/tsconfig.json +0 -108
@@ -1,427 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * MLB StatAPI
5
- * An spec API to consume the MLB Stat API
6
- *
7
- * The version of the OpenAPI document: 0.0.1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- MLBSchedule,
19
- MLBSeason,
20
- MLBSeasons,
21
- MLBStandingsList,
22
- MLBTeams,
23
- } from '../models/index';
24
- import {
25
- MLBScheduleFromJSON,
26
- MLBScheduleToJSON,
27
- MLBSeasonFromJSON,
28
- MLBSeasonToJSON,
29
- MLBSeasonsFromJSON,
30
- MLBSeasonsToJSON,
31
- MLBStandingsListFromJSON,
32
- MLBStandingsListToJSON,
33
- MLBTeamsFromJSON,
34
- MLBTeamsToJSON,
35
- } from '../models/index';
36
-
37
- export interface GetAllSeasonsRequest {
38
- sportId: number;
39
- }
40
-
41
- export interface GetScheduleRequest {
42
- sportId: number;
43
- teamId?: number;
44
- startDate?: string;
45
- endDate?: string;
46
- }
47
-
48
- export interface GetSeasonRequest {
49
- sportId: number;
50
- season: string;
51
- }
52
-
53
- export interface GetStandingsRequest {
54
- leagueId: number;
55
- season: string;
56
- date?: string;
57
- fields?: Array<string>;
58
- hydrate?: string;
59
- }
60
-
61
- export interface GetTeamsRequest {
62
- sportId: number;
63
- season: string;
64
- leagueIds?: Array<number>;
65
- }
66
-
67
- /**
68
- * MlbApi - interface
69
- *
70
- * @export
71
- * @interface MlbApiInterface
72
- */
73
- export interface MlbApiInterface {
74
- /**
75
- * Returns All Seasons
76
- * @summary Retrieves All Seasons over time
77
- * @param {number} sportId
78
- * @param {*} [options] Override http request option.
79
- * @throws {RequiredError}
80
- * @memberof MlbApiInterface
81
- */
82
- getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBSeasons>>;
83
-
84
- /**
85
- * Returns All Seasons
86
- * Retrieves All Seasons over time
87
- */
88
- getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBSeasons>;
89
-
90
- /**
91
- * Returns Schedule
92
- * @summary Retrieves schedule
93
- * @param {number} sportId
94
- * @param {number} [teamId]
95
- * @param {string} [startDate]
96
- * @param {string} [endDate]
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- * @memberof MlbApiInterface
100
- */
101
- getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBSchedule>>;
102
-
103
- /**
104
- * Returns Schedule
105
- * Retrieves schedule
106
- */
107
- getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBSchedule>;
108
-
109
- /**
110
- * Returns Season
111
- * @summary Retrieves season
112
- * @param {number} sportId
113
- * @param {string} season
114
- * @param {*} [options] Override http request option.
115
- * @throws {RequiredError}
116
- * @memberof MlbApiInterface
117
- */
118
- getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBSeason>>;
119
-
120
- /**
121
- * Returns Season
122
- * Retrieves season
123
- */
124
- getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBSeason>;
125
-
126
- /**
127
- * Returns Standing
128
- * @summary Retrieves Standings
129
- * @param {number} leagueId
130
- * @param {string} season
131
- * @param {string} [date]
132
- * @param {Array<string>} [fields]
133
- * @param {string} [hydrate]
134
- * @param {*} [options] Override http request option.
135
- * @throws {RequiredError}
136
- * @memberof MlbApiInterface
137
- */
138
- getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBStandingsList>>;
139
-
140
- /**
141
- * Returns Standing
142
- * Retrieves Standings
143
- */
144
- getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBStandingsList>;
145
-
146
- /**
147
- * Returns Teams
148
- * @summary Retrieves Teams
149
- * @param {number} sportId
150
- * @param {string} season
151
- * @param {Array<number>} [leagueIds]
152
- * @param {*} [options] Override http request option.
153
- * @throws {RequiredError}
154
- * @memberof MlbApiInterface
155
- */
156
- getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBTeams>>;
157
-
158
- /**
159
- * Returns Teams
160
- * Retrieves Teams
161
- */
162
- getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBTeams>;
163
-
164
- }
165
-
166
- /**
167
- *
168
- */
169
- export class MlbApi extends runtime.BaseAPI implements MlbApiInterface {
170
-
171
- /**
172
- * Returns All Seasons
173
- * Retrieves All Seasons over time
174
- */
175
- async getAllSeasonsRaw(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBSeasons>> {
176
- if (requestParameters['sportId'] == null) {
177
- throw new runtime.RequiredError(
178
- 'sportId',
179
- 'Required parameter "sportId" was null or undefined when calling getAllSeasons().'
180
- );
181
- }
182
-
183
- const queryParameters: any = {};
184
-
185
- if (requestParameters['sportId'] != null) {
186
- queryParameters['sportId'] = requestParameters['sportId'];
187
- }
188
-
189
- const headerParameters: runtime.HTTPHeaders = {};
190
-
191
- const response = await this.request({
192
- path: `/v1/seasons/all`,
193
- method: 'GET',
194
- headers: headerParameters,
195
- query: queryParameters,
196
- }, initOverrides);
197
-
198
- return new runtime.JSONApiResponse(response, (jsonValue) => MLBSeasonsFromJSON(jsonValue));
199
- }
200
-
201
- /**
202
- * Returns All Seasons
203
- * Retrieves All Seasons over time
204
- */
205
- async getAllSeasons(requestParameters: GetAllSeasonsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBSeasons> {
206
- const response = await this.getAllSeasonsRaw(requestParameters, initOverrides);
207
- return await response.value();
208
- }
209
-
210
- /**
211
- * Returns Schedule
212
- * Retrieves schedule
213
- */
214
- async getScheduleRaw(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBSchedule>> {
215
- if (requestParameters['sportId'] == null) {
216
- throw new runtime.RequiredError(
217
- 'sportId',
218
- 'Required parameter "sportId" was null or undefined when calling getSchedule().'
219
- );
220
- }
221
-
222
- const queryParameters: any = {};
223
-
224
- if (requestParameters['sportId'] != null) {
225
- queryParameters['sportId'] = requestParameters['sportId'];
226
- }
227
-
228
- if (requestParameters['teamId'] != null) {
229
- queryParameters['teamId'] = requestParameters['teamId'];
230
- }
231
-
232
- if (requestParameters['startDate'] != null) {
233
- queryParameters['startDate'] = requestParameters['startDate'];
234
- }
235
-
236
- if (requestParameters['endDate'] != null) {
237
- queryParameters['endDate'] = requestParameters['endDate'];
238
- }
239
-
240
- const headerParameters: runtime.HTTPHeaders = {};
241
-
242
- const response = await this.request({
243
- path: `/v1/schedule`,
244
- method: 'GET',
245
- headers: headerParameters,
246
- query: queryParameters,
247
- }, initOverrides);
248
-
249
- return new runtime.JSONApiResponse(response, (jsonValue) => MLBScheduleFromJSON(jsonValue));
250
- }
251
-
252
- /**
253
- * Returns Schedule
254
- * Retrieves schedule
255
- */
256
- async getSchedule(requestParameters: GetScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBSchedule> {
257
- const response = await this.getScheduleRaw(requestParameters, initOverrides);
258
- return await response.value();
259
- }
260
-
261
- /**
262
- * Returns Season
263
- * Retrieves season
264
- */
265
- async getSeasonRaw(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBSeason>> {
266
- if (requestParameters['sportId'] == null) {
267
- throw new runtime.RequiredError(
268
- 'sportId',
269
- 'Required parameter "sportId" was null or undefined when calling getSeason().'
270
- );
271
- }
272
-
273
- if (requestParameters['season'] == null) {
274
- throw new runtime.RequiredError(
275
- 'season',
276
- 'Required parameter "season" was null or undefined when calling getSeason().'
277
- );
278
- }
279
-
280
- const queryParameters: any = {};
281
-
282
- if (requestParameters['sportId'] != null) {
283
- queryParameters['sportId'] = requestParameters['sportId'];
284
- }
285
-
286
- if (requestParameters['season'] != null) {
287
- queryParameters['season'] = requestParameters['season'];
288
- }
289
-
290
- const headerParameters: runtime.HTTPHeaders = {};
291
-
292
- const response = await this.request({
293
- path: `/v1/seasons`,
294
- method: 'GET',
295
- headers: headerParameters,
296
- query: queryParameters,
297
- }, initOverrides);
298
-
299
- return new runtime.JSONApiResponse(response, (jsonValue) => MLBSeasonFromJSON(jsonValue));
300
- }
301
-
302
- /**
303
- * Returns Season
304
- * Retrieves season
305
- */
306
- async getSeason(requestParameters: GetSeasonRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBSeason> {
307
- const response = await this.getSeasonRaw(requestParameters, initOverrides);
308
- return await response.value();
309
- }
310
-
311
- /**
312
- * Returns Standing
313
- * Retrieves Standings
314
- */
315
- async getStandingsRaw(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBStandingsList>> {
316
- if (requestParameters['leagueId'] == null) {
317
- throw new runtime.RequiredError(
318
- 'leagueId',
319
- 'Required parameter "leagueId" was null or undefined when calling getStandings().'
320
- );
321
- }
322
-
323
- if (requestParameters['season'] == null) {
324
- throw new runtime.RequiredError(
325
- 'season',
326
- 'Required parameter "season" was null or undefined when calling getStandings().'
327
- );
328
- }
329
-
330
- const queryParameters: any = {};
331
-
332
- if (requestParameters['leagueId'] != null) {
333
- queryParameters['leagueId'] = requestParameters['leagueId'];
334
- }
335
-
336
- if (requestParameters['season'] != null) {
337
- queryParameters['season'] = requestParameters['season'];
338
- }
339
-
340
- if (requestParameters['date'] != null) {
341
- queryParameters['date'] = requestParameters['date'];
342
- }
343
-
344
- if (requestParameters['fields'] != null) {
345
- queryParameters['fields'] = requestParameters['fields']!.join(runtime.COLLECTION_FORMATS["csv"]);
346
- }
347
-
348
- if (requestParameters['hydrate'] != null) {
349
- queryParameters['hydrate'] = requestParameters['hydrate'];
350
- }
351
-
352
- const headerParameters: runtime.HTTPHeaders = {};
353
-
354
- const response = await this.request({
355
- path: `/v1/standings`,
356
- method: 'GET',
357
- headers: headerParameters,
358
- query: queryParameters,
359
- }, initOverrides);
360
-
361
- return new runtime.JSONApiResponse(response, (jsonValue) => MLBStandingsListFromJSON(jsonValue));
362
- }
363
-
364
- /**
365
- * Returns Standing
366
- * Retrieves Standings
367
- */
368
- async getStandings(requestParameters: GetStandingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBStandingsList> {
369
- const response = await this.getStandingsRaw(requestParameters, initOverrides);
370
- return await response.value();
371
- }
372
-
373
- /**
374
- * Returns Teams
375
- * Retrieves Teams
376
- */
377
- async getTeamsRaw(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MLBTeams>> {
378
- if (requestParameters['sportId'] == null) {
379
- throw new runtime.RequiredError(
380
- 'sportId',
381
- 'Required parameter "sportId" was null or undefined when calling getTeams().'
382
- );
383
- }
384
-
385
- if (requestParameters['season'] == null) {
386
- throw new runtime.RequiredError(
387
- 'season',
388
- 'Required parameter "season" was null or undefined when calling getTeams().'
389
- );
390
- }
391
-
392
- const queryParameters: any = {};
393
-
394
- if (requestParameters['sportId'] != null) {
395
- queryParameters['sportId'] = requestParameters['sportId'];
396
- }
397
-
398
- if (requestParameters['season'] != null) {
399
- queryParameters['season'] = requestParameters['season'];
400
- }
401
-
402
- if (requestParameters['leagueIds'] != null) {
403
- queryParameters['leagueIds'] = requestParameters['leagueIds'];
404
- }
405
-
406
- const headerParameters: runtime.HTTPHeaders = {};
407
-
408
- const response = await this.request({
409
- path: `/v1/teams`,
410
- method: 'GET',
411
- headers: headerParameters,
412
- query: queryParameters,
413
- }, initOverrides);
414
-
415
- return new runtime.JSONApiResponse(response, (jsonValue) => MLBTeamsFromJSON(jsonValue));
416
- }
417
-
418
- /**
419
- * Returns Teams
420
- * Retrieves Teams
421
- */
422
- async getTeams(requestParameters: GetTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MLBTeams> {
423
- const response = await this.getTeamsRaw(requestParameters, initOverrides);
424
- return await response.value();
425
- }
426
-
427
- }
package/src/apis/index.ts DELETED
@@ -1,3 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './MlbApi';
package/src/index.ts DELETED
@@ -1,5 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- export * from './runtime';
4
- export * from './apis/index';
5
- export * from './models/index';
@@ -1,164 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * MLB StatAPI
5
- * An spec API to consume the MLB Stat API
6
- *
7
- * The version of the OpenAPI document: 0.0.1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { MLBLeague } from './MLBLeague';
17
- import {
18
- MLBLeagueFromJSON,
19
- MLBLeagueFromJSONTyped,
20
- MLBLeagueToJSON,
21
- } from './MLBLeague';
22
- import type { MLBSport } from './MLBSport';
23
- import {
24
- MLBSportFromJSON,
25
- MLBSportFromJSONTyped,
26
- MLBSportToJSON,
27
- } from './MLBSport';
28
-
29
- /**
30
- * Division
31
- *
32
- * @export
33
- * @interface MLBDivision
34
- */
35
- export interface MLBDivision {
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof MLBDivision
40
- */
41
- id: number;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof MLBDivision
46
- */
47
- name: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof MLBDivision
52
- */
53
- season?: string;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof MLBDivision
58
- */
59
- nameShort?: string;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof MLBDivision
64
- */
65
- link?: string;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof MLBDivision
70
- */
71
- abbreviation?: string;
72
- /**
73
- *
74
- * @type {MLBLeague}
75
- * @memberof MLBDivision
76
- */
77
- league?: MLBLeague;
78
- /**
79
- *
80
- * @type {MLBSport}
81
- * @memberof MLBDivision
82
- */
83
- sport?: MLBSport;
84
- /**
85
- *
86
- * @type {boolean}
87
- * @memberof MLBDivision
88
- */
89
- hasWildcard?: boolean;
90
- /**
91
- *
92
- * @type {number}
93
- * @memberof MLBDivision
94
- */
95
- sortOrder?: number;
96
- /**
97
- *
98
- * @type {number}
99
- * @memberof MLBDivision
100
- */
101
- numPlayoffTeams?: number;
102
- /**
103
- *
104
- * @type {boolean}
105
- * @memberof MLBDivision
106
- */
107
- active?: boolean;
108
- }
109
-
110
- /**
111
- * Check if a given object implements the MLBDivision interface.
112
- */
113
- export function instanceOfMLBDivision(value: object): value is MLBDivision {
114
- if (!('id' in value) || value['id'] === undefined) return false;
115
- if (!('name' in value) || value['name'] === undefined) return false;
116
- return true;
117
- }
118
-
119
- export function MLBDivisionFromJSON(json: any): MLBDivision {
120
- return MLBDivisionFromJSONTyped(json, false);
121
- }
122
-
123
- export function MLBDivisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MLBDivision {
124
- if (json == null) {
125
- return json;
126
- }
127
- return {
128
-
129
- 'id': json['id'],
130
- 'name': json['name'],
131
- 'season': json['season'] == null ? undefined : json['season'],
132
- 'nameShort': json['nameShort'] == null ? undefined : json['nameShort'],
133
- 'link': json['link'] == null ? undefined : json['link'],
134
- 'abbreviation': json['abbreviation'] == null ? undefined : json['abbreviation'],
135
- 'league': json['league'] == null ? undefined : MLBLeagueFromJSON(json['league']),
136
- 'sport': json['sport'] == null ? undefined : MLBSportFromJSON(json['sport']),
137
- 'hasWildcard': json['hasWildcard'] == null ? undefined : json['hasWildcard'],
138
- 'sortOrder': json['sortOrder'] == null ? undefined : json['sortOrder'],
139
- 'numPlayoffTeams': json['numPlayoffTeams'] == null ? undefined : json['numPlayoffTeams'],
140
- 'active': json['active'] == null ? undefined : json['active'],
141
- };
142
- }
143
-
144
- export function MLBDivisionToJSON(value?: MLBDivision | null): any {
145
- if (value == null) {
146
- return value;
147
- }
148
- return {
149
-
150
- 'id': value['id'],
151
- 'name': value['name'],
152
- 'season': value['season'],
153
- 'nameShort': value['nameShort'],
154
- 'link': value['link'],
155
- 'abbreviation': value['abbreviation'],
156
- 'league': MLBLeagueToJSON(value['league']),
157
- 'sport': MLBSportToJSON(value['sport']),
158
- 'hasWildcard': value['hasWildcard'],
159
- 'sortOrder': value['sortOrder'],
160
- 'numPlayoffTeams': value['numPlayoffTeams'],
161
- 'active': value['active'],
162
- };
163
- }
164
-