UNPKG

stxcity-sdk

Version:

SDK for interacting with Stxcity

20 lines 742 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config_1 = require("../config"); function getHiroHeader() { if (!config_1.configs || typeof config_1.configs !== 'object') { throw new Error("Invalid or missing configuration object."); } const apiKeys = config_1.configs.HIRO_API_KEY; if (!apiKeys || typeof apiKeys !== 'string' || apiKeys.trim() === '') { throw new Error("Missing or invalid HIRO_API_KEY in configurations."); } const headers = { "Content-Type": "application/json", "Accept": "application/json", "x-hiro-api-key": apiKeys, }; return headers; } exports.default = getHiroHeader; //# sourceMappingURL=hiroAPIHelpers.js.map