UNPKG

@hotwax/oms-api

Version:

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

25 lines (24 loc) 1.73 kB
import { Response } from "../../types"; 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<Array<any> | Response>; declare function fetchFacilities(token: string, baseURL: string, partyId: string, facilityGroupId: string, isAdminUser: boolean, payload: Object): Promise<any>; declare function getEComStores(token?: string, baseURL?: string, pageSize?: number): Promise<any>; declare function getEComStoresByFacility(token?: string, baseURL?: string, pageSize?: number, facilityId?: any): Promise<any>; declare function getUserPreference(token: any, baseURL: string, preferenceKey: string, userId: any): Promise<any>; declare function updateUserPreference(payload: any): Promise<any>; declare function getProductIdentificationPref(productStoreId: any): Promise<any>; declare function setProductIdentificationPref(productStoreId: string, productIdentificationPref: any): Promise<any>; declare const _default: { fetchFacilities: typeof fetchFacilities; fetchFacilitiesByParty: typeof fetchFacilitiesByParty; fetchFacilitiesByGroup: typeof fetchFacilitiesByGroup; getAvailableTimeZones: () => Promise<any>; getEComStores: typeof getEComStores; getEComStoresByFacility: typeof getEComStoresByFacility; getProductIdentificationPref: typeof getProductIdentificationPref; getUserPreference: typeof getUserPreference; setProductIdentificationPref: typeof setProductIdentificationPref; setUserTimeZone: () => Promise<any>; updateUserPreference: typeof updateUserPreference; }; export default _default;