"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.endpoints = void 0;
exports.getEndpointByRegion = getEndpointByRegion;
const versioning_info_1 = require("./versioning-info");
exports.endpoints = {
    batch: {
        north_america: 'https://api2.amplitude.com/batch',
        europe: 'https://api.eu.amplitude.com/batch'
    },
    deletions: {
        north_america: `https://amplitude.com/api/${versioning_info_1.AMPLITUDE_API_VERSION}/deletions/users`,
        europe: `https://analytics.eu.amplitude.com/api/${versioning_info_1.AMPLITUDE_API_VERSION}/deletions/users`
    },
    httpapi: {
        north_america: `https://api2.amplitude.com/${versioning_info_1.AMPLITUDE_API_VERSION}/httpapi`,
        europe: `https://api.eu.amplitude.com/${versioning_info_1.AMPLITUDE_API_VERSION}/httpapi`
    },
    identify: {
        north_america: 'https://api2.amplitude.com/identify',
        europe: 'https://api.eu.amplitude.com/identify'
    },
    groupidentify: {
        north_america: 'https://api2.amplitude.com/groupidentify',
        europe: 'https://api.eu.amplitude.com/groupidentify'
    },
    usermap: {
        north_america: 'https://api.amplitude.com/usermap',
        europe: 'https://api.eu.amplitude.com/usermap'
    },
    usersearch: {
        north_america: `https://amplitude.com/api/${versioning_info_1.AMPLITUDE_API_VERSION}/usersearch`,
        europe: `https://analytics.eu.amplitude.com/api/${versioning_info_1.AMPLITUDE_API_VERSION}/usersearch`
    }
};
function getEndpointByRegion(endpoint, region) {
    return exports.endpoints[endpoint][region] ?? exports.endpoints[endpoint]['north_america'];
}
exports.default = exports.endpoints;
//# sourceMappingURL=regional-endpoints.js.map