/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createCalendarFromDiscriminatorValue, serializeCalendar } from '@microsoft/msgraph-beta-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { AllowedCalendarSharingRolesWithUserRequestBuilderRequestsMetadata } from './allowedCalendarSharingRolesWithUser/index.js';
// @ts-ignore
import { CalendarPermissionsRequestBuilderNavigationMetadata, CalendarPermissionsRequestBuilderRequestsMetadata } from './calendarPermissions/index.js';
// @ts-ignore
import { CalendarViewRequestBuilderNavigationMetadata, CalendarViewRequestBuilderRequestsMetadata } from './calendarView/index.js';
// @ts-ignore
import { EventsRequestBuilderNavigationMetadata, EventsRequestBuilderRequestsMetadata } from './events/index.js';
// @ts-ignore
import { GetScheduleRequestBuilderRequestsMetadata } from './getSchedule/index.js';
// @ts-ignore
import { PermanentDeleteRequestBuilderRequestsMetadata } from './permanentDelete/index.js';
/**
 * Uri template for the request builder.
 */
export const CalendarRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/calendar{?%24expand,%24select}";
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const CalendarRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
export const CalendarRequestBuilderNavigationMetadata = {
    allowedCalendarSharingRolesWithUser: {
        requestsMetadata: AllowedCalendarSharingRolesWithUserRequestBuilderRequestsMetadata,
        pathParametersMappings: ["User"],
    },
    calendarPermissions: {
        requestsMetadata: CalendarPermissionsRequestBuilderRequestsMetadata,
        navigationMetadata: CalendarPermissionsRequestBuilderNavigationMetadata,
    },
    calendarView: {
        requestsMetadata: CalendarViewRequestBuilderRequestsMetadata,
        navigationMetadata: CalendarViewRequestBuilderNavigationMetadata,
    },
    events: {
        requestsMetadata: EventsRequestBuilderRequestsMetadata,
        navigationMetadata: EventsRequestBuilderNavigationMetadata,
    },
    getSchedule: {
        requestsMetadata: GetScheduleRequestBuilderRequestsMetadata,
    },
    permanentDelete: {
        requestsMetadata: PermanentDeleteRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
export const CalendarRequestBuilderRequestsMetadata = {
    get: {
        uriTemplate: CalendarRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createCalendarFromDiscriminatorValue,
        queryParametersMapper: CalendarRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        uriTemplate: CalendarRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: createCalendarFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: serializeCalendar,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map