UNPKG

@hotwax/oms-api

Version:

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

28 lines (27 loc) 3.27 kB
import { getOrderDetails, updateOrderStatus } from '../modules/order'; import { fetchProducts, fetchProductsGroupedBy, fetchProductsGroupedByParent, searchProducts } from '../modules/product'; import { getProfile, logout } from '../modules/user'; 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>; declare function getNotificationEnumIds(enumTypeId: string): Promise<any>; declare function getNotificationUserPrefTypeIds(applicationId: string, userLoginId: string, filterConditions?: {}): Promise<any>; declare function storeClientRegistrationToken(registrationToken: string, deviceId: string, applicationId: string): Promise<any>; declare function removeClientRegistrationToken(deviceId: string, applicationId: string): Promise<any>; declare function subscribeTopic(topicName: string, applicationId: string): Promise<any>; declare function unsubscribeTopic(topicName: string, applicationId: string): Promise<any>; declare function loginShopifyAppUser(baseURL: string, payload: any): Promise<any>; declare function setUserTimeZone(payload: any): Promise<any>; declare function setUserLocale(payload: any): Promise<any>; export { askQuery, fetchFacilities, fetchFacilitiesByGroup, fetchFacilitiesByParty, fetchGoodIdentificationTypes, fetchProducts, searchProducts, 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, loginShopifyAppUser };