@bp1222/stats-api 0.0.6 → 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 +565 -0
  2. package/dist/index.d.ts +565 -0
  3. package/dist/index.js +1696 -0
  4. package/dist/index.mjs +1574 -0
  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,21 +0,0 @@
1
- title: MLBSport
2
- description: >
3
- Sport
4
- type: object
5
- required:
6
- - id
7
- properties:
8
- id:
9
- type: number
10
- code:
11
- type: string
12
- link:
13
- type: string
14
- name:
15
- type: string
16
- abbreviation:
17
- type: string
18
- sortOrder:
19
- type: number
20
- activeStatus:
21
- type: boolean
@@ -1,24 +0,0 @@
1
- title: MLBStandings
2
- description: >
3
- Standings
4
- type: object
5
- required:
6
- - league
7
- - division
8
- - sport
9
- - teamRecords
10
- properties:
11
- standingsType:
12
- type: string
13
- league:
14
- $ref: ./schemas.yaml#/MLBLeague
15
- division:
16
- $ref: ./schemas.yaml#/MLBDivision
17
- sport:
18
- $ref: ./schemas.yaml#/MLBSport
19
- lastUpdated:
20
- type: string
21
- teamRecords:
22
- type: array
23
- items:
24
- $ref: ./schemas.yaml#/MLBRecord
@@ -1,50 +0,0 @@
1
- title: MLBTeam
2
- description: >
3
- Team
4
- type: object
5
- required:
6
- - id
7
- - name
8
- properties:
9
- id:
10
- type: number
11
- name:
12
- type: string
13
- link:
14
- type: string
15
- allStarStatus:
16
- type: string
17
- season:
18
- type: number
19
- venue:
20
- $ref: ./schemas.yaml#/MLBVenue
21
- springVenue:
22
- $ref: ./schemas.yaml#/MLBVenue
23
- teamCode:
24
- type: string
25
- fileCode:
26
- type: string
27
- abbreviation:
28
- type: string
29
- teamName:
30
- type: string
31
- locationName:
32
- type: string
33
- firstYearOfPlay:
34
- type: string
35
- league:
36
- $ref: ./schemas.yaml#/MLBLeague
37
- springLeague:
38
- $ref: ./schemas.yaml#/MLBLeague
39
- division:
40
- $ref: ./schemas.yaml#/MLBDivision
41
- sport:
42
- $ref: ./schemas.yaml#/MLBSport
43
- shortName:
44
- type: string
45
- franchiseName:
46
- type: string
47
- clubName:
48
- type: string
49
- active:
50
- type: boolean
@@ -1,18 +0,0 @@
1
- title: MLBVenue
2
- description: >
3
- Venue
4
- type: object
5
- required:
6
- - id
7
- - name
8
- properties:
9
- id:
10
- type: number
11
- name:
12
- type: string
13
- link:
14
- type: string
15
- active:
16
- type: boolean
17
- season:
18
- type: string
package/spec/openapi.yaml DELETED
@@ -1,32 +0,0 @@
1
- openapi: 3.0.2
2
- info:
3
- title: MLB StatAPI
4
- description: >
5
- An spec API to consume the MLB Stat API
6
- version: 0.0.1
7
- contact:
8
- name: "dave@mudsite.com"
9
-
10
- servers:
11
- - url: https://statsapi.mlb.com/api
12
-
13
- tags:
14
- - name: mlb
15
-
16
- paths:
17
- /v1/schedule:
18
- $ref: ./paths/schedule.yaml
19
- /v1/seasons:
20
- $ref: ./paths/season.yaml
21
- /v1/seasons/all:
22
- $ref: ./paths/allSeasons.yaml
23
- /v1/teams:
24
- $ref: ./paths/teams.yaml
25
- /v1/standings:
26
- $ref: ./paths/standings.yaml
27
-
28
- components:
29
- parameters:
30
- $ref: ./components/parameters/parameters.yaml
31
- schemas:
32
- $ref: ./components/schemas/schemas.yaml
@@ -1,23 +0,0 @@
1
- # /v1/seasons/all?sportId={sportId}
2
- get:
3
- operationId: getAllSeasons
4
- summary: Retrieves All Seasons over time
5
- description: >
6
- Returns All Seasons
7
- parameters:
8
- - $ref: ../components/parameters/parameters.yaml#/SportId
9
- tags:
10
- - mlb
11
- responses:
12
- "200":
13
- description: OK
14
- content:
15
- application/json:
16
- schema:
17
- title: MLBSeasons
18
- type: object
19
- properties:
20
- seasons:
21
- type: array
22
- items:
23
- $ref: ../components/schemas/schemas.yaml#/MLBSeason
@@ -1,20 +0,0 @@
1
- # /v1/schedule
2
- get:
3
- operationId: getSchedule
4
- summary: Retrieves schedule
5
- description: >
6
- Returns Schedule
7
- parameters:
8
- - $ref: ../components/parameters/parameters.yaml#/SportId
9
- - $ref: ../components/parameters/parameters.yaml#/TeamId
10
- - $ref: ../components/parameters/parameters.yaml#/StartDate
11
- - $ref: ../components/parameters/parameters.yaml#/EndDate
12
- tags:
13
- - mlb
14
- responses:
15
- "200":
16
- description: OK
17
- content:
18
- application/json:
19
- schema:
20
- $ref: ../components/schemas/schemas.yaml#/MLBSchedule
@@ -1,18 +0,0 @@
1
- # /v1/seasons
2
- get:
3
- operationId: getSeason
4
- summary: Retrieves season
5
- description: >
6
- Returns Season
7
- parameters:
8
- - $ref: ../components/parameters/parameters.yaml#/SportId
9
- - $ref: ../components/parameters/parameters.yaml#/Season
10
- tags:
11
- - mlb
12
- responses:
13
- "200":
14
- description: OK
15
- content:
16
- application/json:
17
- schema:
18
- $ref: ../components/schemas/schemas.yaml#/MLBSeason
@@ -1,27 +0,0 @@
1
- # /v1/standings
2
- get:
3
- operationId: getStandings
4
- summary: Retrieves Standings
5
- description: >
6
- Returns Standing
7
- parameters:
8
- - $ref: ../components/parameters/parameters.yaml#/LeagueId
9
- - $ref: ../components/parameters/parameters.yaml#/Season
10
- - $ref: ../components/parameters/parameters.yaml#/Date
11
- - $ref: ../components/parameters/parameters.yaml#/Fields
12
- - $ref: ../components/parameters/parameters.yaml#/Hydrate
13
- tags:
14
- - mlb
15
- responses:
16
- "200":
17
- description: OK
18
- content:
19
- application/json:
20
- schema:
21
- title: MLBStandingsList
22
- type: object
23
- properties:
24
- records:
25
- type: array
26
- items:
27
- $ref: ../components/schemas/schemas.yaml#/MLBStandings
@@ -1,33 +0,0 @@
1
- # /v1/teams
2
- get:
3
- operationId: getTeams
4
- summary: Retrieves Teams
5
- description: >
6
- Returns Teams
7
- parameters:
8
- - $ref: ../components/parameters/parameters.yaml#/SportId
9
- - $ref: ../components/parameters/parameters.yaml#/Season
10
- - $ref: ../components/parameters/parameters.yaml#/LeagueIds
11
- #"season",
12
- #"activeStatus",
13
- #"leagueIds",
14
- #"sportId",
15
- #"sportIds",
16
- #"gameType",
17
- #"hydrate",
18
- #"fields",
19
- tags:
20
- - mlb
21
- responses:
22
- "200":
23
- description: OK
24
- content:
25
- application/json:
26
- schema:
27
- title: MLBTeams
28
- type: object
29
- properties:
30
- teams:
31
- type: array
32
- items:
33
- $ref: ../components/schemas/schemas.yaml#/MLBTeam
@@ -1,25 +0,0 @@
1
- apis/MlbApi.ts
2
- apis/index.ts
3
- index.ts
4
- models/MLBDivision.ts
5
- models/MLBGame.ts
6
- models/MLBGameStatus.ts
7
- models/MLBGameTeam.ts
8
- models/MLBGameTeams.ts
9
- models/MLBLeague.ts
10
- models/MLBLeagueDates.ts
11
- models/MLBLeagueRecord.ts
12
- models/MLBRecord.ts
13
- models/MLBSchedule.ts
14
- models/MLBScheduleDay.ts
15
- models/MLBSeason.ts
16
- models/MLBSeasons.ts
17
- models/MLBSport.ts
18
- models/MLBStandings.ts
19
- models/MLBStandingsList.ts
20
- models/MLBStreak.ts
21
- models/MLBTeam.ts
22
- models/MLBTeams.ts
23
- models/MLBVenue.ts
24
- models/index.ts
25
- runtime.ts
@@ -1 +0,0 @@
1
- 7.8.0
@@ -1,23 +0,0 @@
1
- # OpenAPI Generator Ignore
2
- # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md