@nukleus-sports/api-contracts
v1.0.1
Published
API contracts for Nukleus portals (Agency & Player)
Downloads
1,507
Readme
@nukleus-sports/api-contracts
Shared API contract package for Nukleus portals.
Install
bun add @nukleus-sports/api-contractsFor local development before publishing:
# In this repository
bun link
# In consumer repository
bun link @nukleus-sports/api-contractsScripts
bun run lint
bun run test
bun run typecheck
bun run buildContract Modules
- Auth:
signIn,signUp,verifyOtp,resendOtp,refreshToken,signOut,authenticate - Profile:
getProfile,updateProfile
Exports
import { signInContract, getProfileContract } from '@nukleus-sports/api-contracts';
import { authenticateContract } from '@nukleus-sports/api-contracts/auth';
import { updateProfileContract } from '@nukleus-sports/api-contracts/profile';Publish
bun run lint
bun run test
bun run typecheck
bun run build
npm publish --access public