@matt-attalla/jetsetters-network-types
TypeScript icon, indicating that this package has built-in type declarations

0.0.22 • Public • Published

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/types

Usuage

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: "john.doe@example.com",
  // ... 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

  1. Clone the repository: git clone https://gitlab.com/jetsetters-network/types.git

  2. Install dependencies: npm install

  3. Build the package: npm run build

Publish

  1. Build the package: npm run build

  2. Change directory to dist cd dist

  3. Publish the package npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i @matt-attalla/jetsetters-network-types

Weekly Downloads

1

Version

0.0.22

License

ISC

Unpacked Size

80.3 kB

Total Files

197

Last publish

Collaborators

  • matt-attalla