"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTemplateContentURL = exports.getGroupIDsURL = exports.getValidDomainsURL = exports.getIPPoolsURL = exports.TRUNCATE_CHAR_LENGTH = exports.getTemplatesURL = exports.sendEmailURL = exports.MAX_IP_POOL_NAME_LENGTH = exports.MIN_IP_POOL_NAME_LENGTH = exports.MAX_CATEGORY_LENGTH = exports.RESERVED_HEADERS = void 0;
const sendgrid_properties_1 = require("../sendgrid-properties");
exports.RESERVED_HEADERS = [
    'x-sg-id',
    'x-sg-eid',
    'received',
    'dkim-signature',
    'Content-Type',
    'Content-Transfer-Encoding',
    'To',
    'From',
    'Subject',
    'Reply-To',
    'CC',
    'BCC'
];
exports.MAX_CATEGORY_LENGTH = 255;
exports.MIN_IP_POOL_NAME_LENGTH = 2;
exports.MAX_IP_POOL_NAME_LENGTH = 64;
const sendEmailURL = (settings) => {
    const regionalEndpoint = (0, sendgrid_properties_1.getRegionalEndpoint)(settings);
    return `${regionalEndpoint}/v3/mail/send`;
};
exports.sendEmailURL = sendEmailURL;
const getTemplatesURL = (settings) => {
    const regionalEndpoint = (0, sendgrid_properties_1.getRegionalEndpoint)(settings);
    return `${regionalEndpoint}/v3/templates?generations=dynamic&page_size=200`;
};
exports.getTemplatesURL = getTemplatesURL;
exports.TRUNCATE_CHAR_LENGTH = 25;
const getIPPoolsURL = (settings) => {
    const regionalEndpoint = (0, sendgrid_properties_1.getRegionalEndpoint)(settings);
    return `${regionalEndpoint}/v3/ips/pools`;
};
exports.getIPPoolsURL = getIPPoolsURL;
const getValidDomainsURL = (settings) => {
    const regionalEndpoint = (0, sendgrid_properties_1.getRegionalEndpoint)(settings);
    return `${regionalEndpoint}/v3/whitelabel/domains?limit=200`;
};
exports.getValidDomainsURL = getValidDomainsURL;
const getGroupIDsURL = (settings) => {
    const regionalEndpoint = (0, sendgrid_properties_1.getRegionalEndpoint)(settings);
    return `${regionalEndpoint}/v3/asm/groups`;
};
exports.getGroupIDsURL = getGroupIDsURL;
const getTemplateContentURL = (settings, templateId) => {
    const regionalEndpoint = (0, sendgrid_properties_1.getRegionalEndpoint)(settings);
    return `${regionalEndpoint}/v3/templates/${templateId}`;
};
exports.getTemplateContentURL = getTemplateContentURL;
//# sourceMappingURL=constants.js.map