"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomerioTrackApiClient = void 0;
const axios_1 = __importDefault(require("axios"));
const TRACK_API_BASE_URL = 'https://track.customer.io';
class CustomerioTrackApiClient {
    constructor(options) {
        this.options = options;
        this.client = axios_1.default.create({
            baseURL: TRACK_API_BASE_URL,
            headers: {
                'Content-Type': 'application/json',
                Authorization: `Basic ${Buffer.from(`${this.options.siteId}:${this.options.apiKey}`).toString('base64')}`,
            },
        });
    }
    async trackPersonEvent(input) {
        const response = await this.client.post(`/api/v2/entity`, input);
        return response;
    }
}
exports.CustomerioTrackApiClient = CustomerioTrackApiClient;
//# sourceMappingURL=trackApiClient.js.map