"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnenotePageItemRequestBuilderUriTemplate = exports.OnenotePageItemRequestBuilderRequestsMetadata = exports.OnenotePageItemRequestBuilderNavigationMetadata = 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 content_1 = require("./content/");
const copyToSection_1 = require("./copyToSection/");
const onenotePatchContent_1 = require("./onenotePatchContent/");
const parentNotebook_1 = require("./parentNotebook/");
const parentSection_1 = require("./parentSection/");
const preview_1 = require("./preview/");
/**
 * Mapper for query parameters from symbol name to serialization name represented as a constant.
 */
const OnenotePageItemRequestBuilderGetQueryParametersMapper = {
    "expand": "%24expand",
    "select": "%24select",
};
/**
 * Metadata for all the navigation properties in the request builder.
 */
exports.OnenotePageItemRequestBuilderNavigationMetadata = {
    content: {
        uriTemplate: content_1.ContentRequestBuilderUriTemplate,
        requestsMetadata: content_1.ContentRequestBuilderRequestsMetadata,
    },
    copyToSection: {
        uriTemplate: copyToSection_1.CopyToSectionRequestBuilderUriTemplate,
        requestsMetadata: copyToSection_1.CopyToSectionRequestBuilderRequestsMetadata,
    },
    onenotePatchContent: {
        uriTemplate: onenotePatchContent_1.OnenotePatchContentRequestBuilderUriTemplate,
        requestsMetadata: onenotePatchContent_1.OnenotePatchContentRequestBuilderRequestsMetadata,
    },
    parentNotebook: {
        uriTemplate: parentNotebook_1.ParentNotebookRequestBuilderUriTemplate,
        requestsMetadata: parentNotebook_1.ParentNotebookRequestBuilderRequestsMetadata,
    },
    parentSection: {
        uriTemplate: parentSection_1.ParentSectionRequestBuilderUriTemplate,
        requestsMetadata: parentSection_1.ParentSectionRequestBuilderRequestsMetadata,
    },
    preview: {
        uriTemplate: preview_1.PreviewRequestBuilderUriTemplate,
        requestsMetadata: preview_1.PreviewRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.OnenotePageItemRequestBuilderRequestsMetadata = {
    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.createOnenotePageFromDiscriminatorValue,
        queryParametersMapper: OnenotePageItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        responseBodyContentType: "application/json",
        errorMappings: {
            _4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
            _5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendAsync",
        responseBodyFactory: models_1.createOnenotePageFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeOnenotePage,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/**
 * Uri template for the request builder.
 */
exports.OnenotePageItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/onenote/pages/{onenotePage%2Did}{?%24select,%24expand}";
/* tslint:enable */
/* eslint-enable */
