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

51 lines
1.7 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`,
PICKLES: `https://www.pickles.com.au`,
ALLBIDS: `https://www.allbids.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_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}`;
},
API_CHECKOUT: "https://www.lawsons.com.au/app/orderBid",
},
PICKLES: {
LOGIN_URL: "https://www.pickles.com.au/sign-in",
API_DETAIL_PRODUCT: (model) => {
return `https://www.pickles.com.au/api-website/buyer/ms-web-asset-aggregate/v2/api/assets/${model}/wap-item-details`;
},
API_CHECKOUT:
"https://www.pickles.com.au/delegate/secured/bidding/confirm",
},
ALLBIDS: {
LOGIN_URL: "https://myaccount.allbids.com.au/account/login",
PLACE_BID: "https://www.allbids.com.au/Bid/AjaxFinishBid",
},
},
};
export default configs;