UNPKG

@hotwax/oms-api

Version:

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

20 lines (19 loc) 2.62 kB
import { getOrderDetails, updateOrderStatus } from '../modules/order'; import { fetchProducts, fetchProductsGroupedBy, fetchProductsGroupedByParent } from '../modules/product'; import { getProfile, logout, setUserLocale, setUserTimeZone } from '../modules/user'; import { getNotificationEnumIds, getNotificationUserPrefTypeIds, removeClientRegistrationToken, storeClientRegistrationToken, subscribeTopic, unsubscribeTopic } from '../modules/notification'; import { fetchProductsStock, fetchProductsStockAtFacility } from '../modules/stock'; import { askQuery, getGitBookPage, searchQuery } from '../modules/gitbook'; declare const getAvailableTimeZones: () => Promise<any>; declare function getUserFacilities(token: any, baseURL: string, partyId: string, facilityGroupId: any, isAdminUser?: boolean, payload?: {}): Promise<any>; declare function fetchFacilities(token: any, baseURL: string, partyId: string, facilityGroupId: any, isAdminUser?: boolean, payload?: {}): Promise<any>; declare function fetchFacilitiesByGroup(facilityGroupId: string, baseURL?: string, token?: string, payload?: any): Promise<any>; declare function fetchFacilitiesByParty(partyId: string, baseURL?: string, token?: string, payload?: any): Promise<any[] | import("../types").Response>; declare function getEComStores(token: any, baseURL: string, vSize?: number): Promise<any>; declare function getEComStoresByFacility(token: any, baseURL: string, vSize?: number, facilityId?: string): Promise<any>; declare function getUserPreference(token: any, baseURL: string, userPrefTypeId: string, userId?: string): Promise<any>; declare function getProductIdentificationPref(eComStoreId: string): Promise<any>; declare function setProductIdentificationPref(eComStoreId: string, productIdentificationPref: any): Promise<any>; declare const setUserPreference: (payload: any) => Promise<any>; declare const fetchGoodIdentificationTypes: (payload: any) => Promise<any>; export { askQuery, fetchFacilities, fetchFacilitiesByGroup, fetchFacilitiesByParty, fetchGoodIdentificationTypes, fetchProducts, fetchProductsGroupedBy, fetchProductsGroupedByParent, fetchProductsStock, fetchProductsStockAtFacility, getAvailableTimeZones, getEComStoresByFacility, getEComStores, getGitBookPage, getNotificationEnumIds, getNotificationUserPrefTypeIds, getOrderDetails, getProductIdentificationPref, getProfile, removeClientRegistrationToken, logout, searchQuery, setProductIdentificationPref, storeClientRegistrationToken, subscribeTopic, unsubscribeTopic, getUserFacilities, updateOrderStatus, getUserPreference, setUserPreference, setUserLocale, setUserTimeZone };