"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PlannerRequestBuilderRequestsMetadata = exports.PlannerRequestBuilderNavigationMetadata = exports.PlannerRequestBuilderUriTemplate = 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 all_1 = require("./all/");
const favoritePlans_1 = require("./favoritePlans/");
const myDayTasks_1 = require("./myDayTasks/");
const plans_1 = require("./plans/");
const recentPlans_1 = require("./recentPlans/");
const rosterPlans_1 = require("./rosterPlans/");
const tasks_1 = require("./tasks/");
/**
 * Uri template for the request builder.
 */
exports.PlannerRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/planner{?%24expand,%24select}";
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const PlannerRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.PlannerRequestBuilderNavigationMetadata = {
    all: {
        requestsMetadata: all_1.AllRequestBuilderRequestsMetadata,
        navigationMetadata: all_1.AllRequestBuilderNavigationMetadata,
    },
    favoritePlans: {
        requestsMetadata: favoritePlans_1.FavoritePlansRequestBuilderRequestsMetadata,
        navigationMetadata: favoritePlans_1.FavoritePlansRequestBuilderNavigationMetadata,
    },
    myDayTasks: {
        requestsMetadata: myDayTasks_1.MyDayTasksRequestBuilderRequestsMetadata,
        navigationMetadata: myDayTasks_1.MyDayTasksRequestBuilderNavigationMetadata,
    },
    plans: {
        requestsMetadata: plans_1.PlansRequestBuilderRequestsMetadata,
        navigationMetadata: plans_1.PlansRequestBuilderNavigationMetadata,
    },
    recentPlans: {
        requestsMetadata: recentPlans_1.RecentPlansRequestBuilderRequestsMetadata,
        navigationMetadata: recentPlans_1.RecentPlansRequestBuilderNavigationMetadata,
    },
    rosterPlans: {
        requestsMetadata: rosterPlans_1.RosterPlansRequestBuilderRequestsMetadata,
        navigationMetadata: rosterPlans_1.RosterPlansRequestBuilderNavigationMetadata,
    },
    tasks: {
        requestsMetadata: tasks_1.TasksRequestBuilderRequestsMetadata,
        navigationMetadata: tasks_1.TasksRequestBuilderNavigationMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.PlannerRequestBuilderRequestsMetadata = {
    delete: {
        uriTemplate: exports.PlannerRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
    },
    get: {
        uriTemplate: exports.PlannerRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createPlannerUserFromDiscriminatorValue,
        queryParametersMapper: PlannerRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        uriTemplate: exports.PlannerRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createPlannerUserFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializePlannerUser,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
