This package contains TypeScript models and enums used across the Jetsetters Network platform. It provides a structured way to manage and share models and enums between different Angular projects.
- Models: Contains various models for accounts, community, flights, payments, locations, and more.
- Enums: Includes enums for flight types, onboarding steps, payment options, and other domain-specific entities.
To install the package in your project, run:
npm install @jetsetters-network/types
Once installed, you can import models and enums into your project.
For example, to import the Account
model from the package:
import { Account } from '@jetsetters-network/types/models/accounts/account.model';
const userAccount: Account = {
id: 1,
name: "John Doe",
email: "john.doe@example.com",
// ... other account properties
};
Similarly, you can import enums like the Gender
enum:
import { Gender } from '@jetsetters-network/types/enums/accounts/gender.enum';
const userGender: Gender = Gender.Male;
-
Clone the repository:
git clone https://gitlab.com/jetsetters-network/types.git
-
Install dependencies:
npm install
-
Build the package:
npm run build
-
Build the package:
npm run build
-
Change directory to dist
cd dist
-
Publish the package
npm publish