"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PlannerPlanItemRequestBuilderUriTemplate = exports.PlannerPlanItemRequestBuilderRequestsMetadata = exports.PlannerPlanItemRequestBuilderNavigationMetadata = 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 archive_1 = require("./archive/");
const buckets_1 = require("./buckets/");
const details_1 = require("./details/");
const moveToContainer_1 = require("./moveToContainer/");
const tasks_1 = require("./tasks/");
const unarchive_1 = require("./unarchive/");
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const PlannerPlanItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.PlannerPlanItemRequestBuilderNavigationMetadata = {
    archive: {
        uriTemplate: archive_1.ArchiveRequestBuilderUriTemplate,
        requestsMetadata: archive_1.ArchiveRequestBuilderRequestsMetadata,
    },
    buckets: {
        uriTemplate: buckets_1.BucketsRequestBuilderUriTemplate,
        requestsMetadata: buckets_1.BucketsRequestBuilderRequestsMetadata,
        navigationMetadata: buckets_1.BucketsRequestBuilderNavigationMetadata,
    },
    details: {
        uriTemplate: details_1.DetailsRequestBuilderUriTemplate,
        requestsMetadata: details_1.DetailsRequestBuilderRequestsMetadata,
    },
    moveToContainer: {
        uriTemplate: moveToContainer_1.MoveToContainerRequestBuilderUriTemplate,
        requestsMetadata: moveToContainer_1.MoveToContainerRequestBuilderRequestsMetadata,
    },
    tasks: {
        uriTemplate: tasks_1.TasksRequestBuilderUriTemplate,
        requestsMetadata: tasks_1.TasksRequestBuilderRequestsMetadata,
        navigationMetadata: tasks_1.TasksRequestBuilderNavigationMetadata,
    },
    unarchive: {
        uriTemplate: unarchive_1.UnarchiveRequestBuilderUriTemplate,
        requestsMetadata: unarchive_1.UnarchiveRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.PlannerPlanItemRequestBuilderRequestsMetadata = {
    delete: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContentAsync",
    },
    get: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createPlannerPlanFromDiscriminatorValue,
        queryParametersMapper: PlannerPlanItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createPlannerPlanFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializePlannerPlan,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.PlannerPlanItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/planner/plans/{plannerPlan%2Did}{?%24select,%24expand}";
/* tslint:enable */
/* eslint-enable */
