"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnenotePageItemRequestBuilderRequestsMetadata = exports.OnenotePageItemRequestBuilderNavigationMetadata = exports.OnenotePageItemRequestBuilderUriTemplate = 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/");
/**
 * Uri template for the request builder.
 */
exports.OnenotePageItemRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/onenote/notebooks/{notebook%2Did}/sectionGroups/{sectionGroup%2Did}/sections/{onenoteSection%2Did}/pages/{onenotePage%2Did}{?%24expand,%24select}";
/**
 * 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: {
        requestsMetadata: content_1.ContentRequestBuilderRequestsMetadata,
    },
    copyToSection: {
        requestsMetadata: copyToSection_1.CopyToSectionRequestBuilderRequestsMetadata,
    },
    onenotePatchContent: {
        requestsMetadata: onenotePatchContent_1.OnenotePatchContentRequestBuilderRequestsMetadata,
    },
    parentNotebook: {
        requestsMetadata: parentNotebook_1.ParentNotebookRequestBuilderRequestsMetadata,
    },
    parentSection: {
        requestsMetadata: parentSection_1.ParentSectionRequestBuilderRequestsMetadata,
    },
    preview: {
        requestsMetadata: preview_1.PreviewRequestBuilderRequestsMetadata,
    },
};
/**
 * Metadata for all the requests in the request builder.
 */
exports.OnenotePageItemRequestBuilderRequestsMetadata = {
    delete: {
        uriTemplate: exports.OnenotePageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "sendNoResponseContent",
    },
    get: {
        uriTemplate: exports.OnenotePageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createOnenotePageFromDiscriminatorValue,
        queryParametersMapper: OnenotePageItemRequestBuilderGetQueryParametersMapper,
    },
    patch: {
        uriTemplate: exports.OnenotePageItemRequestBuilderUriTemplate,
        responseBodyContentType: "application/json",
        errorMappings: {
            XXX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
        },
        adapterMethodName: "send",
        responseBodyFactory: models_1.createOnenotePageFromDiscriminatorValue,
        requestBodyContentType: "application/json",
        requestBodySerializer: models_1.serializeOnenotePage,
        requestInformationContentSetMethod: "setContentFromParsable",
    },
};
/* tslint:enable */
/* eslint-enable */
