import { ApiVersion } from "./RealityDataClient";
/**
 * Build the request methods, headers, and other options
 * @param accessTokenString The client access token string
 */
export 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",
        },
    };
}
function getApiVersionHeader(apiVersion) {
    switch (apiVersion) {
        case ApiVersion.v1:
        default: return "application/vnd.bentley.itwin-platform.v1+json";
    }
}
//# sourceMappingURL=RequestOptions.js.map