NPM Package: @hzn-one/commons
A npm package that provide a common function and interface
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 |
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 |
Interface | Description |
---|---|
IPriceStandardObject | ... |
ICoordinate | ... |
IAddress | ... |
IContact | ... |
IItem | ... |
IDestination | ... |
IOrderStandardObject | ... |
IPriceRequestBody | ... |
IOrderRequestBody | ... |