"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Publisher = void 0;
const tslib_1 = require("tslib");
const axios_1 = (0, tslib_1.__importDefault)(require("axios"));
class Publisher {
    constructor() {
        this.api = "https://muatr7df3m.execute-api.us-east-1.amazonaws.com/prod/";
    }
    async publish(data) {
        const payload = JSON.stringify(data);
        const config = {
            method: "post",
            url: this.api,
            headers: {
                "Content-Type": "application/json",
            },
            data: payload,
        };
        const response = await (0, axios_1.default)(config);
        return response.data;
    }
}
exports.Publisher = Publisher;
