@hzn-one/commons
v1.0.63
Published
A npm package that provide a common function and interface
Downloads
34
Keywords
Readme
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 | ... |