UNPKG

vinmonopolet-ts

Version:

Extracts information on products, categories and stores from Vinmonopolet

11 lines (10 loc) 490 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const constants_1 = require("../../constants"); const mapper_1 = require("../../models/store/mapper"); const GET_1 = require("../../util/GET"); const getStore = async (store_id) => { const response = await (0, GET_1.GET)(`${constants_1.VINMONOPOLET_STORE_URL}${store_id}`, new URLSearchParams({ fields: "FULL" })); return (0, mapper_1.toPopulatedStore)(response); }; exports.default = getStore;