"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnenoteSectionItemRequestBuilderUriTemplate = exports.OnenoteSectionItemRequestBuilderRequestsMetadata = exports.OnenoteSectionItemRequestBuilderNavigationMetadata = 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 copyToNotebook_1 = require("./copyToNotebook/");
const copyToSectionGroup_1 = require("./copyToSectionGroup/");
const pages_1 = require("./pages/");
const parentNotebook_1 = require("./parentNotebook/");
const parentSectionGroup_1 = require("./parentSectionGroup/");
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const OnenoteSectionItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.OnenoteSectionItemRequestBuilderNavigationMetadata = {
    copyToNotebook: {
        uriTemplate: copyToNotebook_1.CopyToNotebookRequestBuilderUriTemplate,
        requestsMetadata: copyToNotebook_1.CopyToNotebookRequestBuilderRequestsMetadata,
    },
    copyToSectionGroup: {
        uriTemplate: copyToSectionGroup_1.CopyToSectionGroupRequestBuilderUriTemplate,
        requestsMetadata: copyToSectionGroup_1.CopyToSectionGroupRequestBuilderRequestsMetadata,
    },
    pages: {
        uriTemplate: pages_1.PagesRequestBuilderUriTemplate,
        requestsMetadata: pages_1.PagesRequestBuilderRequestsMetadata,
        navigationMetadata: pages_1.PagesRequestBuilderNavigationMetadata,
    },
    parentNotebook: {
        uriTemplate: parentNotebook_1.ParentNotebookRequestBuilderUriTemplate,
        requestsMetadata: parentNotebook_1.ParentNotebookRequestBuilderRequestsMetadata,
    },
    parentSectionGroup: {
        uriTemplate: parentSectionGroup_1.ParentSectionGroupRequestBuilderUriTemplate,
        requestsMetadata: parentSectionGroup_1.ParentSectionGroupRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.OnenoteSectionItemRequestBuilderRequestsMetadata = {
    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.createOnenoteSectionFromDiscriminatorValue,
        queryParametersMapper: OnenoteSectionItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createOnenoteSectionFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeOnenoteSection,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.OnenoteSectionItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}{?%24select,%24expand}";
/* tslint:enable */
/* eslint-enable */
