This repo contains methods to communicate with Channex.io API, redux-based client side persistent storage and model validation methods.
Add into your package.json
file into dependencies
section:
"channex-bl": "^0.1.0"
Be sure, you have access to client_bl repo and your cert is not require passphrase on ssh request.
Import library:
import ChannexBL from 'channex-bl';
Then you can call any methods from library:
ChannexBL.Auth
.signIn(username, password)
.then(
success_data => console.log(success_data),
failure_data => console.log(failure_data)
);
Yoy can import only required elements from ChannexBL library through desctruction import:
import { Auth } from 'channex-bl';
ChannexBL provide for you next components:
ChannexBL.storage
initiated Redux storage with loaded dataChannexBL.transport
transport protocol to communicate with serverChannexBL.http
HTTP transport protocolChannexBL.ws
WebSocket transport protocol based at Phoenix WebSocket library
Methods:
ChannexBL.Auth
Authentication methodsChannexBL.Properties
Properties CRUD methodsChannexBL.RoomTypes
RoomTypes CRUD methodsChannexBL.RatePlans
RatePlans CRUD methodsChannexBL.Channels
Channels CRUD methodsChannexBL.ARI
Property restrictions Query methodChannexBL.CustomRates
CustomRates CRUD methodsChannexBL.CustomMinStayArrivals
CustomMinStayArrivals CRUD methodsChannexBL.CustomMinStayThroughs
CustomMinStayThroughs CRUD methodsChannexBL.CustomMaxStays
CustomMaxStays CRUD methodsChannexBL.CustomClosedToArrivals
CustomClosedToArrivals CRUD methodsChannexBL.CustomClosedToDepartures
CustomClosedToDepartures CRUD methodsChannexBL.CustomStopSells
CustomStopSells CRUD methodsChannexBL.CustomMaxSells
CustomMaxSells CRUD methodsChannexBL.CustomAvailabilityOffsets
CustomAvailabilityOffsets CRUD methodsChannexBL.CustomMaxAvailabilities
CustomMaxAvailabilities CRUD methodsChannexBL.CustomDerivedOptions
CustomDerivedOptions CRUD methodsChannexBL.EmailTemplates
EmailTemplates CRUD methodsChannexBL.Users
Users CRUD methodsChannexBL.WhiteLabelPartners
WhiteLabelPartners CRUD methodsChannexBL.WhiteLabelDomains
WhiteLabelDomains CRUD methodsChannexBL.WhiteLabelEmailSettings
WhiteLabelEmailSettings CRUD methods