"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BrazeClient = void 0;
const axios_1 = __importDefault(require("axios"));
class BrazeClient {
    constructor({ apiKey, baseUrl }) {
        this.client = axios_1.default.create({
            baseURL: baseUrl,
            headers: {
                Authorization: `Bearer ${apiKey}`,
                'Content-Type': 'application/json',
                Accept: 'application/json',
            },
        });
    }
    async sendMessageImmediately(data) {
        const resp = await this.client.post(`/messages/send`, data);
        return resp.data;
    }
    async scheduleMessage(data) {
        const response = await this.client.post(`/messages/schedule/create`, data);
        return response.data;
    }
}
exports.BrazeClient = BrazeClient;
//# sourceMappingURL=client.js.map