Skip to content

A npm package that provide a common function and interface

License

Notifications You must be signed in to change notification settings

HZN-one/lib-commons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Package: @hzn-one/commons

A npm package that provide a common function and interface

Exported Class

Class Description
Delivery A common function that used in delivery gateway system
Map A common function that related to map functionality
Http A common function that related to http
Error A common function that related to error
Util A common function that related to error

Exported Method

Class Description
Http.response A function to standarize the http response
Map.distance A function to calculate distance between 2 locations
Map.recommendationRoute A function to find optimize route between some locations
Util.pick A function to pick some property from object
ApiError A class for API Error object
Delivery.toPriceStandardObject A function to standarize price object
Delivery.toOrderStandardObject A function to standarize order object

Exported Interface

Interface Description
IPriceStandardObject ...
ICoordinate ...
IAddress ...
IContact ...
IItem ...
IDestination ...
IOrderStandardObject ...
IPriceRequestBody ...
IOrderRequestBody ...