"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getApiUrl = exports.getAuthUrl = exports.DEFAULT_API_VERSION = void 0;
exports.DEFAULT_API_VERSION = 'v61.0';
const getAuthUrl = (apiType, grant_type, subdomain) => {
    if (grant_type === 'password')
        return 'https://test.salesforce.com/services/oauth2/token';
    if (apiType === 'REST') {
        return `https://${subdomain}.my.salesforce.com/services/oauth2/token`;
    }
    throw new Error(`No auth URL available for the Salesforce ${apiType} API`);
};
exports.getAuthUrl = getAuthUrl;
const getApiUrl = (apiType, subdomain) => {
    if (apiType === 'REST') {
        return `https://${subdomain}.my.salesforce.com`;
    }
    throw new Error(`No API URL available for the SFDC ${apiType} API`);
};
exports.getApiUrl = getApiUrl;
//# sourceMappingURL=constants.js.map