"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRequestConfig = void 0;
const RealityDataClient_1 = require("./RealityDataClient");
/**
 * Build the request methods, headers, and other options
 * @param accessTokenString The client access token string
 */
function getRequestConfig(accessTokenString, method, url, apiVersion, returnFullRepresentation = false) {
    return {
        url,
        method,
        headers: {
            "authorization": accessTokenString,
            "content-type": "application/json",
            "accept": getApiVersionHeader(apiVersion),
            "prefer": returnFullRepresentation === true ? "return=representation" : "return=minimal",
        },
    };
}
exports.getRequestConfig = getRequestConfig;
function getApiVersionHeader(apiVersion) {
    switch (apiVersion) {
        case RealityDataClient_1.ApiVersion.v1:
        default: return "application/vnd.bentley.itwin-platform.v1+json";
    }
}
//# sourceMappingURL=RequestOptions.js.map