@matt-attalla/jetsetters-network-types
v0.0.22
Published
Types package for models and enums used across the Jetsetters Network platform.
Readme
Jetsetters Network Types
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.
Features
- 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.
Installation
To install the package in your project, run:
npm install @jetsetters-network/typesUsuage
Once installed, you can import models and enums into your project.
Importing Models
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: "[email protected]",
// ... other account properties
};Importing Enums
Similarly, you can import enums like the Gender enum:
import { Gender } from '@jetsetters-network/types/enums/accounts/gender.enum';
const userGender: Gender = Gender.Male;Development
Clone the repository:
git clone https://gitlab.com/jetsetters-network/types.gitInstall dependencies:
npm installBuild the package:
npm run build
Publish
Build the package:
npm run buildChange directory to dist
cd distPublish the package
npm publish
