UNPKG

@hotwax/oms-api

Version:

The OMS API package comes with prebuilt methods that helps communicate with HotWax Commerce OMS using Rest API

6 lines (5 loc) 1.74 kB
import { events, Product, Response, Stock, Order, OrderItem, OrderPart, OPERATOR, User } from './types'; import api, { client, getConfig, init, initialise, resetConfig, updateToken, updateInstanceUrl } from './api'; import { getTelecomCountryCode, hasError, isError } from './util'; import { askQuery, getAvailableTimeZones, getGitBookPage, getNotificationEnumIds, getNotificationUserPrefTypeIds, getUserFacilities, fetchGoodIdentificationTypes, fetchProducts, fetchProductsGroupedBy, fetchProductsGroupedByParent, fetchProductsStock, fetchProductsStockAtFacility, getEComStoresByFacility, getEComStores, getOrderDetails, getProductIdentificationPref, getProfile, logout, removeClientRegistrationToken, searchQuery, setProductIdentificationPref, storeClientRegistrationToken, subscribeTopic, unsubscribeTopic, updateOrderStatus, getUserPreference, setUserPreference, setUserLocale, setUserTimeZone } from './modules'; export { api, askQuery, client, getOrderDetails, updateOrderStatus, fetchGoodIdentificationTypes, fetchProducts, fetchProductsGroupedBy, fetchProductsGroupedByParent, getAvailableTimeZones, getEComStoresByFacility, getEComStores, getGitBookPage, getNotificationEnumIds, getNotificationUserPrefTypeIds, getConfig, getTelecomCountryCode, logout, hasError, init, initialise, isError, resetConfig, updateToken, updateInstanceUrl, fetchProductsStock, fetchProductsStockAtFacility, getProductIdentificationPref, getProfile, setProductIdentificationPref, getUserFacilities, events, Product, Response, Stock, Order, OrderItem, OrderPart, OPERATOR, removeClientRegistrationToken, searchQuery, storeClientRegistrationToken, subscribeTopic, unsubscribeTopic, User, getUserPreference, setUserPreference, setUserLocale, setUserTimeZone };