This package contains shared TypeScript types between the LeadHQL frontend and backend applications.
From the root of the monorepo:
# From leadhql-frontend-nextjs or leadhql-backend-nestjs
npm install ../leadhql-shared-types
Or you can use a symlink for development:
# From the shared types package directory
npm link
# From the frontend or backend directory
npm link leadhql-shared-types
Once published to a registry:
npm install leadhql-shared-types
import { Lead, LeadStatus, Organization } from 'leadhql-shared-types';
// Use the types in your frontend or backend code
const lead: Lead = {
id: 1,
firstName: 'John',
lastName: 'Doe',
email: 'john.doe@example.com',
// ...other required fields
};
This package includes TypeScript definitions for:
- Lead
- Organization
- LeadGroup
- Plan
- Transaction
- PriceSettings
- LeadGroupSubscription
- MetaToken
- FxRate
- PollTimestamp
- SubscriptionLanguagePreference
- ZapierApiKey
When making changes to entities in the backend, please ensure the corresponding type definitions in this package are updated accordingly. # leadhql-shared-types