1.0.2-beta.8 • Published 2 years ago

@cord-travel/pms-connect v1.0.2-beta.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

pms-connect :hotel:

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

Available Adapters :nut_and_bolt:

RepositoryPMSAPI DriverWeb HooksARI SubscriptionBooking
@cord-travel/pms-connect-apaleoApaleo 🦁Rest:white_check_mark: Yes:white_check_mark: YesWIP

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

MethodDrescriptionParamsReturn
getAccountGet Authorized account detailsNone

Hotel

MethodDescriptionParamsReturn
getHotelsList hotelsNoneIConnected_ListOf<IConnected_Hotel>
getHotelByIdGet a single hotel details by idIDIConnected_Hotel

RoomType

MethodDescriptionParamsReturn
getRoomsTypesList room typesHotelIdIConnected_ListOf<IConnected_RoomType>
getRoomTypeByIdRoom type detailRoomTypeIdIConnected_RoomType

RatePlan

MethodDescriptionParamsReturn
getRatePlansByHotelIdGet rateplan list by hotelhotelIdIConnected_ListOf<IConnected_RatePlan>
getRatePlanByIdGet rateplan detailsidIConnected_RatePlan

Rate

MethodDescriptionParamsReturn
getRatesByRatePlanGet ratesrateplan<IConnected_RatePlan> or <IConnected_RatePlanItem>IConnected_ListOf<IConnected_Rate>

Policies

MethodDescriptionParamsReturn
getCancellationPoliciesGet list of cancellation policieshotelIdIConnected_ListOf<IConnected_CancellationPolicy>
getCancellationPolicyByIdCancellation policyidIConnected_CancellationPolicy
getNoShowPoliciesList of no show policieshotelIdIConnected_ListOf<IConnected_NoShowPolicy>
getNoShowPolicyByIdNo show policyidIConnected_NoShowPolicy

Categories

MethodDescriptionParamsReturn
getAgeCategoriesGet list of age categorieshotelIdIConnected_ListOf<IConnected_AgeCategory>
getAgeCategoryByIdGet age catgory by ididIConnected_AgeCategory

Services

MethodDescriptionParamsReturn
getServicesGet list of serviceshotelIdIConnected_ListOf<IConnected_Service>
getServiceByIdGet service by ididIConnected_Service

TimeSlice Definition

MethodDescriptionParamsReturn
getTimeSliceDefinitionsGet list of TimeSlice DefinitionhotelIdIConnected_ListOf<IConnected_TimeSliceDefinition>
getTimeSliceDefinitionDetailGet TimeSlice Definition Detailshotel_id, idIConnected_TimeSliceDefinition

Promo codes

MethodDescriptionParamsReturn
getPromoCodesGet list of promo codesnoneIConnected_ListOf<IConnected_PromoCode>

Webhook Subscriptions

MethodDescriptionParamsReturn
webhooksListList webhook subscriptionsnoneIConnected_WebHookDefinition[]
webhooksGetByIdGet webhook subscription by ididIConnected_WebHookDefinition
webhooksCreateCreate webhook subscriptionbody <IConnected_WebHookDefinition>id
webhooksUpdateUpdate webhook subscriptionbody <IConnected_WebHookDefinition>id
webhooksDeleteDelete webhook subscriptionidid

ARI Data subscription

MethodDescriptionParamsReturn
getARISubscriptionsList ari subscriptionsnoneIConnected_SubscriptionDefinition[]
getARISubscriptionByIdGet subscription detailsidIConnected_SubscriptionDefinition
createARISubscriptionCreate new ari subscriptiondata<IConnected_SubscriptionBody>id
updateARISubscriptionUpdate ari subscriptiondata<IConnected_SubscriptionBody>id
deleteARISubscriptionDelete ari subscriptionidid
triggerARISubscriptionEventTrigger ari eventsid, eventid
1.0.2-beta.8

2 years ago

1.0.2-beta.7.1

3 years ago

1.0.2-beta.6

3 years ago

1.0.2-beta.7

3 years ago

1.0.2-beta.5.4

3 years ago

1.0.2-beta.5.3

3 years ago

1.0.2-beta.5.2

3 years ago

1.0.2-beta.2

3 years ago

1.0.2-beta.3

3 years ago

1.0.2-beta.1

3 years ago

1.0.2-beta.0

3 years ago

1.0.1-beta.4

3 years ago

1.0.1-beta.3

3 years ago

1.0.1-beta.2

3 years ago

1.0.1-beta.1

3 years ago

1.0.0

3 years ago

1.0.0-beta.6

3 years ago

1.0.0-beta.5

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.3

3 years ago

1.0.0-beta.2.2

3 years ago

1.0.0-beta.2.1

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.1

3 years ago

1.0.0-beta.0

3 years ago