"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CalendarRequestBuilderRequestsMetadata = exports.CalendarRequestBuilderNavigationMetadata = exports.CalendarRequestBuilderUriTemplate = void 0;
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
const models_1 = require("@microsoft/msgraph-beta-sdk/models/");
const oDataErrors_1 = require("@microsoft/msgraph-beta-sdk/models/oDataErrors/");
const allowedCalendarSharingRolesWithUser_1 = require("./allowedCalendarSharingRolesWithUser/");
const calendarPermissions_1 = require("./calendarPermissions/");
const calendarView_1 = require("./calendarView/");
const events_1 = require("./events/");
const getSchedule_1 = require("./getSchedule/");
/**
 * Uri template for the request builder.
 */
exports.CalendarRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/calendar{?%24select}";
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const CalendarRequestBuilderGetQueryParametersMapper = {
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.CalendarRequestBuilderNavigationMetadata = {
    allowedCalendarSharingRolesWithUser: {
        requestsMetadata: allowedCalendarSharingRolesWithUser_1.AllowedCalendarSharingRolesWithUserRequestBuilderRequestsMetadata,
    },
    calendarPermissions: {
        requestsMetadata: calendarPermissions_1.CalendarPermissionsRequestBuilderRequestsMetadata,
        navigationMetadata: calendarPermissions_1.CalendarPermissionsRequestBuilderNavigationMetadata,
    },
    calendarView: {
        requestsMetadata: calendarView_1.CalendarViewRequestBuilderRequestsMetadata,
        navigationMetadata: calendarView_1.CalendarViewRequestBuilderNavigationMetadata,
    },
    events: {
        requestsMetadata: events_1.EventsRequestBuilderRequestsMetadata,
        navigationMetadata: events_1.EventsRequestBuilderNavigationMetadata,
    },
    getSchedule: {
        requestsMetadata: getSchedule_1.GetScheduleRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.CalendarRequestBuilderRequestsMetadata = {
    delete: {
        uriTemplate: exports.CalendarRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
    },
    get: {
        uriTemplate: exports.CalendarRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createCalendarFromDiscriminatorValue,
        queryParametersMapper: CalendarRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        uriTemplate: exports.CalendarRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createCalendarFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeCalendar,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
