npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cord-travel/pms-connect

v1.0.2-beta.8

Published

A common interface for handling pms data at @cord-travel

Downloads

27

Readme

pms-connect :hotel:

A common interface for handling pms data at @cord-travel

Available Adapters :nut_and_bolt:

| Repository | PMS | API Driver | Web Hooks | ARI Subscription | Booking | | ------------------------------------------------------------------------------------ | --------- | ---------- | ---------------------- | ---------------------- | ------- | | @cord-travel/pms-connect-apaleo | Apaleo 🦁 | Rest | :white_check_mark: Yes | :white_check_mark: Yes | [WIP] |

Create New Adapters :honey_pot:

Create your own pms connect adapters by implement the IBaseAdapter interface

Example :hatching_chick: :

import {
  IBaseAdapter,
  RestRequestDriver,
  Models
} from '@cord-travel/pms-connect';

class MyAdapter extends RestRequestDriver implements IBaseAdapter {
  // Implement all available methods here...
  // ...
}

API Reference :books: [WIP]

IBaseAdapter Interface methods

This methods are implemented in adapters. all methods return Promise

Account

| Method | Drescription | Params | Return | | ---------- | ------------------------------ | ------ | ------ | | getAccount | Get Authorized account details | None | |

Hotel

| Method | Description | Params | Return | | ------------ | -------------------------------- | ------ | ----------------------------------- | | getHotels | List hotels | None | IConnected_ListOf<IConnected_Hotel> | | getHotelById | Get a single hotel details by id | ID | IConnected_Hotel |

RoomType

| Method | Description | Params | Return | | --------------- | ---------------- | -------------- | -------------------------------------- | | getRoomsTypes | List room types | HotelId | IConnected_ListOf<IConnected_RoomType> | | getRoomTypeById | Room type detail | RoomTypeId | IConnected_RoomType |

RatePlan

| Method | Description | Params | Return | | --------------------- | -------------------------- | ----------- | -------------------------------------- | | getRatePlansByHotelId | Get rateplan list by hotel | hotelId | IConnected_ListOf<IConnected_RatePlan> | | getRatePlanById | Get rateplan details | id | IConnected_RatePlan |

Rate

| Method | Description | Params | Return | | ------------------ | ----------- | ---------------------------------------------------------- | ---------------------------------- | | getRatesByRatePlan | Get rates | rateplan<IConnected_RatePlan> or <IConnected_RatePlanItem> | IConnected_ListOf<IConnected_Rate> |

Policies

| Method | Description | Params | Return | | ------------------------- | --------------------------------- | ----------- | ------------------------------------------------ | | getCancellationPolicies | Get list of cancellation policies | hotelId | IConnected_ListOf<IConnected_CancellationPolicy> | | getCancellationPolicyById | Cancellation policy | id | IConnected_CancellationPolicy | | getNoShowPolicies | List of no show policies | hotelId | IConnected_ListOf<IConnected_NoShowPolicy> | | getNoShowPolicyById | No show policy | id | IConnected_NoShowPolicy |

Categories

| Method | Description | Params | Return | | ------------------ | -------------------------- | ----------- | ----------------------------------------- | | getAgeCategories | Get list of age categories | hotelId | IConnected_ListOf<IConnected_AgeCategory> | | getAgeCategoryById | Get age catgory by id | id | IConnected_AgeCategory |

Services

| Method | Description | Params | Return | | -------------- | -------------------- | ----------- | ------------------------------------- | | getServices | Get list of services | hotelId | IConnected_ListOf<IConnected_Service> | | getServiceById | Get service by id | id | IConnected_Service |

TimeSlice Definition

| Method | Description | Params | Return | | -------------- | -------------------- | ----------- | ------------------------------------- | | getTimeSliceDefinitions | Get list of TimeSlice Definition | hotelId | IConnected_ListOf<IConnected_TimeSliceDefinition> | | getTimeSliceDefinitionDetail | Get TimeSlice Definition Details | hotel_id, id | IConnected_TimeSliceDefinition |

Promo codes

| Method | Description | Params | Return | | ------------- | ----------------------- | ------ | --------------------------------------- | | getPromoCodes | Get list of promo codes | none | IConnected_ListOf<IConnected_PromoCode> |

Webhook Subscriptions

| Method | Description | Params | Return | | --------------- | ------------------------------ | ----------------------------------- | ------------------------------ | | webhooksList | List webhook subscriptions | none | IConnected_WebHookDefinition[] | | webhooksGetById | Get webhook subscription by id | id | IConnected_WebHookDefinition | | webhooksCreate | Create webhook subscription | body <IConnected_WebHookDefinition> | id | | webhooksUpdate | Update webhook subscription | body <IConnected_WebHookDefinition> | id | | webhooksDelete | Delete webhook subscription | id | id |

ARI Data subscription

| Method | Description | Params | Return | | --------------------------- | --------------------------- | --------------------------------- | ----------------------------------- | | getARISubscriptions | List ari subscriptions | none | IConnected_SubscriptionDefinition[] | | getARISubscriptionById | Get subscription details | id | IConnected_SubscriptionDefinition | | createARISubscription | Create new ari subscription | data<IConnected_SubscriptionBody> | id | | updateARISubscription | Update ari subscription | data<IConnected_SubscriptionBody> | id | | deleteARISubscription | Delete ari subscription | id | id | | triggerARISubscriptionEvent | Trigger ari events | id, event | id |