creative-social-types
v1.0.3
Published
Shared Zod schemas and TypeScript types for Creative Social
Maintainers
Readme
Creative Social Types
Shared Zod schemas and TypeScript types for the Creative Social project.
Installation
For Local Development (Recommended)
Clone all repos to the same parent directory:
mkdir creative-social-split && cd creative-social-split
git clone https://github.com/smhpk-1/creative-social-types.git
git clone https://github.com/smhpk-1/creative-social-data.git
git clone https://github.com/smhpk-1/creative-social-web.gitThe data and web repos use file:../creative-social-types for local development.
For Production (npm)
Once published to npm:
npm install creative-social-typesUsage
import { EventSchema, VenueSchema, PlaceSchema } from 'creative-social-types';
import { isEvent, isVenue } from 'creative-social-types';
import { canonicalId } from 'creative-social-types/server';Publishing to npm
- Create an npm account and get an access token
- Add
NPM_TOKENsecret to this repo's GitHub settings - Run the "Publish to npm" workflow manually or create a release
Schemas
- Event: Biletix events with venue, dates, tickets
- Venue: Istanbul venues (concert halls, theaters, etc.)
- Place: Google Places (cafes, bars, restaurants)
- Ticket: Event ticket information
Development
pnpm install
pnpm test
pnpm build