"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GraphServiceClientUriTemplate = exports.extendGraphServiceClient = exports.createGraphServiceClient = void 0;
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
const kiota_serialization_form_1 = require("@microsoft/kiota-serialization-form");
const kiota_serialization_json_1 = require("@microsoft/kiota-serialization-json");
const kiota_serialization_multipart_1 = require("@microsoft/kiota-serialization-multipart");
const kiota_serialization_text_1 = require("@microsoft/kiota-serialization-text");
/**
 * Instantiates a new GraphServiceClient and sets the default values.
 * @param requestAdapter The request adapter to use to execute the requests.
 */
function createGraphServiceClient(requestAdapter) {
    (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_json_1.JsonSerializationWriterFactory);
    (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_text_1.TextSerializationWriterFactory);
    (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_form_1.FormSerializationWriterFactory);
    (0, kiota_abstractions_1.registerDefaultSerializer)(kiota_serialization_multipart_1.MultipartSerializationWriterFactory);
    (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_json_1.JsonParseNodeFactory);
    (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_text_1.TextParseNodeFactory);
    (0, kiota_abstractions_1.registerDefaultDeserializer)(kiota_serialization_form_1.FormParseNodeFactory);
    if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") {
        requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0";
    }
    const pathParameters = {
        "baseurl": requestAdapter.baseUrl,
        "user%2Did": "TokenToReplace",
    };
    return (0, kiota_abstractions_1.apiClientProxifier)(requestAdapter, pathParameters, GraphServiceClientNavigationMetadata, GraphServiceClientRequestsMetadata);
}
exports.createGraphServiceClient = createGraphServiceClient;
/**
 * Metadata for all the navigation properties in the request builder.
 */
let GraphServiceClientNavigationMetadata = {};
/**
 * Metadata for all the requests in the request builder.
 */
let GraphServiceClientRequestsMetadata = {};
function extendGraphServiceClient(clientNavigationMetadata, clientRequestsMetadata) {
    GraphServiceClientNavigationMetadata = Object.assign(Object.assign({}, GraphServiceClientNavigationMetadata), clientNavigationMetadata);
    GraphServiceClientRequestsMetadata = Object.assign(Object.assign({}, GraphServiceClientRequestsMetadata), clientRequestsMetadata);
}
exports.extendGraphServiceClient = extendGraphServiceClient;
/**
 * Uri template for the request builder.
 */
exports.GraphServiceClientUriTemplate = "{+baseurl}";
/* tslint:enable */
/* eslint-enable */
