@bp1222/stats-api 0.0.7 → 0.1.3
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/package.json +5 -4
- package/.github/workflows/publish.yaml +0 -24
- package/Makefile +0 -27
- package/dist/index.d.mts +0 -2135
- package/dist/index.d.ts +0 -2135
- package/dist/index.js +0 -1696
- package/dist/index.mjs +0 -1574
- package/openapitools.json +0 -17
- package/spec/components/parameters/parameters.yaml +0 -21
- package/spec/components/parameters/query/date.yaml +0 -5
- package/spec/components/parameters/query/endDate.yaml +0 -5
- package/spec/components/parameters/query/fields.yaml +0 -10
- package/spec/components/parameters/query/hydrate.yaml +0 -5
- package/spec/components/parameters/query/leagueId.yaml +0 -5
- package/spec/components/parameters/query/leagueIds.yaml +0 -7
- package/spec/components/parameters/query/season.yaml +0 -5
- package/spec/components/parameters/query/sportId.yaml +0 -6
- package/spec/components/parameters/query/startDate.yaml +0 -5
- package/spec/components/parameters/query/teamId.yaml +0 -5
- package/spec/components/schemas/division.yaml +0 -32
- package/spec/components/schemas/game.yaml +0 -153
- package/spec/components/schemas/gameTeam.yaml +0 -22
- package/spec/components/schemas/league.yaml +0 -62
- package/spec/components/schemas/leagueRecord.yaml +0 -15
- package/spec/components/schemas/record.yaml +0 -95
- package/spec/components/schemas/schedule.yaml +0 -41
- package/spec/components/schemas/schemas.yaml +0 -24
- package/spec/components/schemas/season.yaml +0 -53
- package/spec/components/schemas/sport.yaml +0 -21
- package/spec/components/schemas/standings.yaml +0 -24
- package/spec/components/schemas/team.yaml +0 -50
- package/spec/components/schemas/venue.yaml +0 -18
- package/spec/openapi.yaml +0 -32
- package/spec/paths/allSeasons.yaml +0 -23
- package/spec/paths/schedule.yaml +0 -20
- package/spec/paths/season.yaml +0 -18
- package/spec/paths/standings.yaml +0 -27
- package/spec/paths/teams.yaml +0 -33
- package/src/.openapi-generator/FILES +0 -25
- package/src/.openapi-generator/VERSION +0 -1
- package/src/.openapi-generator-ignore +0 -23
- package/src/apis/MlbApi.ts +0 -427
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/MLBDivision.ts +0 -164
- package/src/models/MLBGame.ts +0 -371
- package/src/models/MLBGameStatus.ts +0 -122
- package/src/models/MLBGameTeam.ts +0 -117
- package/src/models/MLBGameTeams.ts +0 -77
- package/src/models/MLBLeague.ts +0 -190
- package/src/models/MLBLeagueDates.ts +0 -132
- package/src/models/MLBLeagueRecord.ts +0 -87
- package/src/models/MLBRecord.ts +0 -337
- package/src/models/MLBSchedule.ts +0 -105
- package/src/models/MLBScheduleDay.ts +0 -108
- package/src/models/MLBScheduleDays.ts +0 -108
- package/src/models/MLBSeason.ts +0 -226
- package/src/models/MLBSeasons.ts +0 -67
- package/src/models/MLBSport.ts +0 -110
- package/src/models/MLBStandings.ts +0 -130
- package/src/models/MLBStandingsList.ts +0 -67
- package/src/models/MLBStreak.ts +0 -74
- package/src/models/MLBTeam.ts +0 -248
- package/src/models/MLBTeams.ts +0 -67
- package/src/models/MLBVenue.ts +0 -95
- package/src/models/index.ts +0 -22
- package/src/runtime.ts +0 -426
- package/tsconfig.json +0 -108
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bp1222/stats-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"main": "dist/index.js",
|
|
4
5
|
"module": "dist/index.mjs",
|
|
5
6
|
"types": "dist/index.d.ts",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "https://github.com/bp1222/stats-api.git"
|
|
9
10
|
},
|
|
10
|
-
"exports": {
|
|
11
|
-
".": "./src/index.ts"
|
|
12
|
-
},
|
|
13
11
|
"scripts": {
|
|
14
12
|
"build": "tsup src/index.ts --format cjs,esm --dts"
|
|
15
13
|
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/**"
|
|
16
|
+
],
|
|
16
17
|
"keywords": ["mlb", "stats-api"],
|
|
17
18
|
"author": "Dave Walker",
|
|
18
19
|
"license": "ISC",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: Publish Package to npmjs
|
|
2
|
-
on:
|
|
3
|
-
release:
|
|
4
|
-
types: [published]
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
permissions:
|
|
9
|
-
contents: read
|
|
10
|
-
id-token: write
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v4
|
|
13
|
-
|
|
14
|
-
# Setup .npmrc file to publish to npm
|
|
15
|
-
- uses: actions/setup-node@v4
|
|
16
|
-
with:
|
|
17
|
-
node-version: '20.x'
|
|
18
|
-
registry-url: 'https://registry.npmjs.org'
|
|
19
|
-
|
|
20
|
-
- run: npm install
|
|
21
|
-
|
|
22
|
-
- run: npm publish --provenance --access public
|
|
23
|
-
env:
|
|
24
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
|
package/Makefile
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Colors
|
|
2
|
-
RESET=\033[0m
|
|
3
|
-
GREEN=\033[32m
|
|
4
|
-
YELLOW=\033[33m
|
|
5
|
-
CYAN=\033[36m
|
|
6
|
-
|
|
7
|
-
.PHONY: all
|
|
8
|
-
all: help
|
|
9
|
-
|
|
10
|
-
# Cite: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
|
|
11
|
-
.PHONY: help
|
|
12
|
-
help: ## Display this help page
|
|
13
|
-
@grep -E '^[a-zA-Z0-9/_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
|
|
14
|
-
sort | \
|
|
15
|
-
awk ' \
|
|
16
|
-
BEGIN {FS = ":.*?## "; print "${GREEN}mlb-season help:\n"} \
|
|
17
|
-
{printf "${CYAN}%-30s${RESET} %s\n", $$1, $$2} \
|
|
18
|
-
END {print "\n${YELLOW}See README.md for more information${RESET}\n"}'
|
|
19
|
-
|
|
20
|
-
.PHONY: bundle
|
|
21
|
-
bundle: ## Builds the yaml bundle
|
|
22
|
-
npx --yes @redocly/cli bundle -d --remove-unused-components -o bundle.yaml spec/openapi.yaml
|
|
23
|
-
|
|
24
|
-
.PHONY: gen
|
|
25
|
-
gen: bundle
|
|
26
|
-
npx --yes @openapitools/openapi-generator-cli generate --generator-key v0-client
|
|
27
|
-
|