bid-tool/auto-bid-tool/system/config.js

34 lines
1.3 KiB
JavaScript

const configs = {
AUTO_TRACKING_DELAY: 5000,
AUTO_TRACKING_CLEANING: 10000,
SOCKET_URL: process.env.SOCKET_URL,
WEB_URLS: {
GRAYS: `https://www.grays.com`,
LANGTONS: `https://www.langtons.com.au`,
LAWSONS: `https://www.lawsons.com.au`,
},
WEB_CONFIGS: {
GRAYS: {
AUTO_CALL_API_TO_TRACKING: 3000,
API_CALL_TO_TRACKING: 'https://www.grays.com/api/Notifications/GetOutBidLots',
},
LANGTONS: {
AUTO_CALL_API_TO_TRACKING: 5000,
LOGIN_URL: 'https://www.langtons.com.au/account/login',
API_CALL_TO_TRACKING: 'https://www.langtons.com.au/on/demandware.store/Sites-langtons-Site/en_AU/Auction-LotsData',
},
LAWSONS: {
LOGIN_URL: 'https://www.lawsons.com.au/login?redirectUrl=/my-account/current-bids',
// API_CALL_TO_TRACKING: 'https://www.langtons.com.au/on/demandware.store/Sites-langtons-Site/en_AU/Auction-LotsData',
API_DETAIL_INFO: (model) => {
return `https://www.lawsons.com.au/api/auctions/lot/v2/liveInfo/${model}`;
},
API_DETAIL_PRODUCT: (model) => {
return `https://www.lawsons.com.au/api/auctions/lot/${model}`;
},
},
},
};
export default configs;